BASS.NET API for the Un4seen BASS Audio LibraryBassVstBASS_VST_ProcessEventRaw Method (Int32, Byte, Int32)BASS.NET API for the Un4seen BASS Audio Library
Sends a SysEx or MIDI (short)message/event to the VSTi plugin.

Namespace: Un4seen.Bass.AddOn.Vst
Assembly: Bass.Net (in Bass.Net.dll) Version:

public static bool BASS_VST_ProcessEventRaw(
	int vstHandle,
	byte[] msg,
	int length


Type: SystemInt32
The VSTi channel to send a MIDI message to (as created by BASS_VST_ChannelCreate(Int32, Int32, String, BASSFlag)).
Type: SystemByte
The byte array containing your Midi message data to send.
Type: SystemInt32
The length of a SysEx message or 0 in case of a normal Midi (short)message.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.

To send a Midi (short)message : The raw message must be encoded as 0x00xxyyzz with xx=MIDI command, yy=MIDI databyte #1, zz=MIDI databyte #2. length should be set to 0 in this case.

To send a SysEx message: msg must be set to a pointer to the bytes to send and length must be set to the number of bytes to send.

See Also