midiOutReset

Syntax

WORD midiOutReset(hMidiOut)

This function turns off all notes on all MIDI channels for the specified MIDI output device.

Parameters

HMIDIOUT hMidiOut

Specifies a handle to the MIDI output device.

Return Value

Returns zero if the function was successful. Otherwise, it returns an error number. Possible error returns are:

MMSYSERR_INVALHANDLE

Specified device handle is invalid.

Comments

If the specified MIDI output device is an output port, a note off message for each note of each channel is sent. In addition, a sustain (damper pedal) off controller message is sent for each channel.

See Also

midiOutLongMsg, midiOutClose