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 ClassMidiDevices class section and the How to manage MIDI devices tutorial.
Syntax
[Visual Basic] MidiDevices.MidiDevices.EventWriteShort ( nDeviceUniqueId as Int16, nMidiCommand as Int16, nMidiChannel as Int16, nMidiData1 as Int16, nMidiData2 as Int16 ) as enumDjcErrorCodes |
[C#] public enumDjcErrorCodes MidiDevices.EventWriteShort ( Int16 nDeviceUniqueId, Int16 nMidiCommand, Int16 nMidiChannel, Int16 nMidiData1, Int16 nMidiData2 ); |
[C++] public: enumDjcErrorCodes MidiDevices.EventWriteShort ( Int16 nDeviceUniqueId, Int16 nMidiCommand, Int16 nMidiChannel, Int16 nMidiData1, Int16 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 see the last error. |
enumDjcErrorCodes.ERR_DJC_NOERROR (0) |
The method call was successful. |