Handling MIDI Errors

Most of the low-level MIDI audio functions return error codes. Use the following functions to convert the error codes returned from MIDI functions into a textual description of the error:

midiInGetErrorText

Retrieves a textual description of a specified MIDI input error.

midiOutGetErrorText

Retrieves a textual description of a specified MIDI output error.