Parameters that depend on another Parameter

I have an int “Start” parameter and an int “End” parameter.
I don’t want “Start” to exceed “End”. I can handle this fine from the user changing it off the GUI, but I am stumped on handling the situation when it comes from Automation.



Derive your own param class from AudioProcessorParameter and give it a pointer to it’s “friend” param.
Override setValue() and check your friend param’s value when called.

1 Like

Can this be done for AudioProcessorValueTreeState too?

I would imagine that this would need to be done using the iterator-based ParameterLayout constructor. In there you would assign friends.