I have implemented a new type of filter rule that allows to configure CC and NoteOn events as “toggle”, for using with controllers that have momentary-switch buttons or pads and doesn’t allow to configure them as toggle.
The rule is quite simple to use:
For all channels:
TOGGLE NON#60 TOGGLE CC#23
Or by channel:
TOGGLE CH#15 NON#60 TOGGLE CH#15 CC#23
For CCs & Notes configured as “toggle”, the ZynMidiRouter will add a “toggle-off” event consisting in a CC with val=0 or a NoteOff.
The details are here: