I’d like to smooth my audio parameters with a lowpass filter. When I detect a transport change I’d like to forego the smoothing and jump right to the new value (in the case of automation, etc). How can I do this efficiently?
One way to do it would be to just run a bunch of the target value through the smoothing filter until it eventually converges to the value, but that’s super inefficient. Another way is to change the IIR Coefficients to be a lowpass filter all the way at nyquist and then you need to run even less samples through, but that’s still kinda hacky.
Based on some testing, I believe Serum (popular VST synth) does this, and I’d love to know how the creator pulled it off.