The Scriplet plugin allows you to create your own MIDI processor plugins. This plugin provides a single MIDI input pin and a single MIDI output pin:
For example, if you have a sustain pedal that is producing CC messages the wrong way round (0 when pressed, 127 when released) then one of the solutions to fix this issue can be a simple scriptlet:
This scriptlet receives the MIDI In events from the MIDI In block, then captures CC64, inverts it, and lets everything else through.
If you want to see the underlying script behind this scriptlet, either click on the Edit Script button in the Scriptlet plugin editor (indicated with the red rectangle), or hold the Shift key while double-clicking the scriptlet block (which will open both the scriptlet's plugin editor and the script editor):
Using the script editor, scripts can be entered or modified; refer to the GPScript chapter to learn more.
You are also provided with the option that controls whether unhandled MIDI messages are passed through (the default) or blocked (when this option is checked).
Scriptlets can also have their parameters, which are then displayed in the scriptlet's plugin editor, like shown in the screenshot below:
Moreover, these parameters can be learned and controlled by widgets:
Refer to the How to connect a widget to a plugin parameter chapter to learn more.
Scriplet parameters can also be captured in the Probabilistic Sound Designer.
Click Help -> Support -> Community Shared Gigs, Rackspaces and More to check out many Community generated content, including scriplets.