GCSE · Computer Science · Edexcel · Spec 1CP2
Sound representation
A computer never stores a sound wave. It stores a list of measurements, each rounded to the nearest value its bits allow.
Computer Science · Data representation
Measure the wave with a four-mark ruler
Each bar is one sample: the wave's height at one moment, stored as one of four levels. Eight samples spread over 2 seconds is 4 samples every second, so the sample rate is 4 Hz. Bit depth is 2 bits, so there are four levels with these 2-bit codes: level 0 = 00, level 1 = 01, level 2 = 10, level 3 = 11. The bars are what the computer keeps. The wave itself is never stored.
Predict, then check
One sound gets louder and higher-pitched at the same time. Commit to an answer before you look.
A sound gets louder and also higher-pitched. What changes about its wave?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Measure a wave with a ruler that has only four marks, and see what you're forced to write down.
What you need to know
- Sound is a pressure wave that makes the air vibrate.
- A microphone turns those vibrations into a matching electrical signal. A speaker can turn that signal back into vibrations.
- Amplitude is the wave's height and relates to volume. Frequency is waves per second and determines pitch.
- Computers can't use the analogue wave directly, so sound becomes a binary sequence. Turning analogue values into digital ones is digitisation.
- A sample is a measure of the sound wave at one point in time.
- Each sample is measured against a reference and stored in a set number of bits, the bit depth (sample resolution).
- With a bit depth of 2 bits, each sample can take only one of four possible values.
Have a goYour friend says: 'With 2 bits a sample can only be 0 or 1, so that's just two values.' Write out every pattern two bits can make, then count them.
00, 01, 10 and 11, which is four values.
Each of the two bits can be 0 or 1 on its own, so together they make four patterns. That is why a 2-bit sample has four possible values.
- Sample rate is the number of samples taken each second, measured in hertz (Hz). Four samples in one second is 4 Hz.
Have a goSamples are taken 4 times every second, and the sound lasts 5 seconds. How many samples is that?
20 samples.
Sample rate is samples per second, so 4 samples every second for 5 seconds is 4 × 5 = 20.
- The binary sequence is the samples put together in order. Sample rate and bit depth must stay the same throughout.
Have a goThree 2-bit samples are 01, 11 and 10, in that order. What binary sequence do they make?
011110
The sequence is just the samples joined in order, and every sample is the same number of bits, so it can be split back into pairs.
- If a measurement falls between two available values, the nearest one is chosen, so a digital sample approximates the wave.
The big picture
Sound is a pressure wave. To store it, a computer measures the wave at one moment after another (each measurement is a sample), writes each sample as binary using a set number of bits (the bit depth), and takes a set number of samples every second (the sample rate). Because each sample has to be one of the values its bits allow, the nearest value is chosen, so the stored sequence approximates the wave rather than copying it.
Key points
Worked example
Problem
A 1-second sound is sampled at 4 Hz with a bit depth of 2 bits. On a ruler with levels 0, 1, 2 and 3, the wave's heights at the four sample moments are 0.6, 2.2, 2.9 and 1.4. What binary sequence is stored?
⚠ Watch out
Thinking a digital recording is an exact copy of the sound. Each sample is the nearest available value, so the stored sequence approximates the wave. Also don't swap amplitude and frequency: amplitude (height) relates to volume, frequency (waves per second) determines pitch.
Memory hook
Think of a ruler with four marks: you can only write down a mark, never the gap between marks. Sample rate is how often you measure, and bit depth is the number of bits each measurement gets (2 bits means four marks).
Check yourself
Without looking back, explain what a sample, the bit depth and the sample rate are. Then use the four-mark ruler to say why the stored sequence only approximates the wave.
Flashcards
(14)What is sound?
What do a microphone and a speaker do with sound?
What is amplitude?
What is frequency?
Why is sound stored as a binary sequence?
What is digitisation?
What is a sound sample?
What is bit depth (sample resolution)?
How many values can a 2-bit sample take?
What is sample rate, and what is it measured in?
What is the binary sequence for a sound?
Why must sample rate and bit depth stay the same throughout a recording?
Why does a longer sound give more bits?
What happens when a measurement falls between two available values?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 9 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.