Additive synth

Construct square, saw, and triangle timbres from individual harmonics.

ready

node examples/additive.js square 220 16 3s
wave=<type>
square, saw, or triangle
freq=<hz|note>
frequency or note name in the CLI (default: 220)
n=<number>
number of harmonics
-d, --duration <time>
run time (CLI accepts s/m/h suffixes; default: 3s)
Graph
Harmonic oscillator bank → Gain → Destination
Input
Wave, fundamental, harmonics
Output
Synthesized waveform

This is an additive synthesis demo: square, saw, and triangle timbres are built up harmonic by harmonic from individual sine oscillators rather than a built-in waveform. Hear it assembled live in the browser, or render the harmonic stack from the Node CLI.