Where can I find good tutorials on writing audio DSP filters (lowpass, etc)? [closed]

筅森魡賤 提交于 2019-12-03 21:49:12

问题


I've recently become very interested in learning how to implement various audio filters in AS3. By intuitive guessing (and inspired by capacitors), I've managed to create what seems to be a 1st order high-pass filter, but I have no idea how to set its frequency (or Q) in a controlled way.

So I'd like to learn how to write parametric 2nd/4th order low-pass, hi-pass, bandpass filters from scratch. And I'm not very mathsy. Any practical, straightforward tutorials or textbooks out there which could help with this?

Partial credit for readable source code (in as3/c,etc), in lieu of a tutorial... (!)

Edit: Found a great site, www.musicdsp.org, with heaps of awesome code snippets, mostly in c/c++.


回答1:


The link you really want from MusicDSP is http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt

I also recommend getting Lyon's Understanding Digital Signal Processing. I am a bit biased, though, since I was a reviewer for the second edition (but I think a third edition came out recently).

Also check out Digital Audio Signal Processing and DAFX:Digital Audio Effects, both by Udo Zölzer.




回答2:


This is a great book to start with, especially considering that the entire text is online for free:

Introduction To Digital Filters With Audio Applications

Here are a couple links from the book that will probably help the most with understanding/applying the Audio EQ Cookbook that MPD posted: The BiQuad Section, Biquad Software Implementations




回答3:


In addition to the great books and resources that others have mentioned, I also recommend some experimentation.

DSP is really a form of applied math. But if you are not the "mathsy" type, one thing you can do is write lots of unit tests for your filters. Feed your filters impulses, step functions, long sine waves at various frequencies, frequency sweeps, etc., and see what comes out the other end, what the filter actually does to these different types of signals. You can experimentally test formulas that might seem fairly opaque (at first) to you.




回答4:


I've just started reading MIT's The Audio Programming Book. I can't vouch for it yet, but it may be of interest.




回答5:


There is no substitute for good text books on the subject of DSP. A classic is Hal Chamberlin's "Musical Applications of Microprocessors". See my answer to Where can I find low level Sound Programming Theory Tutorials for links to this and a couple of other useful books which are oriented more towards practical applications of DSP rather than the usual undergraduate DSP books which lean more towards theory.




回答6:


Also, an excellent course of university lectures here, which take you from the basics of dsp. https://ccrma.stanford.edu/~jos/filters/




回答7:


Another really great book that also is available online for free is the DSP Guide. It goes all the way from sampling theory to designing filters with arbitrary frequency response (and tons of other stuff). It's also written in a very clear way with good examples including example code to understand the concepts.



来源:https://stackoverflow.com/questions/5175874/where-can-i-find-good-tutorials-on-writing-audio-dsp-filters-lowpass-etc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!