Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 1

(

SynthDef(\sin_syn, { | out, gate = 0, lowRand = 300 highRand = 3000 pulseRate = 10


mul = 0.5 stereo = 0 mix = 0.5 room = 0.5 |
var z;
z = Pan2.ar(
EnvGen.kr(Env.adsr(2), gate) * SinOsc.ar(TRand.kr(lowRand,
highRand, Pulse.kr(pulseRate)), mul), stereo, 0.3);
Out.ar(out, FreeVerb.ar(z, mix, room));
}).send(s);
)

(
SynthDef(\wigsaw, { | out, gate = 0, lowRand = 300 highRand = 3000 pulseRate = 10
mul = 0.5 stereo = 0 mix = 0.5 room = 0.5|
var z;
z = Pan2.ar(
EnvGen.kr(Env.adsr(2), gate) * Saw.ar(TRand.kr(lowRand, highRand,
Pulse.kr(pulseRate)), mul), stereo, 0.3);
Out.ar(out, FreeVerb.ar(z, mix, room));
}).send(s);
)

a = Synth(\sin_syn);
b = Synth(\wigsaw);
c = Synth(\wigsaw);
d = Synth(\sin_syn);

a.set(\gate, 1, \lowRand, 300, \highRand, 3000, \pulseRate, 10);


a.set(\lowRand, 20, \highRand, 30, \mul, 0.5);
a.set(\lowRand, 300, \highRand, 5000);
a.set(\lowRand, 3000, \highRand, 10000, \mul, 0.1);
a.set(\pulseRate, 5);
a.set(\gate, 1);
a.set(\gate, 0);

a.free;

b.set(\gate, 1);
a.set(\gate, 1); b.set(\gate, 0);
a.set(\gate, 0); b.set(\gate, 1);
a.set(\gate, 0); b.set(\gate, 0);
a.set(\gate, 1, \stereo, -1); b.set(\gate, 1, \stereo, 1);
a.set(\gate, 1, \stereo, 0); b.set(\gate, 1, \stereo, 0);
a.set(\gate, 1, \stereo, 1); b.set(\gate, 1, \stereo, -1);

a.free; b,free;

You might also like