Track progress, take quizzes and save notes on this lesson.

Free forever · no card needed

Start free
Intermediate

Images, Sound and Data Representation

4.5.6.1–4.5.6.8 Representing images, sound and other data

Aligned to the AQA 7517 specification

Level
Intermediate
Reading time
7 min
Published
13 June 2026
Updated
1 July 2026
On this page
  1. 1.Representing Data as Bit Patterns
  2. 2.Bitmapped Graphics
  3. 3.Vector Graphics
  4. 4.Digital Sound
  5. 5.MIDI
  6. 6.Common Exam Mistakes

Key takeaways

  • Every type of data is ultimately stored as a pattern of binary bits, and the same bit pattern can mean different things depending on context, such as 0100 0001 being ASCII 'A', the number 65, or a pixel value.
  • An uncompressed bitmap's file size in bits is width × height × colour depth, while a sound file's size in bits is sampling rate × bit depth × duration × channels.
  • For digital sound, sampling rate sets how often the amplitude is measured (frequency accuracy) and bit depth sets how many amplitude levels are stored (precision per sample); they are independent.
  • The Nyquist theorem states the sampling rate must be at least twice the highest frequency to be captured, which is why CD audio uses 44 100 Hz to capture frequencies up to 22 050 Hz.
  • MIDI stores instructions (event messages such as note, pitch, duration and velocity) for making music, not a recorded audio waveform, so its files are very small and the actual sound is generated at playback by a synthesiser.

Representing Data as Bit Patterns

Every type of data stored on a computer is ultimately represented as a pattern of binary bits. The same bit pattern can mean different things depending on context:

  • 0100 0001 as ASCII = 'A' (the letter A)
  • 0100 0001 as unsigned binary = (the number 65)
  • 0100 0001 as part of an image = a dark-grey pixel value

Analogue vs digital:

AnalogueDigital
ValuesContinuous range (infinite precision)Discrete set of values
SignalSmooth waveformSteps between defined levels
ExamplesVinyl records, old CRT signals, thermometersMP3 files, PNG images, digital thermometers

ADC/DAC: an analogue-to-digital converter (ADC) samples an analogue signal at regular intervals and converts each sample to a digital value. A digital-to-analogue converter (DAC) converts stored digital values back to an analogue signal (e.g. for audio output through speakers).

Bitmapped Graphics

A bitmap (raster image) stores an image as a 2D grid of pixels (picture elements). Each pixel stores a colour value.

Key properties:

PropertyDefinitionExample
ResolutionNumber of pixels (width × height)1920 × 1080 = 2 073 600 pixels
Colour depthBits per pixel24-bit → ≈ 16.7 million colours
DPIDots per inch (print resolution)300 dpi for print; 72–96 dpi for screen

File size formula (uncompressed, ignoring metadata):

Worked example — a 1920 × 1080 image with 24-bit colour:

Metadata stored alongside the image: width, height, colour depth, file format, compression type, and potentially GPS coordinates, camera settings, etc.

Vector Graphics

A vector image is stored as a list of geometric objects, each described by its properties rather than individual pixels.

Object types (primitives): point, line, arc, circle, rectangle, polygon, bezier curve

Each object has properties:

  • Position (, ), dimensions (width, height)
  • Fill colour, stroke colour, stroke width
  • Transparency, rotation, layering order

Example — a simple vector graphic:

Circle: centre=(100, 100), radius=50, fill=#FF0000, stroke=#000000, width=2
Rectangle: x=200, y=50, w=120, h=80, fill=#0000FF
Line: from=(10, 10), to=(300, 200), stroke=#008000, width=3

Vector vs bitmap comparison:

VectorBitmap
ScalingInfinite — no quality lossQuality degrades at high zoom (pixelation)
File sizeSmall for simple shapesLarge for detailed images
Best forLogos, diagrams, fonts, mapsPhotographs, complex images with many colours
EditingEasy to move/resize objectsDifficult — editing pixels individually

Digital Sound

Sound is a pressure wave. To store it digitally:

  1. Sampling: an ADC measures the amplitude of the sound wave at regular time intervals
  2. Quantisation: each sample is rounded to the nearest representable value (determined by bit depth)

Key parameters:

ParameterDescriptionHigher value →
Sampling rateSamples per second (Hz)Better frequency reproduction; larger file
Bit depth (sample resolution)Bits per sampleMore amplitude levels; better dynamic range; larger file
ChannelsMono (1) or stereo (2)Stereo doubles file size

