Implementing AudioProcessorValueTreeState::SliderAttachment for Slider::TwoValueHorizontal

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?

1 Like

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

Ed