The Physics of the Universe
Home › Simulations › Sound Interference & Acoustic Beats Simulator

Sound Interference & Acoustic Beats Simulator

Superpose two slightly detuned acoustic waves to watch constructive and destructive interference sculpt a pulsing beat envelope at f_beat = |f₁ − f₂|, with optional safe Web Audio synthesis.

Presets:
Tune f₁ and f₂ within 1–10 Hz to see clear beat pulses, or adjust amplitude A₂ to see why unequal amplitudes never cancel completely to zero.

Key Equations & Physics Model

Sum-to-Product Beat Identity (A₁ = A₂): sin(2πf₁t) + sin(2πf₂t) = 2 cos[π(f₁−f₂)t] sin[π(f₁+f₂)t]
Audible Beat Pulse Rate: f_beat = |f₁ − f₂| (perceptible ~0.5 – 20 Hz)
General Envelope Bounds: Max Amp = A₁ + A₂, Min Waist = |A₁ − A₂|

Because cosine switches sign twice per oscillation, loudness peaks occur at full difference frequency |f₁ − f₂| rather than half. Plot uses a slowed visual carrier to avoid 440 Hz canvas aliasing.

How the Physics Works

When two close pitches play simultaneously, they repeatedly drift into phase (loud constructive crests) and out of phase (quiet destructive troughs). Musicians tune guitars and pianos by listening to those slow volume wobbles slow down to zero Hz as strings approach exact unison.

Human ears perceive discrete volume beats cleanly up to roughly 15–20 Hz; wider frequency splits blend into vocal roughness or a separate difference chord. Whenever amplitudes differ (A₁ ≠ A₂), waves only partially cancel so the envelope waist never touches zero.

Acoustic Interference Regimes (f₁ = 440 Hz)

Detuning |f₁ − f₂|Beat RatePerceptual EffectMinimum Envelope Waist (A₁=1)
0 Hz (f₂ = 440 Hz)0 beats/sSmooth steady tone (in tune)Zero beats (constant amp = 2 with A₂=1)
1–6 Hz1–6 beats/sClear rhythmic amplitude pulsing|1 − A₂| (0 if A₂ = 1)
15–20 Hz15–20 beats/sRapid flutter / roughness limit|1 − A₂|
> 30 HzBeyond beat trackingHeard as two distinct musical pitchesNon-pulsing two-tone timbre

Why do two slightly out-of-tune notes wobble in volume?

A 38-second animation: wave superposition, f_beat = |f₁ − f₂| amplitude pulsing, and unequal-amplitude waists.

Experiments to Try

Tune a Guitar String to Unison

Start at Slow 1 Hz Tuning Check and slowly drag f₂ from 441.0 down to 440.0 Hz: the wide beat swells vanish into a flat uniform carrier.

Eliminate Complete Cancellation Nodes

Select Unequal Amplitudes (A₁=1, A₂=0.4): the dashed red envelope shrinks down only to waist 0.60 instead of zero.

Frequently Asked Questions

Why is the beat rate |f₁ − f₂| instead of |f₁ − f₂| / 2?

Although the cosine modulation envelope has frequency |f₁ − f₂|/2, human loudness detects squared amplitude (or absolute pressure), which hits two maxima—both +peak and −trough—every modulation cycle.

Why won't audio play if I only click the canvas on iOS?

Web Audio starts muted by default and resumes safely when toggling the Enable Sound checkbox (subject to device hardware silent switch settings).

Related Topics & Tools