Hack Audio: An Introduction to Computer Programming and Digital Signal Processing in MATLAB from Focal Press provides an introduction for musicians and audio engineers interested in computer programming. It is intended for a range of readers including those with years of programming experience and those ready to write their first line of code. In the book, computer programming is used to create audio effects using digital signal processing. By the end of the book, readers implement the following effects: signal gain change, digital summing, tremolo, auto-pan, mid/side processing, stereo widening, distortion, echo, filtering, equalization, multi-band processing, vibrato, chorus, flanger, phaser, pitch shifter, auto-wah, convolution and algorithmic reverb, vocoder, transient designer, compressor, expander, and de-esser.
Throughout the book, several types of test signals are synthesized, including: sine wave, square wave, sawtooth wave, triangle wave, impulse train, white noise, and pink noise. Common visualizations for signals and audio effects are created including: waveform, characteristic curve, goniometer, impulse response, step response, frequency spectrum, and spectrogram. In total, over 200 examples are provided with completed code demonstrations.
List of Tables
List of Figures
Acknowledgements
1. Introduction
2. Basics of Programming in MATLAB
3. Basics of Audio in MATLAB
4. LAB Programming Environment
5. Logicals and Control Structures in Programming
6. Signal Gain and DC Offset
7. Introduction to Signal Synthesis
8. Summing, Fades, and Amplitude Modulation
9. Stereo Panning and Mid-Side Processing
10. Distortion, Saturation, and Clipping
11. Echo Effects
12. FIR Filters
13. IIR Filters
14. Delay Buffers and Fractional Delay
15. Modulated Delay Effects
16. Algorithmic Reverb Effects
17. Amplitude Envelope Effects
18. Dynamic Range Processors
Index
