Hello,
Actually i am trying to do some process on button click/tune.
So, first i planned to display button’s value on GUI when click/tune button.
So, i used below lines of code in PluginProcessor.cpp file “processBlock” function
if (QVCAEditor* editor = (QVCAEditor*)getActiveEditor()) {
editor->updateSlicerParameters();
}
And assigning value of buttons to some parameters which has declared in Editor class. As below:
void QVCAEditor::updateSlicerParameters()
{
/Store Buttons value to parameters/
}
And display these parameters value, from “paint” function in PluginEditor file as below:
g.drawSingleLineText(juce::String::formatted("%4.2f", “parameters_variable”), ((getWidth()/16)*0) + 10, getHeight()-20);
But, i can not see any effect of those value when click/tune buttons.
So, am i doing something wrong. Or am i missed something. Please, guide me.
Or I have to use following lines of code from “setParameter” function from PluginProcessor.cpp file?.
if (QVCAEditor* editor = (QVCAEditor*)getActiveEditor()) {
editor->updateSlicerParameters();
}
Regards,
Kishan Patel.