I have a plugin that uses AudioProcessorValueTreeState to manage its state, with a bunch of sliders in the UI.
I’d like to add something like an “INIT” button to reset all sliders to their initial position; each parameter has a default value which is set it in
createParameterLayout(), and can be easily recalled by double-clicking the sliders).
But how can I achieve the same result from my code?
Is there any built-in mechanism to do this? I took a look at the docs but couldn’t find what I was looking for.
I tried to manually access my parameters and then call something like
but I got an error saying that
AudioParameterFloat::setValue is inaccessible.
I got the feeling that I’m trying to reinvent the wheel here. Any thoughts?