Easy guitar strings

353 views
Skip to first unread message

henri....@gmail.com

unread,
Aug 16, 2014, 8:56:16 AM8/16/14
to wav...@googlegroups.com
https://gist.github.com/cheery/5d0c0f5c583b3fc0ef8c

I made a variable that you can pass to a function, and a delay line which can be adjusted with that variable.

The freq1 -slot controls the length of the delay line. It determines the frequency by which the string oscillates.
The ad1 is the delay line itself, it advances only if you give it argument, so you can get the value with ad1() and feed it back into it.

The karplus strong algorithm is described like this with these units:

var freq = Slot(0.0);
var delay = AdjustableDelay(1.0, freq);
var lowpass = LowPass();
return function(x, frequency) {
freq(1/frequency);
x = x + delay()*gain;
delay(lowpass(x, cutoff));
return x;
}

henri....@gmail.com

unread,
Aug 16, 2014, 6:25:58 PM8/16/14
to wav...@googlegroups.com, henri....@gmail.com
Here's an another quite fun effect: https://gist.github.com/cheery/ea523e3c2c886a82d69d

Sounds like a spring inside wooden casing.

Potasmic

unread,
Aug 16, 2014, 10:25:26 PM8/16/14
to wav...@googlegroups.com, henri....@gmail.com
Good job! :D Always love this algorithm. So amazing
Reply all
Reply to author
Forward
0 new messages