2 summary:: A Karplus-Strong UGen
3 categories:: UGens>Delays
14 upon a negative to positive transition, the excitation signal will be fed into the delay line.
15 argument:: maxdelaytime
16 the max delay time in seconds (initializes the internal delay buffer).
18 delay time in seconds.
20 time for the echoes to decay by 60 decibels. Negative times emphasize odd partials.
22 the coef of the internal OnePole filter. Values should be between -1 and +1 (larger values will be unstable... so be careful!).
28 // excitation signal is WhiteNoise, triggered twice a second with varying OnePole coef
30 {Pluck.ar(WhiteNoise.ar(0.1), Impulse.kr(2), 440.reciprocal, 440.reciprocal, 10,
31 coef:MouseX.kr(-0.999, 0.999))
35 // a group of angry fretless mandolin players
40 freq = SinOsc.kr(Array.fill(numparts, {Rand(0.05, 0.2)}),
41 Array.fill(numparts, {Rand(0, 1.0)})).range(1000, 3000);
45 WhiteNoise.ar(0.1).dup(numparts),
46 Impulse.kr(Array.fill(numparts, {Rand(10, 12)})),
47 100.reciprocal, freq.reciprocal, 2, Rand(0.01, 0.2), mul: 1),
48 Array.fill(numparts, {Rand.new(-1.0, 1.0)}))