I have a bunch of Sliders and Buttons that are connected to my AudioProcessorValueTreeState with SliderAttachments, etc, and I’d like to be able to change the parameters that the sliders & buttons are attached to based on another button.
Switch = off Slider1 attached to Osc1 Volume Slider2 attached to Osc1 Pan Switch = on Slider1 attached to Osc2 Volume Slider2 attached to Osc2 Pan
I’m guessing that when the user presses Switch, I would delete the current Attachments and create new ones and vice versa. Is that correct? Am I missing any gotchas?
As I think about it a little more, I’d prefer if there was a way to switch without deleting and creating new Attachments every time.