Signals and Sound · Course 1 · Lecture 1

Sound, signals and sampling

How does a sound become a list of numbers, and how do we get it back?

From a guitar string and a microphone to the sampling theorem, aliasing and the anti-aliasing filter, then the mathematics of aliasing and how the wave is rebuilt from its samples.

Checked by two AI reviewers against cited sources, 28 October 2026.Lecturer review pending.See the record

Read the full transcript · Workbook with notes, questions and answers (PDF)

At a glance

By the end, an A Level student can

  1. Read amplitude, period and frequency from a waveform and use f=1/Tf = 1/T.
  2. Explain sampling, and use fsf_s and Ts=1/fsT_s = 1/f_s.
  3. State and apply the sampling theorem, fs>2fmax⁡f_s > 2f_{\max}, and the Nyquist frequency fs/2f_s/2.
  4. Explain aliasing, and why the anti-aliasing low-pass filter comes first in a PCM transmitter.

A first-year student can also

  1. Show that ff and f+kfsf + kf_s give identical samples, and calculate any alias frequency by folding.
  2. Explain why the anti-aliasing filter must be steep, and how oversampling eases it.
  3. Explain reconstruction: why, ideally, a filtered DAC output is the original band-limited wave, not a staircase.

Before this lecture: GCSE waves (frequency, wavelength, v=fλv = f\lambda). The first-year part uses the periodicity and symmetry of cosine; no calculus.

Key equations

frequency and period
f=1Tf = \frac{1}{T}
sampling period
Ts=1fsT_s = \frac{1}{f_s}
the sampling theorem
fs>2fmax⁡f_s > 2 f_{\max}
the Nyquist frequency
fN=fs2f_N = \frac{f_s}{2}
any alias, k the whole number that makes it smallest
falias=∣f−kfs∣f_{\text{alias}} = \lvert f - k f_s \rvert

Part one · A Level

Notes: from a sound to a list of numbers

What a signal isin the video at 0:21

When a guitar string vibrates, it squashes and stretches the air beside it, and those squashes and stretches (compressions and rarefactions) travel outwards as a pressure wave at about 343 m/s in air at 20 °C. A microphone's diaphragm moves with the pressure, and the microphone turns that movement into a voltage: more pressure, higher voltage. That changing voltage is a signal, a quantity that changes over time and carries information.

The simplest signal is a sine wave, the sound of a tuning fork. Its amplitude is the height from the middle line to a peak, and a bigger amplitude sounds louder. Its period TT is the time for one complete cycle, in seconds, and its frequency ff is the number of cycles each second, in hertz (Hz). They are two views of the same thing:

f=1Tf = \frac{1}{T}

The A that orchestras tune to is 440 Hz, so its period is 1/440≈2.271/440 \approx 2.27 ms. Doubling a frequency raises a note by an octave; halving it lowers it by one.

Phase says where in its cycle a wave is at time zero, in degrees or radians. You cannot hear the phase of a single tone, but when signals are added together, phase decides whether they reinforce or cancel.

Voltage against time: three cycles in one second, so f = 3 Hz, with one period T marked between neighbouring peaks and f = 1/T written beside the wave
Period and frequency: f = 1/T.

The range of hearingin the video at 3:11

Young, healthy ears hear from about 20 Hz up to about 20 kHz. The top end falls with age, and many adults hear little above 15 or 16 kHz. That 20 kHz figure is what decides how fast audio has to be sampled.

A frequency axis from 20 Hz to 20 kHz with young, healthy hearing shaded and examples marked: bass guitar, concert A, the bite of speech, cymbal shimmer
Young, healthy hearing runs from about 20 Hz to about 20 kHz.

Why go digital?in the video at 4:10

The microphone's voltage varies smoothly and continuously. It is analogue: a likeness, an analogue, of the pressure wave. Every time an analogue signal is copied, stored or sent, a little noise and distortion creep in, and in general they cannot be taken out again; copy a tape, then copy the copy, and by the fifth generation you can hear the hiss.

A digital signal is a list of numbers, and a number can be copied a million times without changing. Numbers can also be processed by a computer: filtered, mixed, compressed and sent round the world.

Turning a voltage into numbers takes two steps. Sampling measures it at regular moments in time, and is this lecture's subject. Quantisation rounds each measurement to one of a fixed set of levels, and is Lecture 2's. Sampling chops up time; quantisation chops up the voltage.

A wave sampled on a time grid and rounded to levels: sampling chops up time, quantisation chops up the voltage
Sampling chops up time; quantisation chops up the voltage.

