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
- shortMessage
- Type: SystemInt32
The short message value to use.
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(0x414090) ) Console.WriteLine("Error sending short message!");
See Also