Hi!
I’ve added a symmetric slider skew feature in https://github.com/soundradix/JUCE/tree/feature/symmetric_slider_skew .
With this mode, the skew factor applies from the middle of a slider to each of its ends, instead of from one of the ends to the other.
Specifically, this is useful for sliders which have a symmetric range around the midpoint zero.
Would buy a beer at AES for a review and a merge into the juce repo
Thanks!
Dan
3 Likes
That’s interesting I’ve just put forward a suggestion for having a lambda as an alternative to the skew in NormalisedRange, the same thing could be applied here and it would offer greater flexibility.
In the NormalisedRange class the constructor takes a template argument for a skew which is used to essentially create curves, however I think a possibly more flexible alternative would be to take two lambdas. These lambdas could take values between 0 and 1 and return values between 0 and 1, one would map linear values to non-linear values and the the other would linearise the non-linear values. This would allow for curves such as a sigmoid for example.
2 Likes
t0m
August 8, 2016, 7:59am
4
Hi Dan.
We’ve had a look at your code and it’s up for review soon. I expect it’ll be tested and pushed sometime next week.
1 Like
Hey Dan,
Your Symmetric Slider Skew code was pushed to develop!
Thanks for sending this
2 Likes