Samplingin the video at 5:33

Imagine photographing the voltage at regular intervals and writing down each value. Each measurement is a sample. The number of samples taken each second is the sampling rate, or sampling frequency, fsf_s, in hertz. The time between samples is the sampling period:

Ts=1fsT_s = \frac{1}{f_s}

A CD samples at 44.1 kHz, 44 100 samples every second, so its samples are 1/44 100≈22.7 μs1/44\,100 \approx 22.7\ \mu\text{s} apart. Once a signal has been sampled the smooth wave is gone and only the dots remain. The question for the whole lecture is whether the wave can be got back from them.

On average, each cycle of a wave gets fs/ff_s/f samples (any one cycle holds a whole number of them). At 44.1 kHz a 1 kHz tone gets 44.1 samples per cycle, and a 10 kHz tone gets 4.41: fewer, but still enough.

A sine wave sampled at each tick of a sampling clock, with the sampling period T_s marked between two samples
A sample at every tick of the sampling clock, T_s apart.

The sampling theoremin the video at 7:33

To capture a frequency you need more than two samples in each of its cycles. Put the other way round, the sampling rate must be more than twice the highest frequency in the signal:

fs>2fmax⁡f_s > 2 f_{\max}

This holds for signals that start at 0 Hz, such as audio. (A signal confined to a narrow band far above 0 Hz can be sampled more slowly, by a technique called bandpass sampling.)

This is the sampling theorem, often called the Nyquist theorem or the Nyquist–Shannon theorem. Its discovery was shared: E. T. Whittaker found the rebuilding formula in 1915, Harry Nyquist's 1928 telegraph work gave the factor of two, Vladimir Kotelnikov stated and proved it for communications in 1933, and Claude Shannon's 1949 paper, which gave the full proof for engineers and called the result common knowledge, made it famous. Half the sampling rate, fs/2f_s/2, is the Nyquist frequency: the limit for a given sampling rate, since only frequencies below it can be captured.

Why more than two, and not exactly two? At exactly two samples per cycle the samples might land on the peaks, and the wave shows up, though its true size and phase still cannot be told. But they might equally land on the zero crossings, and then every sample is zero and the wave vanishes. Exactly two is not safe; just over two is enough.

Books differ in their words. Here, as in most audio work, the Nyquist frequency is fs/2f_s/2. Oppenheim and Schafer instead call a signal's highest frequency its Nyquist frequency and twice that its Nyquist rate, and state the theorem with ≥\ge for a signal that has nothing at or above that frequency; Smith uses both names for fs/2f_s/2.

f_s > 2 f_max, and a frequency axis showing that tones below f_s/2, the Nyquist frequency, can be captured
Below the Nyquist frequency, f_s/2, a tone can be captured.

Why a CD samples at 44.1 kHzin the video at 8:51

Hearing tops out at about 20 kHz, so audio needs a sampling rate above 40 kHz. A CD's 44.1 kHz gives a Nyquist frequency of 22.05 kHz, with a little room to spare, which the anti-aliasing filter needs (see below). The oddly precise number comes from history: the first digital recorders stored their samples on video tape, and 44 100 samples a second fitted the lines of a television picture exactly. In the European system that is 3 samples of each stereo channel on each of 294 usable lines, 50 fields (half-pictures) a second: 3×294×50=44 1003 \times 294 \times 50 = 44\,100. In the American system it is 3×245×603 \times 245 \times 60, at the 60 fields a second of black-and-white television; colour American television runs at 59.94, which gives 44 056.

Different jobs use different rates:

Use Sampling rate Nyquist frequency
Traditional telephone 8 kHz 4 kHz
CD 44.1 kHz 22.05 kHz
Film and video 48 kHz 24 kHz
Studio recording 96 kHz 48 kHz

A traditional telephone line carries about 300 Hz to 3.4 kHz, leaving room for the filter below its 4 kHz Nyquist frequency: enough to understand speech, but music loses its sparkle. Newer wideband ("HD voice") calls carry up to 7 kHz. Studios record at higher rates for more room while they work.

Sampling rates on one frequency axis, each bar reaching its Nyquist frequency: telephone 8 kHz (4 kHz), CD 44.1 kHz (22.05 kHz), film and video 48 kHz (24 kHz), studio 96 kHz (48 kHz), and a bat recorder above 200 kHz (above 100 kHz), beside the range of hearing and a bat's call at 100 kHz
Sampling rates in use, each with its Nyquist frequency.

Aliasingin the video at 10:50

