BASS.NET API for the Un4seen BASS Audio Library

MidiOutputDeviceSend Method (Byte, Byte, Byte)

BASS.NET API for the Un4seen BASS Audio Library
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

public bool Send(
	byte status,
	byte data1,
	byte data2
)

Parameters

status
Type: SystemByte
The MIDIStatus to use to construct the short message.
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: Boolean
on 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(0x90, 40, 41) )
  Console.WriteLine("Error sending short message!");
See Also

Reference