Sampling Theory in Audio

Graduate Depth 63 in the knowledge graph I know this Set as goal
Unlocks 21 downstream topics
digital-audio sampling nyquist signal-processing

Core Idea

Sampling theory describes the mathematical conditions under which a continuous analog signal can be captured and perfectly reconstructed from discrete samples. The central result — the Nyquist-Shannon sampling theorem — states that a bandlimited signal can be exactly reconstructed if the sample rate exceeds twice the signal's highest frequency component. This upper limit is called the Nyquist frequency.

When audio content exists at frequencies above half the sample rate, aliasing occurs: those high-frequency components "fold back" into the audible spectrum as false, spurious tones. A 20 kHz tone recorded at 32 kHz sample rate would alias to 12 kHz — a clearly audible artifact that wasn't in the original sound. Anti-aliasing filters (low-pass filters applied before the analog-to-digital converter) prevent aliasing by removing content above Nyquist before sampling.

Oversampling — recording at a multiple of the target sample rate — allows more gradual filter slopes, reducing phase distortion and ripple in the audio passband. Many modern converters oversample internally at 8x or 16x the output rate, then use digital filters to downsample to 44.1 or 48 kHz. This produces audibly cleaner results than steep analog anti-aliasing filters.

Sample rate also matters for pitch-shifting and time-stretching algorithms. Time-domain techniques like granular synthesis and phase vocoders operate on the sample-level structure of audio. Higher sample rates provide more samples per period of each frequency, giving these algorithms more data to work with and producing less artifacting at extreme settings.

Explainer

Sampling theory provides the mathematical foundation for all digital audio systems. Claude Shannon and Harry Nyquist formalized the conditions for lossless digital representation of analog signals, and their theorem governs every decision about sample rate in modern audio hardware and software.

The practical implications extend beyond the recording stage. Sample rate affects latency in real-time processing (higher rates mean smaller buffer sizes for equivalent latency), computational load in plugins (more samples per second to process), and the accuracy of time-domain algorithms. Understanding the Nyquist theorem prevents common errors like recording at rates too low for high-frequency content and failing to apply appropriate anti-aliasing when downsampling.

Sampling theory also connects directly to synthesis and audio programming: wavetable synthesis scans through stored single-cycle waveforms at sample-accurate rates, and any synthesis algorithm generating frequencies above Nyquist must include appropriate limiting to prevent aliasing artifacts in the output.

What did you take from this?

Topics in reflective domains aren't scored by quiz answers. Read, reflect, and mark when you've thought it through.

Quiz me anyway →

Prerequisite Chain

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineOpposites and Additive InversesAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesLiteral EquationsSlope-Intercept FormPoint-Slope FormWriting Linear EquationsParallel and Perpendicular Line SlopesGraphing Linear EquationsPiecewise FunctionsStep FunctionsComposition of FunctionsInverse FunctionsRadical Functions and GraphsRational ExponentsExponential Functions and GraphsLogarithms IntroductionPitch and FrequencyDigital Audio FundamentalsSampling Theory in Audio

Longest path: 64 steps · 267 total prerequisite topics

Prerequisites (1)

Leads To (3)