DSP references
A reference of the soundor-dsp skill.
soundor-dsp reads this reference when a task needs it. Source on GitHub
Consult these for algorithms, formulas and background. Link to the source in comments and follow it, rather than reconstructing formulas from memory.
Foundations
- The Scientist and Engineer's Guide to Digital Signal Processing, by Steven W. Smith: https://www.dspguide.com/. Sampling, convolution, the DFT and FFT, digital filters, from first principles.
- Julius O. Smith III's online books, CCRMA, Stanford: https://ccrma.stanford.edu/~jos/. Introduction to Digital Filters, Physical Audio Signal Processing (delays, reverbs, waveguides), Spectral Audio Signal Processing (windows, STFT, overlap-add), Mathematics of the DFT.
Filters
- Audio EQ Cookbook, by Robert Bristow-Johnson, as a W3C note: https://www.w3.org/TR/audio-eq-cookbook/. Biquad coefficients for low/high pass, band pass, notch, peaking (bell) and shelving filters. FunDSP's state variable designs (Andrew Simper's trapezoidal SVF) are bilinear transforms of the same analog prototypes, and keep working while their coefficients change.
Real-time programming
- Real-time audio programming 101: time waits for nothing, by Ross Bencina: https://www.rossbencina.com/code/real-time-audio-programming-101-time-waits-for-nothing. Why audio code must not allocate, lock or block, and what to do instead.
Libraries
- FunDSP: https://github.com/SamiPerttu/fundsp, https://docs.rs/fundsp/
- RustFFT: https://github.com/ejmahler/RustFFT, https://docs.rs/rustfft/
Soundor
- Rust audio processing: https://soundor.dev/docs/rust-processor
- Processor tests: https://soundor.dev/docs/testing/rust-processor
- Soundor Prism's processor, a real equalizer and analyzer using FunDSP designs and RustFFT: https://github.com/soundor/prism/tree/main/apps/plugin/lib