Quote:
Originally Posted by br_ck1
is it possible -INSIDE THE METHOD OnParamChange()- to call OnParamChange() itself for a param (BEING SURE TO AVOID ANY POSSIBLE INCOMPATIBILITY WITH ALL OS/HOSTS)?
|
Sure, I do it in my plugins.
An example might be if you had a filter plugin that emulated 20 different well-known lowpass filters (24 dB ladder, etc.), with the type selected by a drop-down menu, a frequency knob, and a resonance knob. When the user selects a different filter type, your OnParamChange code might change an internal index so that the processing function routes the audio through the selected filter, and you'll probably want to call OnParamChange for the frequency, and again for resonance. That would be a lot smarter than updating freq/res on all 20 filters each time to ensure their settings are current.