FROM AGPEDIA — AGENCY THROUGH KNOWLEDGE

Pulse-code modulation

Pulse-code modulation (PCM) represents an analog signal digitally by sampling its magnitude at regular, uniform intervals and quantizing each sample to a symbol in a digital, usually binary, code.[1:1] It is the standard number format for sampled audio: each sample is treated as a pulse of some amplitude that is encoded as a binary number, usually in two's-complement fixed-point form.[2:1] Linear PCM (LPCM), in which the quantization steps are evenly spaced, is the form used on audio CDs and inside WAVE and AIFF files; PCM has also long been used in digital telephone systems.[1:1][1:2]

A sine wave with sample points rounded to the nearest of sixteen levels, shown as a stepped approximation.
Pulse-code modulation: a signal sampled at regular intervals and each sample rounded to one of a fixed set of levels (here 4 bits, 16 levels). CC BY-SA 3.0

How it works

PCM combines two steps. Sampling measures the signal at fixed instants, which loses nothing provided the signal is band-limited below half the sampling rate. Quantization rounds each measurement to the nearest of a finite set of values, so that it can be written as a binary word of fixed length, and this step generally does degrade the signal.[3:1] The number of bits per sample, the bit depth, sets the noise floor: each bit is worth about 6 dB of dynamic range.[2:2]

Not all PCM is linear. Telephone codecs have used an 8-bit μ-law format, sampled at 8 kHz;[2:3] and Sony's early consumer PCM-1 recorder used 13-bit nonuniform quantization.[4:1]

History

The Library of Congress traces the history of PCM back to at least the 1930s.[1:2] A patent by Alec Reeves, with French priority from October 1938 and granted in the United States in 1942, describes a system in which a waveform such as speech is scanned at predetermined instants, its amplitude range is divided into a finite number of values according to the fidelity required, and each sample is sent as a code for the nearest value. Its aim was transmission practically free of background noise, even where the signal-to-noise ratio would otherwise be about 20 dB, at the cost of a wider frequency band.[5:1]

Digital audio recorders using PCM existed by the late 1970s. When Philips engineers visited Sony in 1977 they saw two digital recorders: the consumer PCM-1 and the professional PCM-1600, built with the Japanese broadcaster NHK, which used 16-bit quantization with error correction and later proved essential for mastering compact discs.[4:1] Philips's own design for the compact disc used 14-bit uniform PCM at 44.3 kHz; the standard agreed with Sony in 1980 fixed 16-bit uniform quantization at 44.1 kHz.[4:2][4:3]

Use and preservation

Linear PCM is used on audio CDs (44.1 kHz, 16-bit) and DAT tape (48 kHz, 16-bit), and is the default encoding inside WAVE and AIFF files.[1:2] Most computer soundfile formats consist of a header, giving the length and other details, followed by the PCM samples; "raw" audio data nowadays almost always means 16-bit two's-complement PCM.[2:1]

The Library of Congress uses WAVE files with linear PCM as its main format for preserving recorded sound.[1:2] Its format description notes that linear PCM is simple and uncompressed, and that whatever its sampling rate, word length or byte order it can be decoded by trial and error, which makes it a "natural" representation of audio with very good long-term prospects.[1:3]

  1. ^a ^b ↗ lc-definition ^a ^b ^c ^d ↗ lc-use ^ ↗ lc-transparency Library of Congress (2022-04-19). Linear Pulse Code Modulated Audio (LPCM). Sustainability of Digital Formats: Planning for Library of Congress Collections. https://www.loc.gov/preservation/digital/formats/fdd/fdd000011.shtml.
  2. ^a ^b ↗ js-pcm ^ ↗ js-bits ^ ↗ js-telephone 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/.
  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. ^a ^b ↗ pk-sony ^ ↗ pk-philips ^ ↗ pk-standard Peek, Hans B. (2010-01). The Emergence of the Compact Disc. IEEE Communications Magazine. https://doi.org/10.1109/MCOM.2010.5394021 https://www.philips.com/c-dam/corporate/research/technologies/cd/The-Emergence-of-the-Compact-Disc_v2.pdf.
  5. ^ ↗ rv-pcm Reeves, Alec Harley (1942-02-03). Electric signaling system. https://patents.google.com/patent/US2272070A/en.

Wikidata: Q13043846

Available in