case0x78:// All Sound Off: mutes all sounding notes. It does so regardless of release time or sustain. (See MIDI CC 123)
reset_voices();
break;
case0x79:// Reset All Controllers: it will reset all controllers to their default.
reset_controllers();
break;
case0x7b:// All Notes Off: mutes all sounding notes. Release time will still be maintained, and notes held by sustain will not turn off until sustain pedal is depressed.
stop_voices();
break;
case0x7e:// Mono Mode: sets device mode to Monophonic.
setMaxPolyphony(1);
break;
case0x7f:// Poly Mode: sets device mode to Polyphonic.