Digital audio: sampling and resolution
Digital audio measures a sound wave thousands of times a second (the sample rate) and records each measurement as a number of a fixed size (the bit depth). The sampling theorem says a sample rate more than twice the highest frequency loses nothing; each bit adds about 6 decibels of range. A CD samples 44,100 times a second at 16 bits; compressed formats such as MP3 discard what the ear is least likely to notice.
Also called: digital audio; pulse-code modulation (PCM) (English); digitales Audio, Abtastrate, Bittiefe (German); audio numérique, fréquence d’échantillonnage (French).
- Sampling. The sampling theorem (Nyquist, 1928; Shannon, 1949) guarantees that a signal containing no frequency above half the sample rate (the Nyquist frequency) can be rebuilt exactly. Frequencies above it fold back as false lower ones (aliasing), so converters filter them out first. 44.1 kHz covers hearing’s 20 kHz with room for that filter; video and studios use 48 kHz, 96 kHz or more.
- Resolution. Each sample is rounded to the nearest of 2ⁿ levels; the rounding is heard as a faint noise. Each bit adds about 6 dB of dynamic range: 16 bits give about 96 dB, 24 bits about 144 dB in theory. A little added noise (dither) turns the rounding’s distortion into a smooth hiss.
- Compression. Lossless formats (such as FLAC) shrink files without changing a sample; lossy ones (MP3, AAC) use the ear’s masking — loud sounds hide nearby softer ones — to discard what is unlikely to be heard.
- Not audio: MIDI. MIDI (1983) records which notes are played, when and how hard, not the sound itself; a synthesizer or sampler turns it into audio — as this app’s player does with its sampled instruments (see Sound synthesis).
| Format | Sample rate | Bits | Data per second (stereo) |
|---|---|---|---|
| Telephone (narrowband) | 8 kHz | 8 (companded) | 64 kbit (mono) |
| CD (1982) | 44.1 kHz | 16 | 1,411 kbit |
| Studio, film | 48–96 kHz | 24 | 2,304–4,608 kbit |
| MP3, typical | 44.1 kHz | — | 128–320 kbit |
History
Alec Reeves invented pulse-code modulation in 1937, for telephony; Bell Labs’ Max Mathews synthesized music on a computer from 1957 (see Tape, synthesis and sampling). Japan’s NHK and Denon made digital recordings from the late 1960s and early 1970s; Thomas Stockham’s Soundstream recorder (1976) brought digital recording to American studios. Sony and Philips launched the compact disc in 1982; the MP3 format, developed at the Fraunhofer Institute and standardized in 1993, made music files small enough for the internet.
Where the words come from
- digital
- Latin digitus, "finger," hence counting on the fingers: represented by numbers.
- aliasing
- From alias, "otherwise (named)": a frequency appearing under a false name.
Questions
Do higher sample rates than the CD’s sound better?
Careful listening tests mostly find no audible difference for playback, since 44.1 kHz already covers human hearing. Higher rates and bit depths help in recording and processing, where headroom and gentle filters matter.
Read with it
- Microphones, loudspeakers and pickups
- Sound synthesis: additive, subtractive, FM, physical modeling
- Spectra and Fourier analysis
- Decibels and perceived loudness
- Tape, synthesis and sampling
Sources
- Ken C. Pohlmann, Principles of Digital Audio (McGraw-Hill, 6th ed. 2010).
- Claude E. Shannon, "Communication in the Presence of Noise," Proceedings of the IRE 37 (1949).
- Curtis Roads, The Computer Music Tutorial (MIT Press, 1996).