opyeb WaveLab

Guides · Fourier

Fourier series basics: every periodic wave is a sum of sines

Basis 28 Nov 2026 · Fourier analysis · 6 min read

A periodic signal repeats, so it can be described completely by what happens in one period. Fourier's claim is that any such signal, however jagged, is a weighted sum of sinusoids at the fundamental frequency f₀ and its integer multiples. In a synthesiser the weights are sliders, and the sum is what you hear.

y(t) = a₀ + Σₙ₌₁^∞ [ aₙ cos(2πn f₀t) + bₙ sin(2πn f₀t) ]

Where the coefficients come from

Multiply both sides by sin(2πm f₀t) and integrate over one period. Every term with n ≠ m integrates to zero — that is orthogonality — so only one coefficient survives. The result is the analysis half of the pair, and it is what a discrete Fourier transform approximates with a finite number of samples.

aₙ = (2/T)∫ y(t) cos(2πn f₀t) dt, bₙ = (2/T)∫ y(t) sin(2πn f₀t) dt

A pair of coefficients is more conveniently written as one amplitude and one phase. The amplitude says how much of that harmonic is present; the phase says where its peaks sit relative to t = 0. In WaveLab's synthesiser each harmonic has both, expressed as a sinusoid: Aₙ sin(2πn f₀t + φₙ), with A₁ = 1 V for the presets.

Aₙ = √(aₙ² + bₙ²), φₙ = atan2(aₙ, bₙ)

What the sum actually looks like

Take f₀ = 220 Hz and a single harmonic at 1 V. The trace is a pure 220 Hz sine with an RMS of 0.707 V and a crest factor of 1.414. Add the second harmonic at 0.5 V and the waveform leans; add the third at 0.333 V and a flat-topped shape appears. Nothing in the synthesiser rescales the result, so the peak grows with every harmonic added: three at 1, 0.5 and 0.333 V reach 1.44 V, not 1 V.

QuantityOne harmonicThree harmonics (1, ½, ⅓)
RMS0.707 V0.825 V
Peak1.000 V1.443 V
Crest factor1.4141.749
THD0 %60.1 %

That growth is the reason a gain stage after a synthesiser needs headroom, and the reason WaveLab caps its own output gain at 0.30 and passes it through a compressor.

Why only some harmonics appear

Waveform symmetry decides which terms can be non-zero. A signal with half-wave symmetry, y(t + T/2) = −y(t), has no even harmonics: the square, sawtooth and triangle you build from the presets all have this property. A signal that is even in time has no sine terms, and one that is odd has no cosine terms. The presets are all odd, which is why every phase reads 0° or 180° and never 90°.

A quick test: if you double the fundamental and the shape does not change, the waveform is half-wave symmetric and only odd harmonics are present.

Reading the spectrum panel

The lower canvas is a bar chart of Aₙ against n. Its height is the amplitude in volts, not decibels, so a harmonic at 0.1 V is one tenth of a 1 V fundamental and reads −20 dB if you convert it. Engineers usually plot 20·log₁₀Aₙ instead, because the ear responds logarithmically; the linear bars here are easier to compare with the sliders beside them.

Where this stops being exact

The series converges to the waveform at every point where the waveform is continuous. At a jump it converges to the midpoint of the jump, and with finitely many terms the approach rings — the Gibbs phenomenon. Both effects are visible in this bench and are the subject of the next guide.

Questions

Is the fundamental always the lowest frequency present?

Almost always, but not by definition. A signal made of 200 Hz and 300 Hz has a 100 Hz fundamental in its Fourier series, because 100 Hz is the repetition rate, even though no energy sits at 100 Hz. The series is about the period, not about the loudest component.

Why does the synthesiser show twelve sliders and not more?

Twelve harmonics reach 2.6 kHz at 220 Hz, which covers the audible character of most presets. More sliders would refine edges but would also make the panel unusable on a phone; the analyser studio is the place to look at higher-order content.

Set the shape to Square at 220 Hz, then mute harmonics 5 to 11 one at a time and watch the corner round off.

Open the studio

Written from standard Fourier analysis, digital signal processing and acoustics; the worked numbers can be reproduced in the studio linked above.

Back to the guides