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.
I’ve started hacking at the code, and compiling my own zyncoder with some success. I had to add a few more intermediate states. I have two issues, one is that I think there are “stale Toggle” maps now stored in my default MIDI configuration. The second issue is that the UI sometimes does not follow the forced zyncoder value. I think I don’t quite understand the presidence of controller, remapped and learned.