opyeb WaveLab

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.

c 343 m/s in air at 20 °C fs 48 kHz analysis rate Method Fourier synthesis, radix-2 FFT, wave kinematics Data none collected

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.

Method

What is computed, and how

Core relations shared by the three studios
QuantityRelationWhere it appears
Fourier synthesisy(t) = Σ aₙ sin(2πn f₀t + φₙ)Synthesiser trace and sound
Square waveaₙ = 1/n, odd n onlySquare preset
Triangle waveaₙ = 1/n², odd n, alternating signTriangle preset
THD√(Σₙ≥₂ aₙ²) / a₁Distortion readout
Discrete Fourier transformX[k] = Σ x[n] e^(−j2πkn/N)Analyser spectrum
Bin widthΔf = fs / NResolution readout
Doppler, source movingf′ = f₀ c / (c ∓ v)Doppler studio
Two-source fringesΔy = λL / dInterference studio
Resonance, both ends fixedfₙ = n c / 2LResonance 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.

All 15 guides →

Privacy no upload, no account, no analytics; only the theme choice is stored in this browser. Contact opyeb.com/contact