I am creating a filter plugin that can automate the cutoff at different rates. I am trying to create a two-value range slider around the cutoff slider as shown in the image below.
The first approach I tried to take was to create two sliders next to each other with custom look and feel classes so it would give the appearance of one range slider. This would also make saving min and max values to the AudioProcessorValueTreeState really easy. However, I did not get this working since the other slider seemed to block the other slider and it could not be used.
I also tried to create a default two-value slider but I think that can’t be changed to a rotary slider, correct? Also storing the values to the APVTS is difficult since you have to write your own slider attachment for that.
What would be the best approach for creating this kind of slider? I think it would be neat if Juce had a TwoValueRotarySlider or something like that with a SliderAttachment to it. Thank you so much in advance.