Sends a short message to the output Device.
Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- status
- Type: radio42.Multimedia.MidiMIDIStatus
The MIDIStatus to use to construct the short message. - channel
- Type: SystemByte
The channel number to use to construct the short message (will be combined with the status in lower 4-bits). - data1
- Type: SystemByte
The Data1 value to use to construct the short message. - data2
- Type: SystemByte
The Data2 value to use to construct the short message.
Return Value
Type: Booleanon success, else (see LastErrorCode for details).
Remarks
The Device must have been opened with the Open method (or check IsOpened) before sending any message.
Examples
private MidiOutputDevice _outDevice = null; ... _outDevice = new MidiOutputDevice(0); if ( !_outDevice.Open() ) Console.WriteLine("Could not open Midi device!"); // send a new short message to the output device if ( _outDevice.Send((byte)MIDIStatus.NoteOn, 1, 64, 65) ) Console.WriteLine("Error sending short message!");
See Also