How can I keep track of note on and note off status?
I need to make a note toggle, so I need to change the action of incoming MIDI notes from a keyboard/controller from momentary to latch switches. I can turn off the incoming note off messages easy enough, but how can I keep track of the note status to check if it is already on or off? Essentially, if there is already a note on at that note number, then I would convert the next incoming note on into a note off.
I am presuming an array or a MidiList is too bulky for that job (keeping track of the note status), so there must be something simpler?
Read more here: Source link