BASS.NET API for the Un4seen BASS Audio LibraryMidiOutputDeviceSend Method (Int32)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.12.0
Syntax

public bool Send(
	int shortMessage
)

Parameters

shortMessage
Type: SystemInt32
The short message value to use.

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

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 short message to the output device
If _outDevice.Send(&H414090) Then
  Console.WriteLine("Error sending short message!")
End If
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(0x414090) )
  Console.WriteLine("Error sending short message!");
See Also

Reference