Break the rule and something strange happens. A film camera samples the world, usually 24 times a second. When a wheel's spoke moves almost a full spoke-spacing between one frame and the next, the camera cannot tell that it went nearly all the way forwards; the nearest match is a small step backwards. So a fast wheel seems to turn slowly backwards.

Sound does exactly the same. Sample a 7 kHz tone at 8 kHz, far fewer than two samples per cycle, and a gentle 1 kHz wave passes through every one of the samples. From the samples alone there is no way to tell which wave was there, and playing them back gives the 1 kHz tone. This impostor frequency is an alias, and the effect is aliasing.

A tone rising steadily past the Nyquist frequency is heard to turn round and fall, even though the real tone keeps rising. Everything above the Nyquist frequency folds back down, like a reflection in a mirror at fs/2f_s/2; above fsf_s the folding repeats, as the first-year part shows.

A 7 kHz sine wave with its samples at 8 kHz; a 1 kHz wave passes through every sample
A 7 kHz tone sampled at 8 kHz: a 1 kHz wave passes through every sample, so we hear 1 kHz.

The anti-aliasing filterin the video at 12:54

Once aliasing has happened, it cannot be undone from the samples alone. The alias sits among the real sound, and nothing done afterwards can tell them apart. So the only cure is prevention: before a signal is sampled, it passes through a low-pass filter that removes everything above the Nyquist frequency (a real filter cuts it down until any alias is too quiet to matter). This is the anti-aliasing filter, the first block of an analogue-to-digital system.

A real filter cannot cut off like a cliff edge. It needs a range of frequencies, its transition band, to go from letting sound through to blocking it. On a CD that range is the gap between 20 kHz, the top of hearing, and 22.05 kHz, the Nyquist frequency. That is what the spare room above 20 kHz is for.

That is the safe, simple rule. Strictly, the filter can keep falling until 24.1 kHz, because anything between 22.05 and 24.1 kHz folds back to somewhere above 20 kHz, out of the band we hear; the first-year part shows why. Real converters use that extra room.

An anti-aliasing filter passing frequencies below f_s/2 and blocking those above, placed before the sampler and the analogue-to-digital converter
The anti-aliasing filter cuts down what is above f_s/2, before the sampler.
An ideal filter's cliff edge beside a real filter's slope, which needs a transition band between 20 kHz and 22.05 kHz
A real filter needs a transition band: on a CD, 20 to 22.05 kHz.

The PCM transmitterin the video at 13:29

In Eduqas (WJEC) A Level Electronics this is the transmitter of a pulse code modulation (PCM) system. Its blocks, in order:

  1. Low-pass filter: removes frequencies above fs/2f_s/2 so they cannot alias.
  2. Sampling gate, driven by the sampling clock: takes a sample at each clock pulse.
  3. Analogue-to-digital converter (ADC): turns each sample into a binary number.
  4. Parallel-in serial-out (PISO) shift register, with its own clock: sends the number's bits out one at a time.

The low-pass filter comes first for exactly the reason above. The receiver mirrors the transmitter: a Schmitt trigger, a serial-in parallel-out (SIPO) shift register with its clock, a digital-to-analogue converter (DAC), and a second low-pass filter that smooths the output.

A PCM transmitter block diagram: low-pass filter, sampling gate with its sampling clock, ADC, and a shift register with its shift clock sending bits out in series
The PCM transmitter: filter, sampling gate, ADC, shift register.

Part two · First-year university

Notes: the mathematics of aliasing and reconstruction

Frequencies that give the same samplesin the video at 16:23

Write a continuous tone as x(t)=Acos⁡(2πft+φ)x(t) = A\cos(2\pi f t + \varphi) and keep it only at the sample times t=nTst = nT_s, where the integer nn (…, −1, 0, 1, 2, …) counts the samples. Since Ts=1/fsT_s = 1/f_s, the samples are

x[n]=Acos⁡(2πnffs+φ)x[n] = A\cos\left(2\pi n \frac{f}{f_s} + \varphi\right)

The samples depend only on the ratio f/fsf/f_s, the frequency measured in cycles per sample. Now replace ff with f+fsf + f_s. The ratio gains 1, so the angle gains 2πn2\pi n: a whole number of complete turns, which changes nothing. So ff, f+fsf + f_s, f−fsf - f_s, and f+kfsf + kf_s for any integer kk (positive, negative or zero), all give identical samples.

Cosine is an even function, cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\theta, so a tone at −f-f gives the same samples as a tone at ff with its phase reversed (φ\varphi becomes −φ-\varphi). Put the two facts together and fs−ff_s - f matches ff as well, again with its phase reversed: the mirror at the Nyquist frequency. For a cosine with zero phase the samples are identical; for a sine they come out upside down.

