MIDI Alternate message

53 views
Skip to first unread message

Saukar Mullens

unread,
Dec 11, 2015, 11:57:50 PM12/11/15
to Midi Shape Shifter
Hi. I just found out about MSS and I was wondering if it is possible to generate a MIDI alternate message.

For example, some synths have mod matrices that include "Alternate" as a source. What this does is on MIDI Note on it will a CC message to alternate between 2 positions based on the level at the mod matrix. So if the mod matrix is set at 100 and you hit a key, there will be a MIDI CC generated that will; send a value of 127 to the destination. On the next note on message, thee will be a generated MIDI CC value of 0. With each note on message, that CC will switch back and forth between 0 & 127.

I'm very new at this so, I'm not too sure if this is possible.


Rob

unread,
Dec 12, 2015, 12:47:08 PM12/12/15
to Midi Shape Shifter
Hey, yeah you could do something like that with MSS. I'll attach a sample program that does this. Bassically there are two mappings. It uses two variables. modMatrix is used to set the note number that should trigger the CC output. nextOut will keep track of weather to output 0 or 127. It also uses two mappings. 

The first mapping maps all notes to CC7. I used the following equation: "if(noteNum = modMatrix_rel, nextOut, ignore)". This basically says if the incoming note number matches the note number set in the modMatrix variable then output the value stored in the nextOut variable to CC7. Otherwise just ignore the incoming NoteOn message and don't output anything.

The second mapping maps all notes to the nextOut variable. The equation is as follows "if(noteNum = modMatrix_rel, !nextOut, ignore)". This means if the incoming note number matches the note number set in the modMatrix variable then set the nextOut variable to "!nextOut". The ! operator will essentially return 0 if nextOut is 1 and it will return 1 if nextOut is 0.

It's a bit of a complicated implementation but you could simplify it a lot if you want to just hard code the note number that should trigger the CC output instead of making it adjustable in the modMatrix variable. let me know if you have any questions.
CC Alternate.mssp
Reply all
Reply to author
Forward
0 new messages