Fourier Waveform Synthesizer

Build and hear a waveform with Fourier synthesis. Adjust the amplitude and phase of eight harmonics, and see the waveform and frequency spectrum update live.

Waveform presets
Waveform
One cycle

Harmonics

1220 Hz
2440 Hz
3660 Hz
4880 Hz
51100 Hz
61320 Hz
71540 Hz
81760 Hz
Harmonic spectrum

Input amplitude by harmonic number

Build a waveform with Fourier synthesis

Choose Sine, Square, Triangle, or Sawtooth as a starting point. Change the amplitude or phase of any harmonic and watch one cycle redraw. Select Play tone to hear the sum, then adjust Fundamental frequency to change the pitch. The same harmonic settings keep the shape of the waveform as you change the pitch.

Hear what each harmonic adds

A harmonic is a whole-number multiple of the fundamental frequency. At 220 Hz, the first three harmonics are 220, 440, and 660 Hz. Start with Sine, raise the third harmonic’s amplitude, and compare the sound and shape with a single sine wave. The spectrum shows how much amplitude you assigned to each harmonic. An amplitude of 0% leaves that harmonic out.

Change the phase and compare the shapes

Phase moves a harmonic earlier or later within its cycle. Try turning the third harmonic from 0° to 180° without changing its amplitude. The time-domain waveform changes while the spectrum bars stay the same. Each phase applies to that harmonic’s own cycle, so changing the phase of one harmonic changes how its peaks line up with the others.

Why the preset waveforms have rounded edges

The square, triangle, and sawtooth presets use only the first eight harmonics of their Fourier series. A square wave uses odd harmonics whose amplitudes fall in proportion to 1 divided by their number. A sawtooth also uses even harmonics, and a triangle uses weaker upper harmonics. Sharp edges need higher harmonics, so finite sums approximate those edges and can ripple near a jump. The waveform plot and playback apply the same scale when the summed peak exceeds 1.