Fourier · FFT · wave physics
Build a waveform,
then take it apart.
Three studios for the maths behind sound. Add harmonics until a sine becomes a square, then run the same signal through a real radix-2 FFT and watch the spectrum, the spectrogram and the noise floor move. The third studio slows waves down far enough to see beats, Doppler-shifted wavefronts, two-source fringes and standing waves — and to hear them.
- Harmonics 1–12 · amplitude & phase
- Sine · square · sawtooth · triangle
- Radix-2 FFT 512–4096
- Rect · Hann · Hamming
- Beats · Doppler · interference · resonance
- Sound with a volume safety cap
Studios
Three benches, one page each
Each studio has its own URL and keeps the same conventions: amplitude in volts of a normalised signal, frequency in hertz, phase in degrees, and every readout carries its unit.
Fourier series & harmonic synthesiser
Start from sine, square, sawtooth or triangle, then edit the amplitude and phase of harmonics 1 to 12. The time-domain trace, the harmonic spectrum and the sound all follow the same coefficients.
Open the synthesiser → 02 · AnalysisReal-time FFT spectrum & signal analyser
Two tones plus noise, three windows and four FFT sizes. The magnitude spectrum, a scrolling spectrogram and the peak, SNR, noise floor and −3 dB bandwidth come from our own radix-2 transform.
Open the analyser → 03 · Wave physicsInterference, beats, Doppler & resonance
Two close frequencies give beats, a moving source bends its wavefronts into a Doppler shift, two points draw an interference pattern, and a finite length fixes the resonant modes.
Open the wave lab →Method
What is computed, and how
| Quantity | Relation | Where it appears |
|---|---|---|
| Fourier synthesis | y(t) = Σ aₙ sin(2πn f₀t + φₙ) | Synthesiser trace and sound |
| Square wave | aₙ = 1/n, odd n only | Square preset |
| Triangle wave | aₙ = 1/n², odd n, alternating sign | Triangle preset |
| THD | √(Σₙ≥₂ aₙ²) / a₁ | Distortion readout |
| Discrete Fourier transform | X[k] = Σ x[n] e^(−j2πkn/N) | Analyser spectrum |
| Bin width | Δf = fs / N | Resolution readout |
| Doppler, source moving | f′ = f₀ c / (c ∓ v) | Doppler studio |
| Two-source fringes | Δy = λL / d | Interference studio |
| Resonance, both ends fixed | fₙ = n c / 2L | Resonance studio |
The synthesiser sums exactly the harmonics shown on the sliders — nothing is normalised behind your back, so a square built from five odd harmonics really does overshoot about 18 % at the edges (Gibbs). The analyser multiplies the frame by the chosen window and runs an in-page radix-2 FFT; the peak frequency is refined by fitting a parabola through the three bins around the maximum, which removes most of the bin quantisation.
Guides
Fifteen worked explanations
Each article carries numbers you can type into the studio beside it.