I do not get how to use the new IIR::Filter in a plugin which is able to modulate it with an LFO or envelope.
If I want to change the filter cutoff each, let’s say, 20 samples, using dsp::IIR::Coefficients::makeLowPass(), it seems pretty expensive. And they do a new and I cannot do it in the audio thread, I would have to create my own function to modify the coefficients coping it from the original makeLowPass(), which points me to think that I’m doing it in the wrong way.
The problem increases if you would try to modulate a Chebyshev filter, since its static functions return an Array!
Are such classes suited to being modulated per sample? If they are, how should it be done?