[pulseaudio-discuss] Updates to filtering work. Review requested.
wingfeathera at gmail.com
Sat Apr 20 08:56:11 PDT 2013
On 20 Apr 2013, at 00:27, Justin Chudgar <justin at justinzane.com> wrote:
> Gentlemen, Ladies and Bots:
> Thanks again for all your help getting me to this point. Based on various
> input, I have done a major refactor of what was module-lfe-lp. The actual
> filtering code now lives in pulsecore/biquad-filter.c/h so that it may be used
> by other modules or by pulse itself. Module-lfe-lp has been renamed module-
> lfe-lowpass-sink.c and now relies on biquad-filter to do the heavy lifting.
> I have tried to cleanup most of the fprint and comment cruft and have moved
> all doc comments to biquad-filter.h. You will note that I wrote the biquad
> with the assumption that it will get extended to handle other filter types,
> like notch and bandpass, as well as 2nd, 4th, 6th and 8th order filtering.
> is not used by my module, but it seemed logical to enable easy extension of
> functionality as needed.
> I would appreciate your continued review and guidance. For your convenience,
> attached a graph of the power spectral density comparison for a standard
> surround-51 setup with lpfreq=200.0Hz. To my uneducated eye, it looks like
> things are working.
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
Can you comment on exactly what you measured to make that graph? It looks
awfully clean to be an acoustic measurement, but is an odd shape for a signal-
pulseaudio-discuss mailing list
pulseaudio-discuss at lists.freedesktop.org
The source audio and python test code are in pulseaudio/pytests in the repo.
Basically, the source is a simple chirp-like sound generated in audacity and
saved as a stereo wav. The test just plays the stereo source through null-
sink with lfe-lowpass-sink filtering at a cutoff of 100Hz. As far as the PSD
graph goes, check out "Spectrum" on pypi. It is a spectrum.pdanniell PSD.
More information about the pulseaudio-discuss