The midiOutReset function turns off all notes on all MIDI channels for the specified MIDI output device.
MMRESULT midiOutReset( HMIDIOUT hmo );
int midiOutReset(int hmo) => _midiOutReset(hmo);