Implementing AudioProcessorValueTreeState::SliderAttachment for Slider::TwoValueHorizontal


#1

Before I go and repeat something already done I wanted to check to see if someone here has implemented a AudioProcessorValueTreeState::SliderAttachment for Slider::TwoValueHorizontal.

I guess the code that needs to be modified is this class. The setValue function needs to change along with the call to getValue inside sliderValueChanged. Which logic can be used to determine which thumb has been modified?


#2

The Slider class has a getThumbBeingDragged() method that you can use in your slider callback to determine which thumb has been modified.

Ed