Nyquist theorem: the sampling rate must be at least twice the highest frequency to be captured. CD audio uses 44 100 Hz (samples/sec) to capture frequencies up to 22 050 Hz (the upper limit of human hearing ≈ 20 000 Hz).

File size formula:

Worked example — CD-quality audio (44 100 Hz, 16-bit, stereo), 3 minutes:

Want more lessons like this one?

Generate lessons on anything you study. Free account, no card needed.

Start generating

MIDI

MIDI (Musical Instrument Digital Interface) stores instructions for making music, not recorded audio.

A MIDI file contains event messages such as:

NOTE_ON  channel=1  note=60 (middle C)  velocity=80
NOTE_OFF channel=1  note=60  time=500ms
PROGRAM_CHANGE channel=1  instrument=0 (Grand Piano)

MIDI vs audio files:

MIDIAudio (WAV/MP3)
What is storedInstructions (note, pitch, duration, velocity)Sampled audio waveform
File sizeVery small (kilobytes)Large (megabytes)
Change tempoYes — just change timingRequires re-encoding
Change pitchYes — transpose notesRequires re-encoding
Change instrumentYes — change program numberNot possible
Sounds like original performanceNo — depends on playback hardwareYes
Requires instrument soundsYes (synthesiser or soundfont)No

MIDI is used in music production, electronic instruments, and sequencers. It is not suitable for recording spoken audio or live acoustic performances.

Common Exam Mistakes

1. Using the wrong file size formula

Bitmap file size: width × height × colour depth (in bits). Sound file size: sampling rate × bit depth × duration × channels. Confusing the two or using decimal units (KB = 1000 bytes) when the question expects binary units (KiB = 1024 bytes) loses marks.

2. Claiming vector images are always smaller

Vectors are smaller than bitmaps for simple geometric shapes, but a photograph in vector format (if it were possible) would require millions of tiny shapes — larger than a bitmap. The comparison depends on image complexity.

3. Confusing sampling rate and bit depth

Sampling rate affects how accurately frequencies are captured (how often you measure). Bit depth affects how many amplitude levels can be stored (how precisely you measure each sample). They are independent parameters.

4. Stating MIDI records sound

MIDI does not record audio. It records instructions. The actual sound is generated at playback time by a synthesiser. Two playback devices may produce very different sounds from the same MIDI file.

Key terms

Analogue
A signal with a continuous range of values and a smooth waveform, such as a vinyl record or thermometer.
Digital
A signal represented by a discrete set of values with steps between defined levels, such as an MP3 file or PNG image.
Analogue-to-digital converter (ADC)
A device that samples an analogue signal at regular intervals and converts each sample to a digital value.
Digital-to-analogue converter (DAC)
A device that converts stored digital values back into an analogue signal, for example for audio output through speakers.
Bitmap (raster image)
An image stored as a 2D grid of pixels, each holding a colour value.
Resolution
The number of pixels in an image, given as width times height.
Colour depth
The number of bits used per pixel, which sets how many colours can be represented.
Vector image
An image stored as a list of geometric objects described by their properties rather than as individual pixels.
Sampling rate
The number of audio samples taken per second (Hz), affecting how accurately frequencies are reproduced.
Bit depth (sample resolution)
The number of bits used per audio sample, setting how many amplitude levels can be stored.
Nyquist theorem
The rule that the sampling rate must be at least twice the highest frequency to be captured.
MIDI
Musical Instrument Digital Interface, a format that stores instructions for making music rather than recorded audio.

Frequently asked questions

Sampling rate is how often the ADC measures the sound wave's amplitude (samples per second), affecting how accurately frequencies are captured. Bit depth is how many bits store each sample, affecting how many amplitude levels can be represented. They are independent parameters.

For an uncompressed bitmap, file size in bits is width × height × colour depth. For example a 1920 × 1080 image with 24-bit colour is 1920 × 1080 × 24 = 49 766 400 bits, about 5.9 MiB. Sound uses a different formula.

No. MIDI stores instructions such as note, pitch, duration and velocity, not a sampled waveform. The actual sound is produced at playback time by a synthesiser, so two playback devices can produce very different sounds from the same MIDI file.

Generate revision on any topic you study

Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set, personalised to your level.

Lessons on anything

Structured, level-matched lessons on any topic you study

Practice quizzes

Find out what you actually know before the exam does

Flashcard sets

Lock in key concepts with instant revision cards

Ask Aica

Stuck on something? Get a clear explanation, any time

Prev

Character Encoding and Error Detection

Next

Data Compression and Encryption

Related lessons

Top students don’t revise more. They revise what counts.

Start revising free

Free to start. No card needed.