String & air-column resonance
A length becomes a note
Shorten an ideal string or air column and inspect which resonant frequencies can fit.
Enable JavaScript for interactive controls and synthesized sound. Default model: Ideal two-open-end air column: first resonance 263.8 Hz. Air sound speed fixed at 343 m/s. Length 0.65 m; no end correction or losses.
Default model values
| Component | Frequency | Peak amplitude | Phase |
|---|---|---|---|
| 1 | 263.85 Hz | 0.1831 | 0° |
| 2 | 527.69 Hz | 0.0915 | 0° |
| 3 | 791.54 Hz | 0.0610 | 0° |
| 4 | 1055.38 Hz | 0.0458 | 0° |
| 5 | 1319.23 Hz | 0.0366 | 0° |
| 6 | 1583.08 Hz | 0.0305 | 0° |
| 7 | 1846.92 Hz | 0.0262 | 0° |
| 8 | 2110.77 Hz | 0.0229 | 0° |
Listen with a purpose
Try this.
Keep the length at 0.65 m and change an open pipe to a stopped pipe. Compare the fundamental and the gaps between allowed modes.
What is happening?
A fixed-end ideal string and an ideal open cylindrical pipe have a harmonic sequence. A cylindrical pipe with one closed end has an odd-harmonic sequence in this ideal limit. Different boundary conditions permit different standing-wave patterns. The audio plays the first eight allowed modes with decreasing amplitude.
The model & its limits
String wave speed is set to 100 m/s; air speed to 343 m/s. Length is effective acoustic length. End corrections, tapered bores, tone holes, radiation, dispersion and damping are omitted. This is a mode calculator with additive sonification, not a physical wind-instrument simulation.
The interactive model synthesizes sound locally. Audio begins only after you press a listening button. Stop ends every scheduled voice; leaving or hiding the page stops audio. The numerical table remains useful without listening.
Static waveforms and component spectra are calculated from the current model. During playback, the waveform (except calculated swell, envelope and sampling illustrations) and spectrum come from the same browser audio signal. FFT bins have finite resolution; bars in the static view represent exact model components. A/B uses the same master volume; perceptual loudness is not calibrated.
How real instruments use this
Pipe organ
Connect open and stopped air columns to real organ pipes. Their mouths, excitation and end corrections add detail beyond the ideal length calculation.
Acoustic guitar
Follow a vibrating string through its bridge and soundboard. The lab models ideal string frequencies; it does not calculate how the body radiates them.
Sources & further reading
These sources support the explanations and model assumptions. Recording credits are listed in the listening panels and the source register.
- Web Audio API 1.1 — Editor’s Draft ↗W3C Web Audio Working Group · 2026-11-06 (work in progress)
- Web Audio API best practices ↗MDN contributors / Mozilla · Undated
- Oscillations and simple harmonic motion ↗Joe Wolfe / UNSW Physclips · Undated
- Strings, standing waves and harmonics ↗Joe Wolfe / UNSW Music Acoustics · Undated
- Helmholtz resonance ↗Joe Wolfe / UNSW Music Acoustics · Undated
- How do woodwind instruments work? ↗Joe Wolfe / UNSW Music Acoustics · Undated
- Travelling waves, superposition, reflection and transmission ↗Joe Wolfe / UNSW Physclips · Undated
- Open versus closed pipes ↗Joe Wolfe / UNSW Music Acoustics · Undated
- How does a guitar work? ↗Joe Wolfe / UNSW Music Acoustics · Undated
- The bowed string ↗Joe Wolfe / UNSW Music Acoustics · Undated
- Brass instrument acoustics: an introduction ↗Joe Wolfe / UNSW Music Acoustics · Undated