[sdiy] karplus-strong drum synthesis

Gordon JC Pearce gordonjcp at gjcp.net
Sun Aug 21 10:22:40 CEST 2011


On Sat, 20 Aug 2011 13:02:29 -0700
Joel B <onephatcat at earthlink.net> wrote:

> Assuming i'm even a little bit right about this, the question is, if I start at sample 0, there is no sample - 1 to use in the equation, so how is that the condition handled? Do you wrap to the last sample at t the end of the wavetable?

A Karplus-Strong synthesizer is basically a delay line with feedback, full of some noise, with a low-pass filter in the feedback loop.  As long as you stick a few values in there to begin with then what happens first time round the loop isn't important.

Implement it as a simple ringbuffer with fractional delay and you're set.

-- 
Gordon JC Pearce MM0YEQ <gordonjcp at gjcp.net>



More information about the Synth-diy mailing list