BASS.NET API for the Un4seen BASS Audio LibraryMidiOutputDeviceSend Method (Byte)BASS.NET API for the Un4seen BASS Audio Library
Sends a system-exclusive message to the output Device.

Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public bool Send(
	byte[] sysexMessage
)

Parameters

sysexMessage
Type: SystemByte
The byte array containing system-exclusive message data buffer to send.

Return Value

Type: Boolean
on success, else (see LastErrorCode for details).
Remarks

The byte array should normally start with 0xF0 and end with 0xF7 - however, no validity check is performed on this.

The Device must have been opened with the Open method (or check IsOpened) before sending any message.

Examples

VB
private MidiOutputDevice _outDevice = null;
...
_outDevice = New MidiOutputDevice(0)
If Not _outDevice.Open() Then
  Console.WriteLine("Could not open Midi device!")
End If 

' send a new system-exclusive message to the output device
If _outDevice.Send(New Byte(7) {&HF0, &H43, &H75, &H73, &H12, &H0, &HF7}) Then
  Console.WriteLine("Error sending system-exclusive message!")
End If
private MidiOutputDevice _outDevice = null;
...
_outDevice = new MidiOutputDevice(0);
if ( !_outDevice.Open() )
  Console.WriteLine( "Could not open Midi device!" );

// send a new system-exclusive message to the output device
if (_outDevice.Send(new byte[7] {0xF0, 0x43, 0x75, 0x73, 0x12, 0x00, 0xF7}))
  Console.WriteLine("Error sending system-exclusive message!");
See Also

Reference