Karplus–Strong

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

ready

node examples/karplus-strong.js 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)
Graph
Noise ring buffer → feedback average → Destination
Input
Pitch, decay
Output
Plucked string

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.