Momentary MIDI CC to toggle CC

124 views
Skip to first unread message

Daniel Montesanto

unread,
Sep 11, 2014, 8:09:09 PM9/11/14
to midi-shap...@googlegroups.com
Hi Everyone.

Is there a way to rig MIDI Shape Shifter to convert momentary MIDI CC inputs to latching outputs?

In other words - I send MSS MIDI CC values 0/127/0 (say, quick hit of a button) and it outputs a single MIDI CC value 127. Hit the button again (0/127/0) and it outputs a single MIDI CC value 0.

MSS is a FANTASTIC utility!!! thanks so much for your work on this!


-Dan

Rob

unread,
Sep 11, 2014, 10:39:16 PM9/11/14
to midi-shap...@googlegroups.com
Yeah you can do that. You'd need to use a variable to keep track of the state of the latch. I'll attach a program that does this for CC7. You need two mappings. One from CC7 to a variable (I'll call it latch). The equation for this looks like:

if(input, !latch, ignore)

Which basically says "if the incoming CC value is not 0 then toggle the latch variable. Otherwise ignore the CC message."

Then you would have another mapping from the latch variable to CC7 so that every time latch changes it outputs a CC message.

Let me know if that works
toggleToLatch.mssp

Rob

unread,
Sep 11, 2014, 10:42:22 PM9/11/14
to midi-shap...@googlegroups.com
Just realized the name of the program doesn't really make sense. I should have called it something like momentaryToLatch. ...but you get the idea ;)

Daniel Montesanto

unread,
Sep 12, 2014, 2:15:14 AM9/12/14
to midi-shap...@googlegroups.com
Hi there Rob.

THANK YOU so much for generously help me out. Your program worked like a charm - and you made it look easy. I was poking around with equations for about three hrs and missed the significance of the 'ignore' variable!!!

and...
'toggletolatch' is a perfectly intuitive name :-)

Regards - Dan
Reply all
Reply to author
Forward
0 new messages