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: 2.4.12.0
Syntax

[DllImportAttribute("bass_vst.dll", CharSet = CharSet.Auto)]
public static bool BASS_VST_ProcessEventRaw(
	int vstHandle,
	byte[] msg,
	int length
)

Parameters

vstHandle
Type: SystemInt32
The VSTi channel to send a MIDI message to (as created by BASS_VST_ChannelCreate(Int32, Int32, String, BASSFlag)).
msg
Type: SystemByte
The byte array containing your Midi message data to send.
length
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.
Remarks

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

Reference