New filter rule: TOGGLE

Hi @zynthianers!

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:

Enjoy!

10 Likes

@mheidt, do you think is it easy to add the new rule to the webconf’s rule builder GUI? :innocent:

@jofemodo
I tested today, and it did not work as I expected. I commented in the request #240.
I only tested CC, and not the note off event.

Super excited about this feature, Thank you!

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.