allNotesOff doesn't affect queued events?
-
It seems that Synth.allNotesOff() doesn't affect notes that are currently queued with a timestamp that is in the future. Is that intentional, maybe there's a more powerful version?
I'm adding handling for overlapping MIDI and hoped to use allNotesOff as an escape hatch when this kind of thing is played.
I already keep track of all note on and off events, so looping through them and doing a normal note off is not a problem, but having a single "Ah something happened please just stop everything" panic button function would be nice.
-
@Simon said in allNotesOff doesn't affect queued events?:
Is that intentional, maybe there's a more powerful version?
I think all notes off just turns off currently playing notes - the same as sending CC123.
To turn off notes that don't yet exist you'd need to keep an list of such notes and cancel them before they are triggered as you are doing. You could combine this into a function with
Engine.allNotesOff()