Phase & interference
Add a wave. Lose the sound.
Slide two equal waves past one another and watch their sum grow, shrink and cancel.
Enable JavaScript for interactive controls and synthesized sound. Default model: Relative phase 0° → combined peak amplitude 0.500. Equal frequency and fixed gains. 180° cancels in this mono electrical sum; room cancellation depends on position.
Default model values
| Component | Frequency | Peak amplitude | Phase |
|---|---|---|---|
| 1 | 220.00 Hz | 0.2500 | 0° |
| 2 | 220.00 Hz | 0.2500 | 0° |
Listen with a purpose
Try this.
At 0°, the waves reinforce. Move to 180° and inspect the flat result. Continue to 360°: you have completed a cycle and returned to reinforcement.
What is happening?
For equal-amplitude sine waves at the same frequency, their combined amplitude is 2A times the absolute value of cos(phase difference ÷ 2). Each component here has peak amplitude 0.25. Their sum therefore ranges from zero to 0.5 before the master volume and envelope.
The model & its limits
Fixed gains are deliberate: normalizing each result would hide cancellation. This is a mono electrical sum at one point. In a room, path lengths vary with position and reflections; headphones and speakers are not interchangeable demonstrations of spatial cancellation.
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
- The basic sinusoid ↗Chris Donahue / Carnegie Mellon University · 2026
- Travelling waves, superposition, reflection and transmission ↗Joe Wolfe / UNSW Physclips · Undated
- Amplitude and phase spectra ↗Chris Donahue / Carnegie Mellon University · 2026
- What is a filter? ↗Chris Donahue / Carnegie Mellon University · 2026
- What is sound, physically? ↗Chris Donahue / Carnegie Mellon University · 2026
- Waveforms: sound as a continuous function ↗Chris Donahue / Carnegie Mellon University · 2026
- Fundamentals of Sound: Basic Acoustics, part 2 ↗AcousticsLab / Pantelis Vassilakis · Undated
- Fundamentals of Sound: Architectural Acoustics ↗AcousticsLab / Pantelis Vassilakis · Undated
- How we localize sound ↗William M. Hartmann / Physics Today · 1999