๐Ÿ”Š How Do Computers Store Sound?

Analogue vs Digital Converter

Sound is a continuous wave โ€” but computers only understand 1s and 0s. See how sampling turns a smooth wave into digital data, and why quality depends on how often you sample.

CS GCSE ยง1.2 DigiTech GCSE ยง1.1.1

๐Ÿค” What's the difference between analogue and digital?

Analogue = continuous, smooth โ€” like a real sound wave or a vinyl record. Infinite detail.

Digital = discrete, stepped โ€” like a staircase. Stored as numbers (samples) at fixed intervals.

๐Ÿ“ธ Analogy: Imagine drawing a smooth curve, then trying to recreate it using only LEGO bricks. More bricks (higher sample rate) and thinner bricks (higher bit depth) = closer to the original.
๐ŸŽ›๏ธ

Controls

How often we measure the wave (more = better quality, bigger file)
Precision of each measurement (more bits = more accurate, bigger file)
๐Ÿ”ต Blue = original analogue wave ๐ŸŸข Green dots = digital samples ๐ŸŸฉ Green line = reconstructed digital version
๐Ÿ“Š

File Size Calculator

๐Ÿ“–

Key Terms

Sample RateHow many times per second we measure the wave. Measured in Hz. CD quality = 44,100 Hz (44,100 samples every second!)
Bit DepthHow many bits used to store each sample. More bits = more precise. CD = 16 bits = 65,536 possible levels
File Size= sample rate ร— bit depth ร— duration ร— channels. This is uncompressed โ€” MP3 compression makes it much smaller
Nyquist TheoremYou need to sample at at least double the highest frequency in the sound. Humans hear up to ~20kHz, so CDs sample at 44.1kHz (just over double)