FROM AGPEDIA — AGENCY THROUGH KNOWLEDGE

Digital signal processing

Digital signal processing (DSP) works on signals as sequences of numbers. In digital audio, sound is sampled into a stream of numbers, each giving the position of a loudspeaker at one instant;[1:1] a digital filter is a computation that turns one such sequence, the input signal, into another, and it can do anything a real-world filter can, to arbitrary precision, whether it is written as an equation, a loop in a program or a set of chips.[2:1]

From sound to numbers

Analog-to-digital conversion consists of sampling in time and quantization in amplitude. Sampling loses no information if the input is band-limited as the sampling theorem requires, but quantization degrades the signal, as does requantization to a shorter word length after processing.[3:1] Compact discs use 44,100 samples per second, about one every 23 microseconds.[1:1] By the Nyquist–Shannon sampling theorem, a continuous signal can be reconstructed exactly from uniform samples if it has no energy at or above half the sampling rate.[1:2] The samples are usually stored as pulse-code modulation, each sample a binary number, usually in two's-complement fixed-point form,[1:3] and the number of bits per sample, the bit depth, sets the dynamic range at about 6 dB a bit.[1:4]

The theorem is an idealization: real signals are never exactly band-limited, and there is no ideal anti-aliasing or reconstruction low-pass filter.[4:1] Unser (2000) recasts sampling as a three-step procedure of prefiltering, sampling and postfiltering, with filters that need not be ideal.[4:2]

Filters

In Julius Smith's account, any medium through which a music signal passes can be regarded as a filter, from a loudspeaker or the human vocal tract to tone controls, equalizers, reverberators, echo devices, phase shifters and loudspeaker crossovers.[2:1] Most audio filters are linear and time-invariant (LTI), and introduce no new spectral components. A filter that changes at audio rates creates audible sidebands, and a nonlinear filter creates new components at the sums and differences of the input frequencies, heard as harmonic and intermodulation distortion. Fourier transforms are themselves linear operators and can be viewed as banks of LTI filters.[2:2]

Any LTI filter is fully described by its impulse response, its output when the input is a single unit impulse, and can be implemented by convolving the input with that response.[2:3] This follows from superposition: any signal is a weighted sum of shifted impulses, so the output is the same weighted sum of impulse responses.[2:4]

In audio work

Common audio tasks built on these ideas include resampling, which reconstructs the signal between its samples by band-limited interpolation,[5:1] and measuring the impulse response of a room or loudspeaker with a swept sine.[6:1] The term also names dedicated processors: Android's documentation counts processing on a DSP after the application processor among the contributors to audio latency.[7:1]

  1. ^a ^b ↗ js-intro ^ ↗ js-theorem ^ ↗ js-pcm ^ ↗ js-bits Smith III, Julius O. (2007). Mathematics of the Discrete Fourier Transform (DFT), with Audio Applications. W3K Publishing. ISBN 978-0-9745607-4-8. https://ccrma.stanford.edu/~jos/mdft/.
  2. ^a ^b ↗ fi-filter ^ ↗ fi-lti ^ ↗ fi-impulse ^ ↗ fi-convolution Smith III, Julius O. (2007-09). Introduction to Digital Filters with Audio Applications. W3K Publishing. ISBN 978-0-9745607-1-7. https://ccrma.stanford.edu/~jos/filters/.
  3. ^ ↗ lp-adc Lipshitz, Stanley P.; Wannamaker, Robert A.; Vanderkooy, John (1992-05). Quantization and Dither: A Theoretical Survey. Journal of the Audio Engineering Society. https://www.aes.org/e-lib/browse.cfm?elib=7047.
  4. ^ ↗ un-problems ^ ↗ un-paradigm Unser, Michael (2000-04). Sampling—50 Years After Shannon. Proceedings of the IEEE. https://doi.org/10.1109/5.843002 https://infoscience.epfl.ch/record/63072.
  5. ^ ↗ rs-bandlimited Smith III, Julius O. (2020-09-17). Digital Audio Resampling Home Page. Center for Computer Research in Music and Acoustics (CCRMA), Stanford University. https://ccrma.stanford.edu/~jos/resample/.
  6. ^ ↗ fa-abstract Farina, Angelo (2000-02). Simultaneous Measurement of Impulse Response and Distortion with a Swept-Sine Technique. Audio Engineering Society 108th Convention. https://www.aes.org/e-lib/browse.cfm?elib=10211.
  7. ^ ↗ ac-buffers Android Open Source Project (2026-10-09). Contributors to audio latency. Android Open Source Project documentation: Core topics. https://source.android.com/docs/core/audio/latency/contrib.

Wikidata: Q173142

Available in

Discussion

No threads yet.

Sign in to start threads and post replies.