A cavity of air can sing when its neck moves air like a tiny piston. Change the speed of sound and discover how the same bottle answers a note differently.
A Helmholtz resonator is a cavity connected to the outside by a neck. The air in the neck acts approximately as a moving mass; the compressibility of the cavity air supplies the spring. The bottle is therefore an acoustic mass–spring system.
Here c is sound speed (m/s), A = πr² is neck cross-sectional area (m²), V is cavity volume (m³), and Lₑff is effective neck length (m), including an approximate end correction. The slider changes c alone. Bottle geometry, drive frequency and the dimensionless damping ratio are held fixed in this counterfactual.
R is a dimensionless response normalized to the static response of the oscillator, ζ is damping ratio, and ω/ω₀ is the drive-to-natural angular-frequency ratio. The phase lag is atan2(2ζr, 1−r²), where r = ω/ω₀. This response curve is a useful linear resonator approximation, not a complete prediction of sound pressure from every real bottle.
The speed of sound in dry air near room temperature is approximately 343 m/s. That is the reference calibration used here, not a claim that all real air has this value. In a real gas, changing sound speed would generally involve changing temperature or composition and could also change density, viscosity and losses. This exhibit deliberately changes only c to isolate its role in the resonance equation.
The effective length uses a simple open-neck correction, Lₑff = L + 1.7r. The exact correction depends on the neck's shape and nearby boundaries. The bottle is drawn schematically; its visual dimensions are not a precision scale drawing. The sound-wave animation is illustrative and is not a computational fluid-dynamics simulation.
Three checks are shown live: an algebraically rearranged SI calculation of the natural frequency; a dense numerical sweep of the damped response to locate its maximum; and recovery of the textbook 343 m/s reference when the multiplier is exactly one. Small non-zero differences in the sweep are expected because it samples a finite frequency grid.
Not affiliated: This independent educational model is not affiliated with any bottle, audio-equipment or scientific-instrument manufacturer.