I’ve been experimenting with the AudioProcessorValueTreeState for adding parameters in a plugin, and I’m wondering: If you have a float parameter, how do you specify the number of decimal places displayed, and how do you specify the increment value?
For example, I added a float parameter into a ValueTree initialization:
std::make_unique<AudioParameterFloat> ("rep", // parameterID
"Replications", // parameter name
0.0f, // minimum value
10.0f, // maximum value
3.0f), // default value
I want this parameter to display a single decimal place, and to increment by single decimal places, i.e. 0.1.
I tried:
replicationsSlider.setNumDecimalPlacesToDisplay (1);
But it doesn’t have any effect. It still displays 2 decimal places and increments by 0.01.