MIDI Reference

This section describes the functions, macros, messages, and structures associated with the Musical Instrument Digital Interface (MIDI). These elements are grouped as follows.

Allocating and Managing Buffers

MIDIHDR
midiInAddBuffer
midiInPrepareHeader
midiInUnprepareHeader
midiOutPrepareHeader
midiOutUnprepareHeader

Callback Functions

MidiInProc
MidiOutProc

Device Capabilities

MIDIINCAPS
midiInGetDevCaps
midiInGetID
midiInGetNumDevs
MIDIOUTCAPS
midiOutGetDevCaps
midiOutGetID
midiOutGetNumDevs
MIDISTRMBUFFVER

Error Processing

midiInGetErrorText
midiOutGetErrorText
MIM_ERROR
MIM_LONGERROR
MM_MIM_ERROR
MM_MIM_LONGERROR

Managing MIDI Streams

midiStreamClose
midiStreamOpen
midiStreamOut
midiStreamPause
midiStreamPosition
midiStreamProperty
midiStreamRestart
midiStreamStop

Opening and Closing Devices

midiInClose
midiInOpen
midiOutClose
midiOutOpen
MIM_CLOSE
MIM_OPEN
MM_MIM_CLOSE
MM_MIM_OPEN
MM_MOM_CLOSE
MM_MOM_OPEN
MOM_CLOSE
MOM_OPEN

Output Devices

KEYARRAY
midiOutCacheDrumPatches
midiOutCachePatches
midiOutGetVolume
midiOutSetVolume
PATCHARRAY

Playing a Message or Messages

MEVT_EVENTPARM
MEVT_EVENTTYPE
MIDIEVENT
midiOutLongMsg
midiOutReset
midiOutShortMsg
midiStreamOut
midiStreamPause
midiStreamRestart
midiStreamStop
MM_MOM_DONE
MM_MOM_POSITIONCB
MOM_DONE
MOM_POSITIONCB

Recording

midiConnect
midiDisconnect
midiInReset
midiInStart
midiInStop
MIDIPROPTEMPO
MIDIPROPTIMEDIV
MIM_DATA
MIM_LONGDATA
MIM_MOREDATA
MM_MIM_DATA
MM_MIM_MOREDATA
MM_MIM_LONGDATA

Sending Messages to Devices

midiInMessage
midiOutMessage