We’re moving to a new home! Our website is currently in test mode while we update and transfer our content. Some pages and resources may be temporarily unavailable. We’ll be back with all resources shortly. Thank you for your patience.

CIE IGCSE | 1.2.2 Representing Sound

Lesson objective

Explain how sound is sampled and represented in binary. Distinguish sample rate from sample resolution and describe their effects on accuracy and file size.

Learn

1.2.2 | REPRESENTING SOUND

01 | A CONTINUOUS WAVE, A DIGITAL RECORDING

A microphone responds to changing air pressure and produces an electrical signal that varies over time. To store that sound digitally, the system measures the signal at regular intervals and represents the measurements using binary.

Sampling takes measurements of the signal’s amplitude. Quantisation maps each measurement to one of the available numeric levels. An analogue-to-digital converter performs this conversion.

The recording contains a sequence of numbers, not a tiny drawing of the waveform.

02 | SAMPLE RATE: HOW OFTEN DO WE MEASURE?

Sample rate is the number of samples taken each second. It is measured in hertz (Hz). A rate of 8000 Hz means 8000 samples per second; 44.1 kHz means 44100 samples per second.

On a waveform graph, sample rate controls the horizontal spacing between measurements. A higher rate puts them closer together in time.

A higher sample rate can capture more rapid changes and a wider range of signal frequencies when the system is designed appropriately. Too few samples can misrepresent the signal; this is called aliasing.

Sample rate is not the sound’s pitch or loudness. It describes how often the recording system measures the signal.

03 | SAMPLE RESOLUTION: HOW PRECISE IS EACH VALUE?

Sample resolution, also called bit depth, is the number of bits used per sample. More bits provide more possible amplitude levels.

The number of levels is 2 raised to the bit depth
Bits per sampleAvailable levels
24
38
416
8256
1665536

On the graph, bit depth controls the vertical spacing of the available levels. More levels allow an amplitude to be represented more closely, reducing quantisation error.

Bit depth does not determine how many measurements happen per second. Keep it separate from sample rate.

04 | EXPLORE THE WAVEFORM

Change one control at a time. The green curve is the original signal. Circles show its amplitude at sample times; pink squares show the nearest available digital level. Dashed vertical connectors show the quantisation difference.

Sound sampling and quantisation graphA one-second analogue waveform with sample points and discrete amplitude levels.

This simplified graph uses very low rates and bit depths to make the effect visible. It is not a playable recording. The numeric code is an illustrative unsigned level index; real audio formats may represent sample amplitudes differently.

05 | HOW TO READ THE GRAPH

  1. The horizontal axis is time, covering one second.
  2. The vertical axis is normalised signal amplitude, from −1 to +1.
  3. The green curve varies continuously.
  4. Sampling chooses specific times along that curve.
  5. Each amplitude is mapped to the nearest horizontal level.
  6. The chosen level is represented by a binary code.

Hold bit depth constant and increase sample rate: there are more sample points, but the same levels. Hold sample rate constant and increase bit depth: sample times stay the same, but there are more levels.

These are different kinds of detail: detail over time and precision of amplitude.

06 | ENCODE A MEASURED LEVEL

Eight illustrative levels represented using three bits
Chosen level indexThree-bit code
0000
1001
2010
3011
4100
5101
6110
7111

If a measurement is mapped to level 5 in this demonstration, its stored code is 101. The next sample may use a different level and code.

These codes identify the available levels. The mapping between numeric values and physical signal amplitude must be defined by the recording format.

07 | ACCURACY AND FILE SIZE

Increasing sample rate provides more measurements over the same duration. Increasing bit depth provides a finer set of values for each measurement. Both can improve the fidelity of a suitable recording.

Both also increase the amount of uncompressed sample data. With duration and channel count fixed:

  • Double the sample rate: twice as many samples, so twice as much sample data.
  • Double the bits per sample: twice as much data per sample.
  • Increase both: the effects multiply.

A higher setting does not repair a poor microphone or an already damaged recording. Sample rate and resolution are important factors, not the only influences on quality.

08 | A SMALL FILE-SIZE EXAMPLE

Uncompressed sample data in bits
= sample rate × bits per sample × seconds × channels

8000 samples/s × 8 bits × 10 s × 1 channel
= 640000 bits
= 80000 bytes

This is a ten-second mono example. Two channels would double the sample data. File headers, metadata and compression are excluded.

The main goal here is to explain the relationship between settings, accuracy and size. More detailed storage calculations appear in the storage and compression section.

09 | PLAYBACK: FROM NUMBERS BACK TO SOUND

During playback, software interprets the sample data and a digital-to-analogue system creates a changing signal that can drive speakers.

Correct reconstruction involves more than drawing straight lines between points. Suitable sampling and filtering allow a digital recording to reproduce the intended signal accurately within the system’s limits.

A waveform shows amplitude over time. Do not confuse changing bit depth with turning up the speaker volume, or changing sample rate with simply making the source pitch higher.

MATCH THE SOUND TERM

Terminology

Terminology

Analogue signal

A signal that varies continuously over time.

Sampling

Taking measurements of a signal at selected times.

Sample

One measured signal value at a particular time.

Sample rate

The number of samples taken per second.

Hertz

A unit used to express samples per second in this context.

Sample resolution

The number of bits used to represent each sample; also called bit depth.

Quantisation

Mapping an amplitude measurement to an available discrete level.

Quantisation error

The difference between a measured amplitude and its represented level.

Amplitude

The signal value measured vertically on a waveform graph.

ADC

Analogue-to-digital converter: a device converting an analogue signal into digital values.

Channel

A separate stream of audio sample data.

Aliasing

Misrepresentation of a signal that can occur when sampling is inadequate for its frequency content.

Questions

Questions

CHECK YOUR UNDERSTANDING

Select all correct choices. Each exact set earns one point.

1. What is sample rate?
2. What is sample resolution?
3. How many levels can four bits represent?
4. Which graph changes occur when only sample rate increases?
5. Which occur when only bit depth increases?
6. Which increase uncompressed sample data with other factors fixed?
7. Which statements are correct?
8. Which are true?

EXPLAIN AND INVESTIGATE

Answer in your book before revealing each sample.

1. Explain how sound is represented digitally.

2. Distinguish sample rate and sample resolution.

3. Explain the effect of increasing sample rate with duration and bit depth fixed.

4. Explain the effect of increasing bit depth with sample rate and duration fixed.

5. Calculate the sample data for 1000 Hz, 8-bit mono sound lasting 2 seconds.

6. Describe an experiment using the graph that isolates one setting.

GRAPH TASK | CHANGE ONE VARIABLE

Record observations for 8 samples/s at 3 bits, then 32 samples/s at 3 bits. Next compare 16 samples/s at 2 bits and at 4 bits. Sketch one comparison and label time, amplitude, sample points and available levels.

Finish with two sentences: one explaining horizontal detail and one explaining vertical precision. State what happens to uncompressed data size in each comparison.

Flashcards

Flashcards

Click to flip. Select the ideas you need to revisit.

0 cards selected for revision.

    Selections are kept while this page is open.

    Workbook

    Workbook

    COMING SOON

    The workbook for 1.2.2 Representing Sound is coming soon. Complete the sound-representation activities and keep your HTML and CSS files.