[LAD] Fwd: Measuring phase and frequency response of a filter.

Robin Gareus robin at gareus.org
Tue Nov 5 20:52:39 UTC 2013


On 11/05/2013 08:52 PM, Rafael Vega wrote:
> 
> Hi.
> I'm building a little ear training application for eqing for which I'm
> building some filter banks in puredata. Can someone point me to a practical
> way of measuring and plotting my filter's frequency and phase responses?
> Jack apps, pd patches or code should be fine.
> Thanks!

https://github.com/Ardour/ardour/blob/master/gtk2_ardour/fft.cc
Is what generates the effect analysis (frequency and phase response) in
Ardour.

The code is quite easy to [re]use. Just feed a delta impulse into your
filter, call FFT::analyze() with the result and you get two arrays:
power_at_bin[], phase_at_bin[] YMMV.

HTH,
robin


More information about the Linux-audio-dev mailing list