FROM AGPEDIA — AGENCY THROUGH KNOWLEDGE

Digital audio

Digital audio is sound represented as a sequence of numbers. A sound wave is sampled at regular instants, and each sample is stored as a number that can be thought of as the position of a loudspeaker at that instant; compact discs, for example, store 44,100 samples per second.[1:1] Converting analog sound to digital form takes two steps, sampling in time and quantization of each sample's amplitude to a binary number of fixed length.[2:1] The standard way to encode the result is pulse-code modulation (PCM).[1:2]

Principles

Sampling

The Nyquist–Shannon sampling theorem says that a signal with no frequencies above a limit is completely determined by samples taken at more than twice that frequency.[3:1][1:3] Human hearing extends to about 20 kHz, so a sampling rate a little above 40 kHz is enough in principle; within that band, sampling does not change frequency response or phase, and the original signal can be reconstructed smoothly and with its exact timing.[1:1][4:1] Energy above half the sampling rate would be misrepresented as lower frequencies, an effect called aliasing, so it is removed by an anti-aliasing filter before sampling.[1:4][4:1]

Quantization

Unlike sampling of a band-limited signal, quantization generally degrades the signal.[2:1] The number of bits per sample, the bit depth, sets how small: each bit of linear PCM is worth about 6 dB of dynamic range, so 16 bits give about 96 dB.[1:5][4:2] Without dither, quantization error on quiet or simple signals is audible as distortion; with proper dither it becomes plain uncorrelated noise.[2:2][4:2]

History

PCM goes back at least to the 1930s.[5:1] Alec Reeves's patent, with French priority from 1938, described sampling speech at fixed instants and sending each sample as a code for the nearest of a set of amplitude values, to make transmission practically free of noise.[6:1] Digital telephony long used 8-bit μ-law samples at 8 kHz, enough for the narrow band of a voice.[1:6]

By 1977 Sony had built a consumer digital recorder, the PCM-1, and a professional one, the PCM-1600, developed with the Japanese broadcaster NHK; the latter, with 16-bit quantization and error correction, later proved essential for mastering compact discs.[7:1] Philips and Sony agreed a common compact disc standard in June 1980, fixing a 44.1 kHz sampling rate, 16-bit uniform quantization, a 12 cm disc and about 60 minutes of playing time; Philips had earlier proposed 14 bits at 44.3 kHz.[7:2][7:3]

Formats and storage

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; some converters handle up to 192 kHz and 32 bits.[5:1] Most computer soundfile formats are simply a header followed by PCM samples.[1:2] The Library of Congress preserves recorded sound as WAVE files with linear PCM, noting that such data can be decoded by trial and error whatever its sampling rate or word length, and so has very good long-term prospects.[5:1][5:2]

Resolution for recording and for listening

Recording and production usually use more resolution than listening needs. Engineers record at 24 bits for headroom and a lower noise floor, so that levels can be set roughly and the noise of many processing steps stays low,[4:3] and signal processing benefits from extra guard bits.[1:5] Higher sampling rates mainly ease filtering inside converters.[4:4][1:6]

For distributing finished music, a 2012 Xiph.Org essay argued that 16 bits at 44.1 or 48 kHz are already enough for the best possible playback, citing controlled listening tests, and that 24-bit/192 kHz files take six times the space and can even play back slightly worse, because inaudible ultrasonic content can turn into audible distortion in amplifiers and loudspeakers.[4:3][4:5][4:6]

  1. ^a ^b ↗ js-intro ^a ^b ↗ js-pcm ^ ↗ js-theorem ^ ↗ js-aliasing ^a ^b ↗ js-bits ^a ^b ↗ 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/.
  2. ^a ^b ↗ lp-adc ^ ↗ lp-undithered 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.
  3. ^ ↗ sh-theorem Shannon, Claude E. (1949-01). Communication in the Presence of Noise. Proceedings of the IRE. https://doi.org/10.1109/JRPROC.1949.232969 https://web.cs.miami.edu/home/burt/learning/Csc524.092/docs/shannonpaper.pdf.
  4. ^a ^b ↗ xi-sampling ^a ^b ↗ xi-16bit ^a ^b ↗ xi-24bit ^ ↗ xi-oversampling ^ ↗ xi-listening ^ ↗ xi-ultrasonic Montgomery, Christopher (2012-03-01). 24/192 Music Downloads ...and why they make no sense. Xiph.Org. https://people.xiph.org/~xiphmont/demo/neil-young.html.
  5. ^a ^b ^c ↗ 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.
  6. ^ ↗ rv-pcm Reeves, Alec Harley (1942-02-03). Electric signaling system. https://patents.google.com/patent/US2272070A/en.
  7. ^ ↗ pk-sony ^ ↗ pk-standard ^ ↗ pk-philips 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.

Wikidata: Q173114

Available in

Discussion

No threads yet.

Sign in to start threads and post replies.