here is the situation:
I’ve a keyboard which has a AINSER8 inside. I soldered a jack to it for a switch. The switch works flawlessly. I configured ain_mode=switch. So it sends 127 when pressed and 0 when depressed.
What I want to achieve is, to send 127 when I press it the first time… release it… press again and it should send 0.
I tried various things with NGR-commands… but I didn’t get it to work.
You are right, looking into the source code I can confirm that I even commented this behaviour
Seems that we’ve finally found a use case where it makes sense to think about a generic way to trigger the MIDI event during forwarding.
However, as always it will take some time until such a new feature will be available.
Until then you could just execute a .NGR section with the AINSER event in addition, and from there you can send the current button value (which toggles between min and max) with the “TRIGGER BUTTON:<button-id>” command.