Chapter 17 of 22 Part IV: Data, Media & Machine Intelligence

The Fingerprint of Sound

Difficulty: Applied Editorial estimate: ~50 min Prerequisites: Chapter 16, Basic trigonometry (sine waves)

Chapter Field Guide

Measurable Learning Outcomes

  • State the Nyquist-Shannon sampling condition (f_s > 2 · f_max) and explain aliasing.
  • Explain how the Discrete Fourier Transform separates a mixed waveform into component frequencies.
  • Explain how peak-pair spectrograms identify songs even amid background noise.

Core Scientific Intuition

Sound is air pressure vibrating over time. To digitize a wave faithfully without aliasing (false low frequencies), you must sample more than twice per cycle of its highest frequency (CD audio uses 44,100 Hz to capture up to ~20 kHz human hearing). The Fourier Transform reveals which frequencies are present, and matching pairs of strong spectral peaks creates a noise-resistant song fingerprint.

f_s > 2 · f_max (Nyquist-Shannon sampling theorem)
In plain words: The sampling frequency f_s must strictly exceed twice the highest frequency component f_max to avoid aliasing.
Units & assumptions: Measured in Hertz (samples per second); real ADCs apply an anti-aliasing low-pass filter before sampling.

Worked Example

Human hearing tops out near 20,000 Hz. Twice 20,000 Hz is 40,000 Hz; CD audio chooses 44,100 Hz to leave room for a practical anti-aliasing filter transition band.

Hands-On Exploration

Interactive Laboratory

Test the concepts directly with 4 interactive panels, live controls, and visual feedback.

Open Interactive Lab →

Three Guided Projects

Structured experiments with hypotheses, boundary tests, hints, and reflection prompts.

View 3 Projects →

Source Code (5 Snippets)

Inspect byte-identical printed JavaScript blocks, download `.js` files, or test runnable blocks in the isolated sandbox.

Browse Code →

Self-Check Quiz (5 Questions)

Immediate explanations for every choice, unlimited retries, and local-only score tracking.

Take Self-Check Quiz →

Book Chapter Outline (Reference Guide)

Section headings from Volume 1 for cross-referencing with the printed book.

Show all 21 book section headings
  1. The song nobody could name
  2. PEOPLE BEHIND THE SCIENCE
  3. Harry Nyquist (1889-1976)
  4. Avery Li-Chun Wang
  5. Sound is a moving disturbance
  6. How a microphone creates numbers
  7. Meet a pioneer: Joseph Fourier (1768-1830)
  8. The secret ingredients of a sound
  9. A picture of sound through time
  10. How a song becomes a fingerprint
  11. Why a match can be wrong
  12. How headphones fight sound with sound
  13. The mathematics of cancellation
  14. Project 1: turn sound into a spectrum
  15. Project 2: match a mystery tune
  16. Project 3: make a noise-cancelling model
  17. Detective mission: the science fair recording
  18. Now invent your own experiment
  19. Your sound toolkit
  20. More to explore and source notes
  21. Next chapter: Finding a Needle in a Digital Universe

Primary Sources & Further Reading

External links are provided for independent verification and deeper study. Link availability can change over time; see the Resources page for verification notes.

Source Type Link
Read more reference https://ethw.org/Harry_Nyquist
Read more reference https://labrosa.ee.columbia.edu/~dpwe/papers/Wang03-shazam.pdf
Biography: University of St Andrews, MacTutor educational-archive https://mathshistory.st-andrews.ac.uk/Biographies/Fourier/
Authentic early nineteenth-century engraved portrait (public domain) reference https://commons.wikimedia.org/wiki/File:Joseph_Fourier.jpg
Digital audio: University of California, Irvine reference https://music.arts.uci.edu/dobrian/digitalaudio.htm
Noise-cancelling headphones: PhysicsUK reference https://www.physicsuk.co.uk/physics-in-the-world/how-do-noise-cancelling-headphones-work-physics
JavaScript Math functions: MDN Web Docs official-docs https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math