The sample formula with the extra 2πn marked as whole turns that change nothing; a unit circle showing that θ and −θ have the same cosine; 1 kHz, 7 kHz and (faint) 9 kHz cosine waves passing through the same samples at 8 kHz; and a frequency line marking f, f_s/2, f_s − f and f_s
Whole turns change nothing, so f and f + f_s give the same samples; f_s − f gives them too, with its phase reversed.

Finding any aliasin the video at 18:37

To find the alias of any frequency, shift it by whole multiples of fsf_s until it lands between −fs/2-f_s/2 and +fs/2+f_s/2, then take its size:

falias=∣f−kfs∣with k the whole number that makes it smallestf_{\text{alias}} = \lvert f - k f_s \rvert \quad \text{with } k \text{ the whole number that makes it smallest}

At fs=48f_s = 48 kHz, 30 kHz gives ∣30−48∣=18\lvert 30 - 48 \rvert = 18 kHz, 50 kHz gives 2 kHz, and 47 kHz gives 1 kHz. A tone at exactly 24 kHz, the Nyquist frequency, maps to itself, but it is the edge case where the samples can vanish.

Drawn as the frequency that comes out against the frequency that goes in, the rule is a straight line up to fs/2f_s/2, then a zigzag: down to zero at fsf_s, up to fs/2f_s/2 again at 1.5fs1.5f_s, and so on. Every input frequency, however high, lands somewhere between 0 and fs/2f_s/2.

The alias formula and a frequency axis showing 25 kHz folding to 19.1 kHz at a 44.1 kHz sampling rate
At 44.1 kHz, 25 kHz is heard at |25 − 44.1| = 19.1 kHz.
Output frequency against input frequency, sampled at 48 kHz: a straight line up to 24 kHz, then a zigzag between 0 and 24 kHz, with the example of 450 kHz in giving 18 kHz out
The folding picture: every input lands between 0 and f_s/2.

How steep the filter must be, and oversamplingin the video at 20:36

At 44.1 kHz anything above 22.05 kHz folds back, and the fold reaches down into the band we hear: 24.1 kHz lands exactly on 20 kHz. So the anti-aliasing filter must pass everything up to 20 kHz untouched and all but silence everything above 24.1 kHz. That is a very steep filter.

Modern converters avoid building it in analogue by oversampling. They sample far faster, often 64 times faster, so that a gentle analogue filter is enough; then they filter digitally and keep one sample in every 64. Lecture 4 shows how.

A gentle analogue filter at a 64 times oversampled rate of 2.8224 MHz, then digital filtering keeping one sample in 64
Oversampling 64 times: a gentle analogue filter is enough.

Getting the wave backin the video at 21:32

A digital-to-analogue converter can first produce a staircase, holding each sample's value until the next one arrives. The sharp edges of those steps are made of frequencies above the Nyquist frequency: copies of the signal, called images, around fsf_s, 2fs2f_s and so on. A low-pass filter after the converter, the reconstruction or anti-imaging filter, removes them. Holding each value also tilts the top of the band down a little, by about 3 dB at 20 kHz for a CD, so real converters correct for that in the filter or oversample until the tilt is negligible. Provided the original held nothing at or above the Nyquist frequency, what is left is then not an approximation of the original wave: in the ideal case it is the original wave, slightly delayed and apart from the rounding of each sample, which is Lecture 2's subject.

To see why, give every sample a bump shaped like the sinc function,

sinc⁡(x)=sin⁡πxπx  (x≠0),sinc⁡(0)=1\operatorname{sinc}(x) = \frac{\sin \pi x}{\pi x}\ \ (x \ne 0), \qquad \operatorname{sinc}(0) = 1

which is 1 at its own sample time and exactly 0 at every other sample time. Scale each bump by its sample's value and add them all up:

x(t)=∑n=−∞∞x[n] sinc⁡(t−nTsTs)x(t) = \sum_{n=-\infty}^{\infty} x[n]\,\operatorname{sinc}\left(\frac{t - nT_s}{T_s}\right)

The sum passes through every sample and wiggles no faster than the Nyquist frequency allows. This is the Whittaker–Shannon interpolation formula, and in theory it rebuilds a band-limited signal exactly from its samples, using every sample, past and future. Real filters approximate it.

