GCSE · Computer Science · OCR · Spec J277

Sound representation: sampling

A recording feels like the real sound, shut inside your laptop. It isn't. The computer keeps a list of measurements, rounded to the nearest value it can store.

Computer Science · Sound representation

Turn a sound wave into numbers

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

Sample 1 of 8
Levels4Bit depth2-bitSample rate8 Hz
The wave's heights above the baseline at the eight moments are 1.2, 2.6, 2.9, 1.8, 0.4, 0.7, 2.2 and 1.4 steps. Set each bar to the nearest step it can stand on.

Each bar is one sample: the wave measured at one moment, from the baseline. With 2 bits, a bar can only stand at 0 (a thin sliver), one-third, two-thirds or full height. Those are the steps 0, 1, 2 and 3, stored as 00, 01, 10 and 11.

Why digitise?

?

Reason it through

Why does a computer need sound turned into binary sequences?

Link 1 of 3

First link · your turn

Someone claps. What happens to the air around the clap?

2
Locked — reveal the link above first
3
Locked — reveal the link above first

Two properties of a sound wave

AmplitudevsFrequency

Open each row to see what it tells you.

Focus

What it is

Amplitude

The height of the wave

Frequency

The number of waves per second

The insight

One is a height and the other is a count per second. Amplitude is about how tall the wave is. Frequency is about how many waves there are in each second.

What it tells you about the sound

Amplitude

Represents the volume

Frequency

Determines the pitch

What you would change

Amplitude

How tall the wave is

Frequency

How many waves there are in each second

Predict, then check

Two numbers describe a recording. Can you read them off?

A recording takes 4 samples in one second, and every sample is stored using 2 bits. Which pair is right?

Computer Science · Digital sound

Is a recording the sound wave itself?

Priya plays a recording on her laptop and says: "That's the actual sound wave, stored inside the computer."

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

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

How a sound wave becomes a list of binary measurements.

What you need to know

  • Sound is a pressure wave that causes air particles to vibrate.
  • A microphone detects the vibrations and makes a matching electrical signal. Fed into a speaker, that signal recreates the vibrations.
  • A sound wave's amplitude, its height, represents the volume. Its frequency, the waves per second, determines the pitch.
  • Have a goYour mate says: "Taller wave, higher note." A wave gets taller but still has the same waves per second. What actually changes?

    The volume. The pitch stays the same.

    Height is the amplitude, which represents volume. Pitch comes from frequency, and the waves per second did not change.

  • Computers cannot interpret analogue sound waves as they are, so sound becomes binary sequences: that conversion is digitisation.
  • A sample is a measurement of the wave at one point in time, from a reference point, turned into binary.
  • Bit depth is the number of bits used for each sample. With two bits, a sample can take one of four values.
  • If a sample falls between two possible values, it is approximated to the nearest one: above or below.
  • Have a goHero check: the measured heights were 1.2, 2.6, 2.9, 1.8, 0.4, 0.7, 2.2 and 1.4. Which 2-bit value is stored for each sample, in order?

    01, 11, 11, 10, 00, 01, 10, 01

    Each height goes to the nearest step. 0.4 is nearer 0 than 1, so it rounds down to 00. 0.7 is nearer 1, so it rounds up to 01.

  • Sample rate is the number of samples taken per second, in hertz (Hz). Four samples in one second is 4 Hz.
  • Have a goSix samples are taken in one second, each stored with 2 bits. A friend says the sample rate is 2 Hz. What should it be?

    6 Hz.

    Sample rate counts samples per second. The 2 is the bit depth, which counts bits per sample, not how often samples are taken.

  • Samples are taken at regular intervals, and the sample rate and bit depth must stay consistent so the sound can be recreated.
  • Keep the sample rate and bit depth the same and a longer sound gives more bits.

The big picture

Sound is a pressure wave. A microphone turns it into a matching electrical signal, but computers cannot interpret analogue sound waves as they are, so sound is digitised into binary sequences. A sample is a measurement of the wave at a point in time. Bit depth is the bits per sample, and sample rate is the samples per second, in hertz. A measurement between two possible values is approximated to the nearest one.

Key points

1Sound is a pressure wave that causes air particles to vibrate. A microphone detects the vibrations and creates a matching electrical signal, and the same signal fed into a speaker recreates the vibrations.
2The amplitude of a sound wave (its height) represents the volume, and its frequency (the number of waves per second) determines the pitch.
3Computers cannot interpret analogue sound waves as they are, so sound is represented as binary sequences. Turning analogue data into digital values is called digitisation.
4A sample is a measurement of the sound wave at a point in time, measured from a reference point and turned into a binary sequence.
5The bit depth is the number of bits used to represent each sample (with two bits, one of four possible values). The sample rate is the number of samples taken per second, measured in hertz (Hz).
6Digitisation continues at regular intervals, and the sample rate and bit depth must stay consistent so the binary sequence can be used to recreate the original signal. With both kept the same, a longer sound gives more bits.
7When a sample falls between two possible binary values, the nearest value has to be approximated, either the one above or the one below.

Worked example

Problem

A sound is sampled 5 times in one second, and each sample is stored with 2 bits. Measured from the reference point, the five samples are 0.6, 2.4, 1.6, 2.8 and 0.3 steps high. The four values a sample can take are 0, 1, 2 and 3, stored as 00, 01, 10 and 11. Work out the binary sequence stored for each sample, and the sample rate.

⚠ Watch out

Treating a recording as the wave itself. It is a series of samples, each stored as a binary sequence and rounded to the nearest value when needed. Also mixing up bit depth (bits per sample) with sample rate (samples per second).

🧠

Memory hook

Measure it, round it, repeat it on the clock. The sample is the measurement, the bit depth sets the values it can round to, and the sample rate is how often you do it.

✓

Check yourself

Cover the page and explain to a friend how a sound wave ends up as binary: what a sample is, what bit depth and sample rate count, and what happens between two values.

Flashcards

(15)
What is sound?
A pressure wave that causes air particles to vibrate.
What does a microphone do?
It detects the vibrations and changes in air pressure and creates an electrical signal that matches the pattern of the vibrations.
What happens when that signal is fed into a speaker?
The speaker recreates the vibrations.
What does the amplitude of a sound wave represent?
Its height represents the volume of the sound.
What does the frequency of a sound wave determine?
The pitch. Frequency is the number of waves per second.
Why must sound be represented as binary sequences?
Computers cannot interpret analogue sound waves as they are.
What is digitisation?
The process of turning analogue data into digital values.
What is a sample?
A measurement of the sound wave at a point in time, measured from a reference point and turned into a binary sequence.
What is bit depth?
The number of bits used to represent each sample.
With two bits, how many values can one sample take?
Four.
What is sample rate, and what is it measured in?
The number of samples taken per second, measured in hertz (Hz).
What must stay consistent while a sound is digitised, and why?
The sample rate and bit depth, so the binary sequence can be used to recreate the original signal.
The sample rate and bit depth stay the same. What does a longer sound give you?
More bits.
A sample falls between two possible binary values. What happens?
The nearest value is used: either the one above or the one below.
Is digital sound a perfect copy of the wave?
No. It is a series of samples taken at regular intervals, each approximated to a binary value.

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 OCR GCSE Computer Science topics

See the full OCR Computer Science curriculum →

How this lesson was checked. This OCR GCSE Computer Science (specification J277)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 14 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.