MidiIoOutLong

Outputs one or more MIDI messages of unlimited size to the currently open MIDI Out port.

Synopsis

error = MidiIoOutLong(data)

Args

data are the MIDI messages to be output.

Returns

An empty string if successful, or an error message if a failure.

Notes

If you call MidiIoOutLong() before calling MidiIoOpenPort() to open a port, then a REXX SYNTAX condition is raised. CONDITION('E') returns error number 40.1 and CONDITION('D') returns the message DLL function "MIDIIOOUTLONG" reported MIDI port is not open!.

For all other errors, the error message depends upon the driver for the MIDI Interface you're using. It could be any error message returned by that driver.

The MIDI messages must be specified exactly as they would be output over MIDI. For each event, you must use the type ID number (ie, not name), and you must add the desired MIDI channel - 1 to it. You may not omit any data values for an event. At least the first event must have a type ID number, although subsequent Voice Category events with the same type and channel as the preceding event may have the type ID number omitted.

Examples

See Outputting an event.