Subtractive synth

Shape a sawtooth oscillator with a resonant low-pass sweep and ADSR envelope.

ready

node examples/subtractive-synth.js -d 5s
freq=<hz|note>
frequency or note name in the CLI (default: 220)
cutoff=<hz>
filter sweep peak frequency
q=<number>
filter Q
-d, --duration <time>
run time (CLI accepts s/m/h suffixes; default: 2s)
Graph
Sawtooth → BiquadFilter → ADSR Gain → Destination
Input
Frequency, note duration
Output
Synth note

This is a subtractive synthesizer you can run online: a sawtooth oscillator is shaped by a resonant low-pass filter sweep and an ADSR envelope into a single synth note. Play it in the browser, or render the same filter-sweep patch from the Node CLI.