Subtractive synth

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

npx web-audio-api subtractive-synth -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)
ready

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.