Easy guitar strings

Showing 1-3 of 3 messages
Easy guitar strings henri....@gmail.com 8/16/14 5:56 AM
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;
}

Re: Easy guitar strings henri....@gmail.com 8/16/14 3:25 PM
Here's an another quite fun effect: https://gist.github.com/cheery/ea523e3c2c886a82d69d

Sounds like a spring inside wooden casing.

Re: Easy guitar strings Potasmic 8/16/14 7:25 PM
Good job! :D Always love this algorithm. So amazing