Apex › Storage & databases

How to synthesize a plucked string (Karplus-Strong)

A strikingly realistic plucked-string sound from almost nothing: a delay line + an averaging filter. A string’s wave makes a round trip at a fixed period (the pitch), so model it as a buffer of length L, fill it with a noise burst (the pluck), and loop it — with one step per cycle that replaces each sample with the average of it and its neighbour. That low-pass kills the high harmonics fast (bright attack → mellow tone) while the buffer-length pitch (fs/L) survives and decays like a real string. Verified: pitch ≈ fs/L with a natural decay. Press pluck to hear it, and tune the pitch and damping.

More in Storage & databases