Thread: AAX and knobs
View Single Post
Old 04-17-2017, 12:05 PM   #9
earlevel
Human being with feelings
 
Join Date: Dec 2015
Posts: 261
Default

Quote:
Originally Posted by Tunca View Post
How did you do your plugins,earlevel? I can't figure it out.
Most of my knob-related parameters are doubles, with one enum. (I also have two other enum parameters, and one int and one bool, but they are not knobs.) The enum controlled by knob is the only one similar to your situation.

Here's the code that configures the parameter, simplified for clarity:
Code:
// set the Mode parameter to an enum with 11 settings
GetParam(kMode)->InitEnum("Mode", 0, 11);

// configure the settings names
const char *modeNames[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11" };
for (int idx = 0; idx < 11; ++idx)
  GetParam(kMode)->SetDisplayText(idx, modeNames[idx]);

// create a knob control for Mode
IBitmap knob = pGraphics->LoadIBitmap(modeResID, modeResFile, 11);
pGraphics->AttachControl(new IKnobMultiControl(this, modeResLoc->h, modeResLoc->v, kMode, &knob));
Sorry, I don't have time at the moment to make and test an integer test case. I believe that I fixed the problems with integer parameters in AAX that are in wdl/ol master. All of my parameters automate correctly with my fork (but failed with wdl/ol master).
earlevel is offline   Reply With Quote