
(
SynthDef("sine", {arg out=0, rise=1, decay=1, gate=1, pitch=100, gain=1,oct=1,dur=99;
                var env,sig;
                env = Env.adsr(rise,decay,1,1);
                sig = FSinOsc.ar(pitch,0,gain);
                Out.ar(out, EnvGen.ar(env,gate,doneAction:2)*sig);
                }).load(s);
)
////////////
a = Synth("sine", [\pitch, x=(60.midicps).postln, \gain, 0.1]);
b = Synth("sine", [\pitch, (x*1.5).postln, \gain, 0.1]);
////////////
a = Synth("sine", [\pitch, x=(60.midicps).postln, \gain, 0.1]);
c = Synth("sine", [\pitch, (67.midicps).postln, \gain, 0.1]);
////////////

////////////
a = Synth("sine", [\pitch, x=(60.midicps).postln, \gain, 0.1]);
b = Synth("sine", [\pitch, (x*1.25).postln, \gain, 0.1]);
////////////
a = Synth("sine", [\pitch, x=(60.midicps).postln, \gain, 0.1]);
c = Synth("sine", [\pitch, (64.midicps).postln, \gain, 0.1]);
////////////
a = Synth("sine", [\pitch, x=(60.midicps).postln, \gain, 0.1]);
b = Synth("sine", [\pitch, (x*1.2).postln, \gain, 0.1]);
////////////
a = Synth("sine", [\pitch, x=(60.midicps).postln, \gain, 0.1]);
c = Synth("sine", [\pitch, (63.midicps).postln, \gain, 0.1]);
////////////
a.set(\gate, -2);

b.set(\gate, -2);

c.set(\gate, -2);

t = Task({
	var freq;
	freq = 50.midicps;
	g = Group.new;
	23.do({arg i;
		Synth.tail(g,"sine", [\pitch, (i+1) * freq, \dur, 30, \gain, 0.1]);
		3.wait;
		});
	});
		
t.start		
g.set(\gain, 0);
t.pause;

g.set(\gain, 0.1);
t.start;

t.reset;
t.stop
