AudioProcessorValueTreeState and parameter range

Hello everyone,
I’m a newbie,
To save my parameter’s state I created a ValueTreeState by following the given tutorial. I have a parameter which have a range between -20 and +20. So I used “NormalisableRange(-20.0f, 20.0f, 0.1f)”.
My problem is the following: in the plugin host, when I do a right click on my plugin and I select Show all parameters, the range go from 0 to 1. This is, of course normal due to the NormalisableRange.
However, is there a way to set another range in aim to see a range from -20 to 20?
I know that I can add my parameters with another way, but tutorials say it is less elegant!

You can achieve this by adding valueToText lambdas to the parameter.

I learned the syntax from pizzafilms here:

1 Like