Hey everyone,
I'm in need of visualizing some various biquad filters and have a semi-working script to draw the frequency response. The issue I'm running into is that it doesn't look like the filter visualizations you would find in Serum's filters or pretty much any plugin with filter visualization. I'm just taking a given magnitude at a frequency from the biquad transfer function and using complex numbers in C++. This filter shown is the standard biquad lowpass filter.
It works well in some cases at higher cutoffs:
But at lower cutoffs it ends up going past a magnitude of 1 in some parts of the frequency domain:
On changing the cutoff, the filter warps a lot too. What are people doing differently to get clean results?
Keeping IIR filter frequency response plot stable
- KVRist
- Topic Starter
- 77 posts since 8 Nov, 2020
- KVRAF
- 7910 posts since 12 Feb, 2006 from Helsinki, Finland
Usually you want to plot these in a graph where both axis are logarithmic. As for going over unity, if you are using BLT/trapezoidal then for a 2nd order lowpass the maximum Q that gives you a monotonic filter is 1/sqrt(2).
-
- KVRian
- 920 posts since 4 Jan, 2007