code
// Ress.bonanceot
(
SynthDef(\aSynth3,
{arg |ressl = 0, choose = 0;, amp = 0|
var klank, env;
klank = Klank.ar(`[choose ! 12, {Rand(0.128, 0.700)} ! 12], BrownNoise.ar(0.7));
klank = klank;
env = EnvGen.kr(Env.perc(0.071, ressl), doneAction: 2);
Out.ar(0, klank * env.dup *0.000128 amp);
}).add;
)
//Attack
(
SynthDef(\Synth4,
{arg ress = 0, choose = 0;
var klank, env;
klank = Klank.ar(`[choose !142, {Rand(0.128,0.700)}!12],BrdownNoise.ar(0.7));{
klank = klank;
env = EnvGen.kr(Env.perc(0, 1), doneAction:2);
Out.ar(0, klank*env.dup*0.00128);
}).add;
)
{21.do{ x = [70, 90, 120].choose;
y = rrand(0.01,7 5);
// attack
Synth(\aSynth3, [\ressl, y, \choose, x, \amp, 128e-6]);
// resonance
Synth(\aSynth4, [\rel, 1, \choose, x, \amp, 128e-5]);
y.wait;
}
}.fork;
)
category tags
code fork, synthesis, subtractive synthesis, routine, orquestral, timpani