Beating & intervals
When two notes almost agree
Let a second tone drift away from the first. Follow the slow swell of interference into a wider interval.
Enable JavaScript for interactive controls and synthesized sound. Default model: 220 + 222 Hz → 2 amplitude maxima per second. At wide spacing the mathematical modulation rate need not sound like separate beats.
Default model values
| Component | Frequency | Peak amplitude | Phase |
|---|---|---|---|
| 1 | 220.00 Hz | 0.1600 | 0° |
| 2 | 222.00 Hz | 0.1600 | 0° |
Listen with a purpose
Try this.
Hold the first tone at 220 Hz. Compare a 2 Hz difference with an 8 Hz difference, then try 110 Hz. Do you still hear separate swells?
What is happening?
The two sine waves repeatedly move into and out of phase. With nearby frequencies, the amplitude maxima repeat at the absolute frequency difference. At a 2 Hz difference, there are two maxima each second. At wider intervals, listening changes even though the same superposition equation still applies.
The model & its limits
Two ideal sine waves summed to mono. The one-second plot shows the calculated amplitude envelope. It lets you count the predicted swells. This is not a hearing test or a universal boundary between beating, roughness and separate pitches.
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
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
- Interference beats and Tartini tones ↗Joe Wolfe / UNSW Physclips · Undated
- Amplitude and phase spectra ↗Chris Donahue / Carnegie Mellon University · 2026
- Note names, MIDI numbers and frequencies ↗Joe Wolfe / UNSW Music Acoustics · Undated
- Intervals ↗Chelsey Hamm and Bryn Hughes / Open Music Theory · 2023 edition
- Indifference to dissonance in native Amazonians reveals cultural variation in music perception ↗Josh H. McDermott, Alan F. Schultz, Eduardo A. Undurraga and Ricardo A. Godoy / Nature · 2016-07-28
- Tartini tones and temperament ↗Joe Wolfe / UNSW Music Acoustics · Undated
- The basic sinusoid ↗Chris Donahue / Carnegie Mellon University · 2026
- Travelling waves, superposition, reflection and transmission ↗Joe Wolfe / UNSW Physclips · Undated
- What is a filter? ↗Chris Donahue / Carnegie Mellon University · 2026