MidiDevices.EventWriteShort method |
![]() ![]() ![]() |
Remarks
Sends a short MIDI event to the MIDI output device previously opened through the MidiDevices.Open method.
For further details about the use of MIDI devices see the MidiDevices object section and the How to manage MIDI devices tutorial.
Syntax
[Visual Basic] control.MidiDevices.EventWriteShort ( nDeviceUniqueId as Integer, nMidiCommand as Integer, nMidiChannel as Integer, nMidiData1 as Integer, nMidiData2 as Integer ) as enumDjcErrorCodes |
[C++] short control.MidiDevices.EventWriteShort ( short nDeviceUniqueId, short nMidiCommand, short nMidiChannel, short nMidiData1, short nMidiData2 ); |
Parameter |
Description |
|
|
nDeviceUniqueId |
The unique identifier of the MIDI output device returned by a previous call to the MidiDevices.Open method |
nMidiCommand |
Number representing the MIDI command. A detailed summary of available MIDI commands/messages can be found inside the web site of the MIDI Manufacturers Association |
nMidiChannel |
Number representing the MIDI channel where the MIDI command is sent |
nMidiData1 |
Number representing the first parameter related to the MIDI command |
nMidiData2 |
Number representing the second parameter related to the MIDI command |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |