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

From: Robin Gareus <robin@email-addr-hidden>
Date: Tue Nov 05 2013 - 22:52:39 EET

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
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Wed Nov 6 00:15:04 2013

This archive was generated by hypermail 2.1.8 : Wed Nov 06 2013 - 00:15:05 EET