Put on a pair of noise-cancelling headphones inside a roaring airplane cabin and flip the switch. Within a fraction of a second, the deep mechanical rumble drops into eerie quiet.
It feels like a magic force field. In reality, Active Noise Cancellation (ANC) is applied wave physics and real-time digital signal processing (DSP) executing thousands of calculations per second inside tiny silicon chips built into each earcup.
1. What Sound Actually Is
Before you can erase sound, you have to treat it as math. Sound is not a physical object—it is a traveling wave of air pressure oscillating above and below ambient atmospheric pressure.
When an airplane turbine hums, it pushes air molecules together (compression, positive pressure peak) and pulls them apart (rarefaction, negative pressure trough). Your eardrum vibrates in response, and your brain interprets that vibration as noise.
Because sound waves are linear pressure changes in air, two sound waves overlapping in the same space simply add together. This principle—superposition—is the secret weapon of ANC:
- Peak
+1+ Peak+1=+2(Constructive interference, louder sound). - Peak
+1+ Trough-1=0(Destructive interference, silence).
If headphones generate a second sound wave with the exact same amplitude and frequency as the jet engine, shifted 180 degrees out of phase (inverted), the compression and rarefaction cancel each other out before reaching your eardrum.
2. Simulating Wave Cancellation in Code
You can verify destructive interference directly in JavaScript or TypeScript by synthesizing a low-frequency cabin hum and adding its phase-inverted mirror wave:
function generateAntiNoiseDemo(sampleRate = 4000, freqHz = 120) {
const samples = 8;
const results: Array<{ tMs: string; noise: number; antiNoise: number; combined: number }> = [];
for (let i = 0; i < samples; i++) {
const t = i / sampleRate;
// Incoming engine rumble wave
const noise = Number(Math.sin(2 * Math.PI * freqHz * t).toFixed(4));
// Inverted 180-degree anti-noise wave
const antiNoise = Number((-noise).toFixed(4));
const combined = Number((noise + antiNoise).toFixed(4));
results.push({
tMs: (t * 1000).toFixed(2),
noise,
antiNoise,
combined,
});
}
return results;
}
console.table(generateAntiNoiseDemo());Every single sample cancels cleanly to 0. Of course, the real world has one giant constraint: the DSP chip has to measure the noise, invert it, mix it with your music, and move the speaker cone before the original wave finishes crossing the few millimeters to your ear.
3. Inside the Hardware: Feedforward vs. Feedback ANC
Modern flagship headphones combine passive isolation (dense foam sealing out high frequencies) with a hybrid ANC architecture using two sets of microphones per earcup:
| Microphone Layer | Placement | What It Measures | Strength |
|---|---|---|---|
| Feedforward Mic | Outer shell of earcup | Ambient noise before it enters the ear | Gives the DSP microseconds of extra reaction time |
| Feedback Mic | Inside earcup near ear | Residual sound actually reaching your eardrum | Corrects leaks from glasses or head movement |
Together, both microphones feed a low-latency analog-to-digital converter (ADC) and dedicated adaptive filter running on an audio DSP. Unlike general-purpose CPUs that schedule background OS tasks, ANC chips run deterministic sample-by-sample loops at high clock rates so latency stays in the microsecond range.
4. Why ANC Kills Airplane Hum Better Than Human Voices
Notice something interesting whenever you wear ANC headphones in a coffee shop: the steady espresso grinder and air-conditioner drone vanish completely, yet sudden sharp speech or clattering dishes still slip partway through.
That comes down to wavelength and predictability:
- Low-frequency drones (50 Hz – 500 Hz): Engine rumble and road noise have long wavelengths (several feet long) and steady, repetitive waveforms. The adaptive DSP predicts the next cycle effortlessly and aligns the inverted wave within a small fraction of a wavelength.
- Sudden high-frequency transients (2,000 Hz+): A sharp clap or consonant has a tiny wavelength (just centimeters) and changes unpredictably in fractions of a millisecond. Even a tiny timing delay turns destructive cancellation (
180°) into partial reinforcement. That is why thick earpad foam (passive isolation) still handles high frequencies while electronics erase the low rumble.
5. Transparency Mode: Running the Same Hardware in Reverse
Have you wondered how Transparency Mode lets you hear a flight attendant clearly without taking your headphones off? It uses the exact same external feedforward microphones—except instead of inverting the signal to cancel it, the DSP applies gentle equalization and mixes outside voices directly into the speaker driver with near-zero delay so your ears perceive natural spatial sound.
Summary
Noise-cancelling headphones do not block sound; they out-compute it. By capturing ambient pressure waves with dual microphones, running microsecond-latency phase inversion inside a hybrid adaptive filter, and leveraging passive foam for high frequencies, ANC turns destructive wave interference into portable quiet.
