kfrlib / kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
https://www.kfrlib.com
GNU General Public License v2.0
1.64k stars 252 forks source link

Need a method to change filter coefficients #155

Closed ghost closed 2 years ago

ghost commented 2 years ago

You can't assign a new filter it pops, I can't get to the biquad_block to modify the coefficients. Needs some method to get them or modify it while it is running without popping.

ghost commented 2 years ago

I am modifying it to get the expression_filter as it is protected

ghost commented 2 years ago

Hah, I got the expression but I have no idea how to get it into an expression_biquad at all.

ghost commented 2 years ago

I realized, I have written a bunch of biquad. Well, Kfr already calculates the coefficients which is the hard part, so I can just use Kfr to calculate the coefficients and use a simpler biquad to compute the filter instead.

ghost commented 2 years ago

Haha, works great, plus now I can use the ZPK and SOS too to make anything