I should be more explicit about what my plugin (“CC Panel”) is doing. It doesn’t produce audio itself; I’m using it in Reaper to enhance changing parameters in other synth and FX plugins via a hardware controller. A parameter in CC Panel gets linked to a parameter in another plugin via Reaper’s “Link from MIDI or FX Parameter” function. It allows for much greater precision, nuance, and flexibility than is possible with Reaper’s “MIDI Learn” function. In addition, CC Panel’s GUI matches the layout of knobs, faders, and buttons on the hardware controller and has editable labels for each control, making it easier to keep track of which parameter in which plugin a hardware control is linked to.
My problem occurs when I use CC Panel to control a parameter like LPF Cutoff Frequency in a soft synth. Since changes to the CC panel parameter made via MIDI messages are discrete, there are audible jumps as it changes the filter frequency in the other plugin. Interestingly, if I change the CC Panel parameter via an attached slider in CC Panel’s GUI, there is no audible zippering in the other plugin’s filter sweep. This indicates that it is indeed possible to smooth the parameter change in some way.
I made a clumsy attempt at smoothing by using a for loop to subdivide parameter changes. It actually worked for a short time, but the plugin would crash Reaper after a few knob turns Anyway, I’ll continue to study the SmoothedValue class. I think your suggestion to use getNextValue() with a timer will help me out here. Thanks @fefanto !