Parameters that depend on another Parameter


#1

Hi,
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.

Thoughts?

Thanks,
Jay


#2

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.