MidiIoRecord

Temporarily stops the input (and echoing) of all MIDI messages. Also, can resume input.

Synopsis

error = MidiIoRecord(option)

Args

option is one of the following:

Option Meaning
'START' Resume inputting MIDI messages.
'STOP' Stop inputting all MIDI messages.

If option is omitted, it defaults to 'STOP'.

See Inputting an event.

Returns

An empty string is returned if successful, or an error message otherwise.

Notes

The error message depends upon the driver for the MIDI Interface you're using for input. It could be any error message returned by that driver.

MidiIoRecord() does not close the MIDI Input port. It only temporarily postpones or resumes MIDI input.

MidiIoRecord() does not change any settings established by MidiIoParams().

When a MIDI Input port is first opened, it automatically starts inputting MIDI messages. (ie, A "START" operation is implicit).