Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Biquad filter dynamic frequency #173

Open
MatthieuMv opened this issue Jan 17, 2023 · 1 comment
Open

Biquad filter dynamic frequency #173

MatthieuMv opened this issue Jan 17, 2023 · 1 comment

Comments

@MatthieuMv
Copy link

Is KFR's biquad / IIR implementation friendly to dynamic frequency ?

I think I can precompute sos parameters but I don't think there is a way to inject new parameters to an existing filter cache.
Is it possible to achieve dynamic filtering in KFR or should I implement a custom filter for that purpose ?

Thank you

@dancazarin
Copy link
Member

Changing frequency dynamically is not yet supported out-of-the-box. How often does the frequency change in your case? If audio is being processed in blocks and frequency changes only at block boundary (hundreds of samples, as in VST), crossfade may be used. If per-sample accuracy is needed, I think it will have a huge performance impact because IIR filter design is not intended for per-sample invocation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants