I'm trying to write an "all midi note off" module as I'm sometimes facing hanging notes.
Although I found a part of the code for this "MIDI_C_ALL_NOTES_OFF", I'm not sure how to implement it..
The following code still allows the axoloti to go live, but doesn't seem to do anything about hanging notes on the other axoloti which listens to the MIDI-din-output.
It's probably the ",0," that should be something else... but what?
if((param_rst>0)&&!ntrig){
ntrig=1;
MidiSend1((midi_device_t) MIDI_DEVICE_OMNI,0,MIDI_C_ALL_NOTES_OFF);
}
else if(param_rst==0){ntrig=0;}