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

8 audio samples at 2 bits, 4 levels, 4 hertz, 1 channels

Sample 1 of 8
Levels4Bit depth2-bitSample rate4 Hz
The wave's real heights at samples 1 to 8: 0.4, 1.7, 2.8, 2.4, 1.2, 0.3, 1.6, 2.6. Every bar starts at 0. Set each one to the nearest level.

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.

Watch out: Level 2 is not 2.4. It is the nearest mark on the ruler, and the 0.4 left over is the gap between the real wave and what gets 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?

Computer Science · The journey of a sound

Put the journey in order

The order in which things happen to a sound, from the start to the end of its journey

1 · First5 · Last
  1. The samples are joined in order into one binary sequence

  2. Air vibrates as a pressure wave

  3. A speaker turns a signal back into vibrations

  4. The wave is measured as samples, each stored as binary

  5. A microphone makes a matching electrical signal

Computer Science · Digital sound

Is a digital recording an exact copy?

A friend says: 'Once a sound is on a computer it's digital, so it's exactly the same as the sound that was played.'

Which is closest to what you think right now?
How sure are you?

Computer Science · Explain it

Why must rate and depth stay the same?

A sound is stored as one binary sequence. Explain why the sample rate and the bit depth must stay the same throughout the recording. [3 marks]

0 words · your answer stays on this page and is not sent anywhere.

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

1A sample is the wave measured at one point in time. Bit depth is the number of bits for each sample, and sample rate is the number of samples each second, in Hz.
2A 2-bit sample has four possible values, and four samples in one second is a sample rate of 4 Hz.
3When a measurement falls between two available values, the nearest is chosen, so the digital sample approximates the wave.
4The binary sequence is the samples in order. Rate and depth stay the same throughout, so it can be broken apart and used to recreate the signal.
5Amplitude (height) relates to volume. Frequency (waves per second) determines pitch.

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?
A pressure wave that causes the air to vibrate.
What do a microphone and a speaker do with sound?
A microphone detects the vibrations and produces an electrical signal matching the pattern of the pressure changes. A speaker can turn the signal back into vibrations.
What is amplitude?
The height of the wave. It relates to volume: a larger amplitude is a louder sound.
What is frequency?
The number of waves in a second. It determines pitch: a higher frequency is a higher pitch.
Why is sound stored as a binary sequence?
Computers cannot work with the analogue wave directly, so sound is represented as a binary sequence.
What is digitisation?
The process of turning analogue values into digital values.
What is a sound sample?
A measure of the sound wave at a point in time.
What is bit depth (sample resolution)?
The set number of bits used to store each sample. Each sample is measured against a reference and stored as a binary sequence of that length.
How many values can a 2-bit sample take?
Four possible values.
What is sample rate, and what is it measured in?
The number of samples taken each second, measured in hertz (Hz). Four samples in one second is 4 Hz.
What is the binary sequence for a sound?
The samples put together in order.
Why must sample rate and bit depth stay the same throughout a recording?
So the binary sequence can be broken apart and used to recreate the original signal.
Why does a longer sound give more bits?
The sample rate and bit depth are kept the same, so more seconds means more samples, and more samples means more bits.
What happens when a measurement falls between two available values?
The nearest value has to be chosen, so the digital sample is an approximation of the original wave.

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 posted

More Edexcel GCSE Computer Science topics

See the full Edexcel Computer Science curriculum →

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.