I have created my parameters using apvts and everything works perfectly fine. However, I want to be able to change the “skew” of a specific parameter when the user presses a button.
My parameter is built as follows:
parameters.push_back(std::make_unique<juce::AudioParameterFloat>("RATE", "Rate", juce::NormalisableRange<float>(0, 1, 0.001, 0.3), 0.12));
And when the user presses a toggle button, I want the skew to toggle between 0.5 and 0.3.
Through a button listener in the audioProcessor, I’ve tried:
apvts.getParameterRange("RATE").setSkewForCentre(0.5);
DBG(apvts.getParameterRange("RATE").skew);
But the skew doesn’t change. DBG still prints 0.3.
Is there a way to do it?