So digital audio is not steppy: below the Nyquist frequency, ideal sampling loses nothing. It also explains why more samples are not automatically better. Once the sampling rate is safely above twice the highest frequency you care about, extra samples make the filters easier to build, rather than the sound itself better.

The original wave drawn through its samples, and below it the reconstruction filter's response: flat at 0 dB until just below f_s/2, then falling steeply to −40 dB (a hundredth of the amplitude), so the two signal lines below f_s/2 pass and everything above is strongly cut
The reconstruction filter passes the signal below f_s/2 and strongly cuts everything above, where the images are.
The sinc function, sin(πx)/(πx); a smooth wave drawn through evenly spaced samples; the Whittaker–Shannon interpolation formula; and the note: more samples, easier filters, not better sound
The Whittaker–Shannon formula rebuilds the wave through every sample (sinc(0) is taken as 1).

Worked examples from the video

Every question the professor asks, with the moment it comes in the video. Try each one first, then open the working.

What is the period of a 440 Hz note (concert A)?

Show the working

T=1/f=1/440=0.00227T = 1/f = 1/440 = 0.00227 s =2.27= 2.27 ms. Check the size: 440 cycles a second is a little under 500, so each cycle lasts a little over 1/5001/500 s =2= 2 ms.

How many samples per cycle does a 1 kHz tone get when sampled at 44.1 kHz?

Show the working

Samples per cycle, on average =fs/f=44 100/1000=44.1= f_s/f = 44\,100/1000 = 44.1.

How many samples per cycle does a 20 kHz tone get at 44.1 kHz?

Show the working

44 100/20 000=2.20544\,100/20\,000 = 2.205 samples per cycle on average: only just above two, the limit the sampling theorem sets.

What is the lowest sampling rate that can capture a bat's call reaching 100 kHz?

Show the working

fs>2×100f_s > 2 \times 100 kHz, so the sampling rate must be more than 200 kHz. 200 kHz itself, twice the highest frequency, is the boundary: sampled at exactly 200 kHz, a 100 kHz tone can vanish.

At a 48 kHz sampling rate, what do 30 kHz, 50 kHz and 47 kHz tones alias to?

Show the working

The Nyquist frequency is 24 kHz, so all three fold. With k=1k = 1: ∣30−48∣=18\lvert 30 - 48 \rvert = 18 kHz, ∣50−48∣=2\lvert 50 - 48 \rvert = 2 kHz and ∣47−48∣=1\lvert 47 - 48 \rvert = 1 kHz.

At 44.1 kHz, what does a 25 kHz tone alias to?

Show the working

25 kHz is above the Nyquist frequency of 22.05 kHz. With k=1k = 1: ∣25−44.1∣=19.1\lvert 25 - 44.1 \rvert = 19.1 kHz, inside the audio band, 0 to 20 kHz.

L1-Q7A Levelasked at 15:33; answered only here

A signal contains frequencies up to 12 kHz. What is the minimum sampling rate?

Show the working

fs>2×12f_s > 2 \times 12 kHz, so the sampling rate must be more than 24 kHz. 24 kHz itself, twice the highest frequency, is the boundary: sampled at exactly 24 kHz, a 12 kHz tone can vanish.

L1-Q8A Levelasked at 15:41; answered only here

A system samples at 32 kHz. What is its Nyquist frequency, and could it capture an 18 kHz tone?

Show the working

Nyquist frequency =32/2=16= 32/2 = 16 kHz. 18 kHz is above it, so no. Without an anti-aliasing filter it would alias to 32−18=1432 - 18 = 14 kHz; with the filter, it is cut down before sampling until that alias is too quiet to matter.

L1-Q9A Levelasked at 15:52; answered only here

In a pulse code modulation transmitter, why must the low-pass filter come before the sampling gate, and not after it?

Show the working

Sampling is what creates the aliases. Once a frequency above fs/2f_s/2 has been sampled, its alias cannot be separated from the real signal, so a filter after the sampling gate would be too late. Frequencies above fs/2f_s/2 must be removed before sampling.

Practice set

Not in the video. Try each question before opening its answer. The same questions, with space to work and the answers at the back, are in the workbook.

A Level

L1-A1

A tone has a period of 0.5 ms. What is its frequency?

Answer

f=1/T=1/(0.0005 s)=2000f = 1/T = 1/(0.0005\ \text{s}) = 2000 Hz =2= 2 kHz.

L1-A2

A system samples at 48 kHz. What is its sampling period?

Answer

Ts=1/fs=1/48 000=20.8 μsT_s = 1/f_s = 1/48\,000 = 20.8\ \mu\text{s}.

L1-A3

