Noise-cancelling headphones do something almost magical: they listen to the roar of a plane or bus, then play the exact opposite sound wave into your ears. The two waves cancel out — and you hear silence. Let's make two waves erase each other!
🟥 is the annoying noise. 🟦 is your headphone's anti-noise. 🟩 is what you actually hear (the two added together). Tune the anti-noise's phase and volume until the green line goes flat — that's silence!
anti-noise phase (flip it to 180° = opposite)
anti-noise volume (match the noise)
Try the "Change the noise!" button — your perfect cancellation instantly breaks, because the anti-noise no longer matches. Real ANC has to predict and re-tune constantly. That's why it works great on steady noise (a plane's hum) but struggles with sudden sounds (a door slam or someone talking).
You made a fixed anti-noise wave and saw it break when the noise changed. Real headphones fix that by re-tuning constantly:
✅ Shows the core trick (anti-phase). ⚠️ Only cancels one steady tone; breaks the instant noise changes.
An algorithm re-computes the anti-noise thousands of times a second as the noise changes, using an outside mic (feedforward) and an inside mic (feedback). ✅ This is what AirPods Pro & Sony use. ⚠️ Complex.
A model predicts the noise a tiny bit ahead, so cancellation keeps up even with sudden sounds. ✅ Better on unpredictable noise. ⚠️ New & heavy.
You performed Active Noise Cancellation — erasing noise with an opposite wave (destructive interference) — and learned why it loves steady noise but fears surprises.