Hi, I have a volume slider with a range of -100 and 12 and I’d like to have the distribution of values as in a classic mixer volume fader.
There is a math rule to handle this skew? (also because I’d like to override lookAndFeel to draw near the slider little lines that indicate some points as 0.0 or -6.0 and so on)
Not sure, but here’s a tutorial that gets you at least part way there.
https://docs.juce.com/master/tutorial_synth_db_level_control.html
As for the range being distributed correctly, maybe look at NormalisableRange
and setSkewForCentre()
.
1 Like
Thank you, now I’m going to check this tutorial
1 Like