A signal contains frequencies up to 15 kHz. What condition must the sampling rate satisfy?

Answer

fs>2×15f_s > 2 \times 15 kHz: more than 30 kHz. 30 kHz itself, the boundary, is not enough.

L1-A4

On average, how many samples does each cycle of a 5 kHz tone get at 44.1 kHz?

Answer

44 100/5000=8.8244\,100/5000 = 8.82 samples per cycle, on average.

L1-A5

A system samples at 22.05 kHz. What is its Nyquist frequency, and can it capture a 12 kHz tone?

Answer

Nyquist frequency =22.05/2=11.025= 22.05/2 = 11.025 kHz. 12 kHz is above it, so no. Without an anti-aliasing filter it would appear as an alias at 22.05−12=10.0522.05 - 12 = 10.05 kHz.

L1-A6

List the blocks of a PCM transmitter in order and say what each does.

Answer

Low-pass filter: removes frequencies above fs/2f_s/2 so they cannot alias. Sampling gate with sampling clock: takes a sample at each clock pulse. ADC: turns each sample into a binary number. PISO shift register with its clock: sends the number's bits out one at a time.

L1-A7

Explain why a filmed wheel can appear to turn slowly backwards.

Answer

A film camera usually samples 24 times a second. If a spoke moves just under one spoke-spacing between frames, the nearest match from one frame to the next is a small step backwards, so the fast forward motion looks like a slow backward one: aliasing in time.

First-year university

L1-U1

At fs=48f_s = 48 kHz, find the alias of 40 kHz, 70 kHz and 100 kHz.

Answer

40: ∣40−48∣=8\lvert 40 - 48 \rvert = 8 kHz. 70: k=1k = 1 gives ∣70−48∣=22\lvert 70 - 48 \rvert = 22 kHz (k=2k = 2 gives 26, larger). 100: k=2k = 2 gives ∣100−96∣=4\lvert 100 - 96 \rvert = 4 kHz.

L1-U2

Show that cos⁡(2π(fs−f)t)\cos(2\pi(f_s - f)t) gives the same samples as cos⁡(2πft)\cos(2\pi f t). What changes if the tone has a phase φ\varphi?

Answer

cos⁡(2π(fs−f)n/fs)=cos⁡(2πn−2πfn/fs)=cos⁡(−2πfn/fs)\cos(2\pi(f_s - f)n/f_s) = \cos(2\pi n - 2\pi f n/f_s) = \cos(-2\pi f n/f_s), since adding 2πn2\pi n changes nothing for an integer nn; and cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\theta, so it equals cos⁡(2πfn/fs)\cos(2\pi f n/f_s). With a phase, cos⁡(2π(fs−f)n/fs+φ)=cos⁡(2πfn/fs−φ)\cos(2\pi(f_s - f)n/f_s + \varphi) = \cos(2\pi f n/f_s - \varphi): the samples of a tone at ff with its phase reversed. So a sine at fs−ff_s - f gives the samples of a sine at ff turned upside down.

L1-U3

Write the first four samples of cos⁡(2π⋅3000 t)\cos(2\pi \cdot 3000\,t) at fs=8f_s = 8 kHz. Which other frequency below 8 kHz gives the same samples?

Answer

The angles 0°,135°,270°,405°0°, 135°, 270°, 405° give 1,−0.707,0,0.7071, -0.707, 0, 0.707. The same samples come from 5 kHz (8−38 - 3): its angles 0°,225°,450°,675°0°, 225°, 450°, 675° give 1,−0.707,0,0.7071, -0.707, 0, 0.707.

L1-U4

At fs=44.1f_s = 44.1 kHz, which input frequencies alias into the audio band, 0 to 20 kHz, with k=1k = 1 (the copies around fsf_s)?

Answer

Those within 20 kHz of fsf_s: ∣f−44.1∣≤20\lvert f - 44.1 \rvert \le 20 gives 24.1 kHz to 64.1 kHz. This is why the anti-aliasing filter must be deep by 24.1 kHz.

L1-U5

A sigma-delta converter oversamples 64 times a 44.1 kHz rate. What are its sampling rate and Nyquist frequency, and why does that help?

Answer

64×44.164 \times 44.1 kHz =2.8224= 2.8224 MHz; its Nyquist frequency is 1.4112 MHz. Aliases now come only from far above the audio band, so a gentle analogue filter is enough; the steep filtering is done digitally before the rate is reduced.

L1-U6

Why does a zero-order-hold (staircase) DAC output contain frequencies above fs/2f_s/2, and what removes them?

