Hi,
First :
I would like to get the 1:1 replica of Pluck, by deconstructing its principle step by step. But I didn’t nail it. This is the comparison between the original and my two attempts:
(
// original
SynthDef(\KARPLUS0, {
var freq, sig;
freq = 50;
sig = Pluck.ar(GrayNoise.ar, Impulse.kr(0), freq.reciprocal, freq.reciprocal, 22, 0.1);
Out.ar(0, sig * 0.1 !2 )
}).play;)
// attempt 1
(
SynthDef(\KARPLUS1, { | amp = 0.005|
var time, ex, freq, delay, filter, local;
freq = 50;
time = freq.reciprocal;
ex = GrayNoise.ar(EnvGen.kr(Env([1.0,1.0,0.0,0.0], [0.04, 0,100])));
local = LocalIn.ar(1);
filter = OnePole.ar(ex+local, 0.1); //apply filter
delay = DelayN.ar(filter, time, time - ControlDur.ir);
LocalOut.ar(delay * 0.999);
Out.ar(0, delay * 0.1 ! 2);
}).play;)
// attempt 2
(
SynthDef(\KARPLUS2, {
var burst, env, sig, delayTime, freq;
freq = 50;
delayTime = freq.reciprocal;
env = EnvGen.kr(Env.perc(0, 0.12));
burst = GrayNoise.ar(env);
sig = CombL.ar(burst, delayTime, delayTime, 12, add: burst );
DetectSilence.ar(sig, doneAction:2);
Out.ar(0, sig * 0.1 !2 )
} ).play;)
Is someone would be able to make the 1:1 just using the basic Ugens ? It could be really helpfull.
Second:
It’s not about a technical issue but more about an aesthetic advice : I feel stuck on the tone question with this Karplus-Strong algo. I would like to know if there would be an oblique strategy to get others varieties of tone (less metallic) still using the basic principle of KS (not using the DWG Ugens…). So far my only way is to change the nature of the noise burst, or to add effects to the signal. But I would really like to know if it’s possible to imagine a “core” version to change the tone of the KS algo.
Thanks a lot