COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Prev Previous Post   Next Post Next
Old 06-12-2017, 05:49 AM   #11
HoRNet
Human being with feelings
 
Join Date: Feb 2011
Posts: 168
Default

Quote:
Originally Posted by Youlean View Post
Is this sending midi notes? If so, that would be awesome. I have implement that on AU so VST3 implementation is only missing..
No sorry it's for receiving MIDI Control change values, VST3 must expose them as plugin parameters.

It's really easy (but my code comes from the v3.5 of the VST3 sdk because 3.6 required c++11 and this breaks osx 10.6 compatibility.

Code:
// if does midi is set creates 128 fake parameters to be used to map control change since
// vst3 doesn't pass any CC to plugin but wants it mapped to a plugin parameter
if(DoesMIDI()) {
    int origParamNum = NParams();
    for (int k = 0; k < 128; k++) {
        Parameter* param = new RangeParameter( STR16("MIDI CC"),																						
            origParamNum + k,																						
            STR16(""),																						
            0,																						
            127,																						
            0,																						
            0, // continuous																						
            ParameterInfo::kCanAutomate,																						
            kRootUnitId);
        param->setPrecision (1.);
        parameters.addParameter(param);				
    }
}
This is in the initialize of the IPlugVST3
HoRNet is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:48 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.