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
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?
First link · your turn
Someone claps. What happens to the air around the clap?
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?
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
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?
What does a microphone do?
What happens when that signal is fed into a speaker?
What does the amplitude of a sound wave represent?
What does the frequency of a sound wave determine?
Why must sound be represented as binary sequences?
What is digitisation?
What is a sample?
What is bit depth?
With two bits, how many values can one sample take?
What is sample rate, and what is it measured in?
What must stay consistent while a sound is digitised, and why?
The sample rate and bit depth stay the same. What does a longer sound give you?
A sample falls between two possible binary values. What happens?
Is digital sound a perfect copy of the 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 postedMore OCR GCSE Computer Science topics
- Optical storage
- Purpose of RAM
- Purpose of ROM
- RAM vs ROM
- Sample rate, duration, bit depth
- Solid state storage
- Storage characteristics: capacity, speed, portability, durability, reliability, cost
- Suitable storage for application
- Unicode
- Units of data: bit, nibble, byte
- Virtual memory
- Why data is stored in binary
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.