Karplus–Strong

Turn a short noise burst and averaging delay into a plucked string.

npx web-audio-api karplus-strong A4 4s
freq=<hz|note>
frequency or note name in the CLI (default: 220)
decay=<s>
time for the pluck to fade 60 dB
-d, --duration <time>
run time (CLI accepts s/m/h suffixes; default: 30s)
ready

This is a Karplus-Strong plucked string synthesis example: a short noise burst is fed into an averaging delay loop, and the feedback settles into a naturally decaying string tone. Pluck it in the browser, or render the same ring-buffer algorithm from the Node CLI.