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.17.5
Syntax
[DllImportAttribute("bass_vst")] public static bool BASS_VST_ProcessEventRaw( int vstHandle, IntPtr 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: SystemIntPtr
The pointer to your Midi message data to send (byte[]). - length
- Type: SystemInt32
The length of a SysEx message or 0 in case of a normal Midi (short)message.
Return Value
Type: BooleanIf 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