Answer

Each step's sudden jump needs high frequencies to form; in the spectrum they appear as images of the signal around fsf_s, 2fs2f_s and so on. The reconstruction (anti-imaging) low-pass filter after the DAC removes them. Holding each value also droops the top of the band: the hold's response is sinc⁡(f/fs)\operatorname{sinc}(f/f_s), about −3.2-3.2 dB at 20 kHz for a CD. So the filter also corrects that droop, or the converter oversamples until it is negligible; what is left is then the band-limited original.

Common misconceptions

“Digital audio comes out as a staircase.”

A DAC may produce steps first, but the reconstruction filter removes them and corrects the slight droop they cause. What comes out is, ideally, the original band-limited wave, rebuilt from the samples. More in the notes

“More samples always sound better.”

Once the sampling rate is more than twice the highest frequency present, the samples already hold the whole signal. A higher rate mainly makes the filters easier to build. More in the notes

“Frequencies above the Nyquist frequency just disappear.”

They fold back as aliases at lower frequencies, and after sampling nothing can tell them apart from real tones. That is why the filter comes before the sampler. More in the notes

“Exactly two samples per cycle is enough.”

At exactly two the samples can land on the zero crossings and the wave vanishes. The sampling rate must be more than twice the highest frequency. More in the notes

Terms in this lecture

Exam specifications this lecture teaches

Checked against each board's own specification on 28 October 2026. Spec points are summarised in our words; the page number leads to the exact wording. No board has endorsed this site.

QualificationSpec pointCoverageWhere in this lecture
Eduqas A Level ElectronicsComponent 2, topic 4 (d)
the sampling frequency needed for a given highest signal frequency; the Nyquist theorem (A level only; page 33 (31))
coveredThe sampling theorem, Why a CD samples at 44.1 kHz
OCR A Level Physics B (Advancing Physics)3.1.1 (c)(vii)
a minimum sampling rate of more than twice the highest frequency (AS; page 23 (16))
coveredThe sampling theorem
Pearson Edexcel A level Music TechnologyComponent 3, AoS 3, 3.1 (bullet: sampling theory and converters)
digital hardware: sampling theory and converters (not stated; page 44 (40))
coveredSampling, The sampling theorem, The anti-aliasing filter
Eduqas A Level ElectronicsComponent 2, topic 4 (c)
the PCM link as a block diagram: the transmitter (low-pass filter, sampling gate and clock, ADC, PISO register) and the receiver (Schmitt trigger, SIPO register, DAC, low-pass filter) (A level only; page 33 (31))
partly covered
Lecture 1 explains and diagrams the transmitter; the receiver is only listed.
The PCM transmitter, The anti-aliasing filter, Getting the wave back
Eduqas A Level ElectronicsComponent 1, topic 4 (e)
digitising audio; the effect of sampling rate and resolution (A level only; page 21 (19))
partly covered
Lecture 1 covers the sampling rate; resolution is Lecture 2.
Why go digital?, Sampling
AQA A-level Computer Science3.5.6.5 (AS) and 4.5.6.7
digital representation of sound: sample resolution, sampling rate, the Nyquist theorem; sample size in bytes (AS and A-level; page 27 and 71)
partly covered
Lecture 1 covers the sampling rate and the Nyquist theorem; sample resolution is Lecture 2.
Sampling, The sampling theorem
OCR A Level Physics B (Advancing Physics)3.1.1 (a)(iii)
digitising a signal, which may contain noise; the advantages and disadvantages of digital signals (AS; page 22 (15))
partly covered
Lecture 1 gives the advantages of digital signals; it does not cover noise in the signal or the disadvantages.
Why go digital?
AQA A-level Physics3.13.2.1 (Electronics option)
sampling audio for digital transmission: sampling rate, quantisation, the pros and cons of digital sampling, recovering data from noise, PCM (A-level only, option; page 64)
partly covered
Lecture 1 covers sampling and PCM; quantisation is Lecture 2.
Why go digital?, Sampling, The PCM transmitter
Pearson Edexcel A level Music TechnologyComponent 4, AoS 2, 2.4
specifications of digital recordings: A/D and D/A conversion, sample rate, bit depth, uncompressed PCM (not stated; page 54 (50))
partly covered
Lecture 1 covers sample rate and conversion; bit depth is Lecture 2.
Sampling, Why a CD samples at 44.1 kHz, Getting the wave back
Pearson Edexcel A level Music TechnologyComponent 4, AoS 2, 2.5 (bullet: calculations describing sound waves)
calculations describing sound waves: frequency, phase, amplitude (not stated; page 54 (50))
partly covered
Lecture 1 calculates frequency and period; phase and amplitude are described but not calculated.
What a signal is
OCR A Level Physics B (Advancing Physics)3.1.1 (c)(viii)
data rate = samples per second × bits per sample (AS; page 23 (16))
background
Lecture 1 defines the sampling rate, one factor in this calculation; it does not teach the data-rate equation.
Sampling
AQA A-level Physics3.3.1.1
amplitude, frequency, wavelength, phase; f = 1/T (AS; page 18)
backgroundWhat a signal is
Eduqas A Level PhysicsComponent 3, topic 1 (e)
displacement, amplitude, wavelength, frequency, period (not stated; page 39 (36))
backgroundWhat a signal is
Qualifications Scotland (formerly SQA) Advanced Higher PhysicsQuanta and waves: Waves
the travelling-wave equation with amplitude, frequency and phase (Advanced Higher; page 17 (15))
backgroundWhat a signal is

