THE HELMHOLTZ RESONATOR

The bottle that changes pitch

Change the speed of sound inside the bottle. Its shape stays put; its resonant note moves.

REFERENCE MEDIUMAir near 20°Ctextbook reference · 343 m/s
LIVE MODEL

Inside the bottle

air-plug motion
GEOMETRY FIXED · SOUND SPEED CHANGES
↔ Drag to pan
At the reference setting, the bottle's air plug oscillates near its natural resonance.
PREDICTED RESONANCE SCALED MODEL
194.3 Hz
Helmholtz frequency · undamped
MEASURED RING-DOWN SCALED OUTPUT
194.1 Hz
From RK4 zero crossings
DRIVEN PRESSURE ILLUSTRATIVE
6.0 Pa
At the selected test frequency
PITCH SHIFT SCALED
0.0 %
Relative to the reference bottle
TRUST, NOT MAGIC

Numerical checks

Independent formulations and a fixed-step ring-down are compared at the current setting.

CHECKS RUNNING
Acoustic mass–spring cross-checkHelmholtz equation vs. inertance and compliance
—scaled output
—
…
RK4 ring-down frequencyMeasured period vs. damped closed form
—scaled numerical output
—
…
Envelope decay rateFitted peak decay vs. exponential theory
—scaled numerical output
—
…
Step-halving convergence32 vs. 64 illustrative RK4 steps per cycle
—scaled comparison
—
…
Reference: 343 m/s at 20°C (textbook approximation). Bottle dimensions and Q = 12 are illustrative model choices. Percent differences are scaled numerical checks.
OPEN THE MODELThe science+

The Helmholtz equation

A bottle is a cavity of compressible gas connected to the outside by a narrow neck. The gas in the neck acts like a moving mass; the gas in the cavity acts like a spring.

f₀ = c / (2π) · √[ A / (V Leff) ]

c is sound speed, A is neck area, V is cavity volume and Leff is effective neck length. The model uses Leff = L + 1.46r (illustrative end correction).

What stays fixed

  • Cavity volume: 0.50 L illustrative
  • Neck radius: 10 mm illustrative
  • Physical neck length: 35 mm illustrative
  • Quality factor: Q = 12 illustrative
  • Reference air speed: 343 m/s textbook approximation

Only c changes in the what-if experiment. The gas density is held fixed in the equivalent mass–spring cross-check to isolate the sound-speed input.

The ring-down experiment

After a short tap, pressure follows x″ + (ω₀/Q)x′ + ω₀²x = 0. The simulation integrates this equation with fixed-step fourth-order Runge–Kutta (RK4). Its measured period is compared with fd = f₀√(1 − 1/(4Q²)).

Where the experiment fails

The bottle does not stop resonating in the chosen range. The deliberately failing preset keeps a test tone far from the shifted resonance. The bottle remains stable, but the chosen tone barely excites it. That is a measurement mismatch, not a broken law of physics.

Simplifications: uniform cavity pressure, small oscillations, ideal-gas acoustics, fixed geometry, fixed Q, approximate end corrections; the animated air-plug displacement is schematic, not to scale. A real gas substitution can also change density, heat capacity and losses; this controlled what-if changes sound speed alone. Educational simulation, not affiliated with any manufacturer or institution.