VST3 MIDI SysEx , Control change and channel Mode support

SDK for VST 3 audio plug-in and host development.
Post Reply
maker
Posts: 22
Joined: Wed Aug 31, 2016 6:33 am

VST3 MIDI SysEx , Control change and channel Mode support

Post by maker » Fri Sep 30, 2016 6:41 am

[1] This does not work:, there is no Sysex transmitted:

// Standard Sysex Device Inquiry command
Event midiEvent2 = { 0 };
uint8 buf[6] = { 0xF0, 0x7E, 0x00, 0x06, 0x01, 0xF7 };
midiEvent2.type = Event::kDataEvent;
midiEvent2.data.type = midiEvent.data.kMidiSysEx;
midiEvent2.data.size = 6;
midiEvent2.data.bytes = (const uint8*)buf;
outputEvents->addEvent(midiEvent2);

Replacing this code with a MidiNoteOn or Off, works.

[2] Would it be possible to support CC e.g;

struct ControlChange
{
int16 channel; ///< channel index in event bus
int16 controller; /// 0 -127
int16 value; // 0 -127
};


struct ChannelMode
{
int16 channel; ///< channel index in event bus
int16 controller; /// 0 -127
int16 value; // 0 -127
};

and

enum EventTypes
{
kNoteOnEvent = 0, ///< is \ref NoteOnEvent
kNoteOffEvent, ///< is \ref NoteOffEvent
kDataEvent, ///< is \ref DataEvent
kPolyPressureEvent, ///< is \ref PolyPressureEvent
kNoteExpressionValueEvent, ///< is \ref NoteExpressionValueEvent
kNoteExpressionTextEvent, ///< is \ref NoteExpressionTextEvent
kChordEvent, ///< is \ref ChordEvent
kScaleEvent, ///< is \ref ScaleEvent
// NEW:
kControlChange. ///
kChannelMode ///
};

Both on receiving and transmission ?

This would provide an easy support for CC/NRPN/RPN etc. Automation playback/recording still would use the parameters, but the VST can send the applicable MIDI messages upon receiving the parameter change.

ygrabit
Posts: 149
Joined: Fri Jun 17, 2016 7:52 am
Location: Hamburg

Re: VST3 MIDI SysEx , Control change and channel Mode support

Post by ygrabit » Wed Oct 19, 2016 7:30 am

[1] should work with Cubase in 2 directions as input and as output

[2] not yet planned...
YVan Grabit

Post Reply