References

Read next

The original papers

The standard

Where the facts in these notes come from

Where the field is now

Beyond the exam: recent work for the curious, each summarised at this lecture's level and checked against the paper itself.

A Meta-Analysis of High Resolution Audio Perceptual Evaluation

Joshua D. Reiss, Journal of the Audio Engineering Society 64(6), 364–379 (2016) · Peer-reviewed meta-analysis, 2016 · Free to read · checked 28 October 2026

Can listeners tell standard audio (16 bits, 44.1 or 48 kHz) from "high-resolution" audio with higher sampling rates or more bits? Pooling 18 listening experiments with more than 400 listeners, this study finds a small but statistically significant ability to tell them apart, much stronger after training. Why is still unknown, and the result does not show that people hear tones above 20 kHz.

Extended high frequency hearing and speech perception implications in adults and children

Lisa L. Hunter and others, Hearing Research 397, 107922 (2020) · Peer-reviewed review, 2020 · Free (PubMed Central) · checked 28 October 2026

Standard hearing tests stop at 8 kHz, though young ears hear up to about 20 kHz. This review finds that the range above 8 kHz helps us follow speech in noise, and is the first to go with age, loud noise, ear infections and some medicines. It can be measured reliably and may give early warning of hearing loss; whether losing it causes trouble with speech in noise is still open.

Compressed sensing MRI: a review from signal processing perspective

Jong Chul Ye, BMC Biomedical Engineering 1, 8 (2019) · Peer-reviewed review, 2019 · Open access (CC BY 4.0) · checked 28 October 2026

An MRI scanner samples the spatial frequencies of the body, and taking enough samples to meet the Nyquist criterion makes scans slow. Compressed sensing rebuilds an accurate image from far fewer samples by using extra knowledge: the image can be described by few numbers once transformed (it is sparse in wavelets, for example), and the samples are chosen to suit. So it does not break the sampling theorem. It is now approved in commercial scanners; computing cost and quality at high speed-ups remain problems, and the author points to fast progress in deep-learning reconstruction, which is closely related.

An Overview of Noise-Shaping SAR ADC: From Fundamentals to the Frontier

Lu Jie and others, IEEE Open Journal of the Solid-State Circuits Society 1, 149–161 (2021) · Peer-reviewed review, 2021; technical · Open access (CC BY 4.0) · checked 28 October 2026

For students who liked the oversampling section. Noise-shaping SAR converters, which appeared in the 2010s, join the low-power successive-approximation converter to the noise shaping of sigma-delta converters (Lecture 4). The paper explains how they work and what limits them. Across chips published to mid-2021, their efficiency figure improves by about 6.4 dB per decade; the chip-making process matters a lot, though the best results so far come from mid-range 28 to 65 nm processes rather than the newest.

How this page was checked

Checked by two AI reviewers against cited sources, 28 October 2026.Lecturer review pending.

CheckResultDate
Claude (Anthropic), in a fresh context, independently, against the cited sources25 findings, 25 settled. Two errors in the first-year maths (a staircase DAC's droop, and the phase of a mirrored frequency), both fixed; the rest were wording, exam-spec coverage, research summaries and alt text, all corrected.28 October 2026
ChatGPT (OpenAI), through Codex, independently, against the cited sources37 findings, 37 settled. 31 on its first read, including the same two errors, and 6 more when it then checked every fix; all corrected.28 October 2026
Every numerical answer recomputed by codeAll matchevery build
University lecturerPending–

Found a mistake? Tell us, and it will be checked and corrected here with a note of what changed. How we check every page.