|
|
|
@ -71,8 +71,8 @@ s.waitForBoot({
|
|
|
|
|
b = 6.collect({var buf = Buffer.alloc(s, 512, 1); buf.sine1(1.0 / 5.collect({arg i; pow(i + 1, 5.0.rand + 1)}), true, true, true)});
|
|
|
|
|
|
|
|
|
|
SynthDef(\ammann, {arg freq, amp, del = 5, gate = 1, sustain = 1, buf = 0, out = 0;
|
|
|
|
|
//Out.ar(out, Osc.ar(Select.kr(buf, b), freq, 0, amp) * EnvGen.kr(Env.adsr(3, sustain - 4, 1, 1), gate, 1, 0, 1, doneAction: 2));
|
|
|
|
|
Out.ar(out, Osc.ar(Select.kr(buf, b), freq, 0, amp) *EnvGen.kr(Env.adsr(0.25, sustain, 0.85, 0.2), gate, 1, 0, 1, doneAction: 2));
|
|
|
|
|
Out.ar(out, Osc.ar(Select.kr(buf, b), freq, 0, amp) * EnvGen.kr(Env.adsr(3, sustain - 4, 1, 1), gate, 1, 0, 1, doneAction: 2));
|
|
|
|
|
//Out.ar(out, Osc.ar(Select.kr(buf, b), freq, 0, amp) * EnvGen.kr(Env.adsr(0.25, sustain, 0.85, 0.2), gate, 1, 0, 1, doneAction: 2));
|
|
|
|
|
}).add;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|