Skip to main content

Module pluck

Module pluck 

Source
Expand description

Karplus-Strong plucked-string synthesis.

Classic Karplus-Strong: a noise burst is written into a circular delay line sized to the desired pitch period, then repeatedly read back through a variable-weight two-tap blend (the “loop filter”) that darkens and shortens the sound on every pass around the loop. No sample memory is needed — inspired by DaisySP’s PhysicalModeling::String, reworked here as fixed-point i8 PCM so it needs no floating-point math and stays in the always-on core (unlike the dsp-feature synthesis in [crate::drums]).

Structs§

KarplusPluck
A plucked string voice with a fixed-capacity delay line of N samples.