Thread: Cairo in WDL-OL
View Single Post
Old 03-02-2017, 02:02 PM   #14
Bobflip
Human being with feelings
 
Join Date: Nov 2016
Posts: 341
Default

Thanks for the info! Just wondering, you say the AU and VST don't quite work, are you only able to run the app version at the moment?


As for your other question, if I understand right you can add extra methods to your mycairocontrol.h and use those to set the private variables of the class.

So within the class you'd have something like

Code:
private:
	double mSetThresh;

void setMSetThresh(double value) {
	mSetThresh = value;
}
or you could pass them both at once with

Code:
void setMSetThreshAndGain(double thresh, double gain) {
	mSetThresh = thresh;
	mGain = gain;
}
Then you can call them from your main routine with

Code:
pCairoControl->setMSetThreshAndGain(GetParam(kCairoControl)->Value());
Now, although this is the way I'm successfully doing it in my project, I'm not 100% sure this is the correct way, so if anyone has any amendments I'd love to hear them!
Bobflip is offline   Reply With Quote