0984

Text, Sound and Images

Data Representation · 3 question types

Exam Frequency Analysis

Past paper frequency (2018 to 2024)

This topic accounts for approximately 5% of your exam marks.

stable
Rare
Stable5%

ASCII/Unicode, sound sampling and pixel/colour depth appear regularly as 2 to 4 mark questions.

Sound in the real world is an analogue signal: a continuous wave of air pressure varying in time. A microphone turns the pressure into a continuous voltage. But a computer can only store digital values (discrete binary numbers), so the analogue signal has to be sampled before it can be stored.

Analogue-to-digital conversion

The process is called A/D conversion (or A2D):

  1. The continuous analogue wave is measured at regular intervals. Each measurement is called a sample, and it records the wave's amplitude (height) at that moment.
  2. Each sample's amplitude is rounded to the nearest value that can be stored in the available number of bits. The result is a binary number.
  3. The binary numbers are stored on secondary storage in order.
  4. To play the sound back, the binary numbers are read back and used to drive a speaker.

Two parameters control the quality of the digital recording: and .

A smooth analogue sound wave drawn over a grid, overlaid with the staircase line formed when each sample is rounded to the nearest storable amplitude level. The staircase digital approximation follows the shape of the original analogue curve
Source: What is Sampling by Save My Exams

Sample rate

Sample rate is the number of samples taken per second, measured in hertz (Hz).

1 Hz means one sample per second. 1 kHz means 1000 samples per second.

Common sample rates:

  • 8 kHz: telephone-quality voice. The reason phone calls used to sound thin and tinny.
  • 22 kHz: low-quality compressed audio.
  • 44.1 kHz: standard audio CD quality (44 100 samples per second).
  • 48 kHz: standard for video soundtracks.
  • 96 kHz or higher: studio recording.

The higher the sample rate, the more closely the digital version follows the original analogue wave, and the higher the maximum frequency that can be captured.

Sample resolution (bit depth)

Sample (also called bit depth) is how many bits are allocated to record one sample.

With n bits per sample, there are 2ⁿ different amplitude levels that each sample can be rounded to:

  • 8-bit audio has 256 amplitude levels per sample.
  • 16-bit audio (the CD standard) has 65 536 levels.
  • 24-bit audio (studio quality) has over 16 million levels.

A higher sample resolution means each sample is closer to the true amplitude of the original wave, so the recording sounds cleaner.

The same analogue wave shown three ways: the smooth original analogue signal on top, an 8-bit version whose staircase has coarse steps, and a 16-bit version whose staircase has many finer steps that follow the wave much more closely
Source: What is Sampling by Save My Exams

Effect on quality and file size

ParameterIf increasedEffect on qualityEffect on file size
Sample rateMore samples per secondHigher; captures higher frequenciesLarger
Sample resolutionMore bits per sampleHigher; finer amplitude detailLarger

Both improve quality but both also increase file size. Audio engineers choose the lowest values that give acceptable quality for the use case (phone calls can get away with 8 kHz; concert recordings need 44.1 kHz or higher).