Sending MIDI Messages

Once you have opened a MIDI output device, you can send it MIDI messages. MIDI system exclusive messages are sent in data blocks that must be prepared before being sent to an output device. Use the following functions to send MIDI messages to output devices and to prepare system exclusive data blocks:

midiOutLongMsg

Sends a buffer containing MIDI data to a specified MIDI output device.

midiOutShortMsg

Sends any MIDI message other than a system exclusive message to the specified MIDI output device.

midiOutPrepareHeader

Informs the MIDI output device driver that the given MIDI data buffer should be prepared for playback.

midiOutReset

Turns off all notes on all channels for a specified MIDI output device.

midiOutUnprepareHeader

Informs the MIDI output device driver that the preparation performed on the given MIDI data buffer can be cleaned up.