p= ProxySpace.push(s.boot)
p.makeTempoClock(1.4)
c= p.clock

//--?
~a.ar(2)
~a.play
~a= {|t_trig= 0, freq= 200, amp= 0.1| var e= EnvGen.ar(Env.perc, t_trig); Pan2.ar(Formlet.ar(WhiteNoise.ar(amp*e), freq))}
~a.set(\t_trig, 1)

~a= {|t_trig= 0, freq= 200, amp= 0.1| var e= EnvGen.ar(Env.perc, t_trig); Pan2.ar(Formlet.ar(WhiteNoise.ar(amp*e), freq, 0.01, 1))}
~a.set(\t_trig, 1, \amp, 0.05)
~a.set(\t_trig, 1, \amp, 0.05, \freq, 100)

Tdef(\a).play(c)
(Tdef(\a, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~a.set(\t_trig, 1);
		});
		1.wait;
	}
}))

(Tdef(\a, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~a.set(\t_trig, 1, \freq, [100, 200, 150].foldAt(i));
		});
		1.wait;
	}
}))

~a= {|t_trig= 0, freq= 200, amp= 0.1, dur= 0.5| var e= EnvGen.ar(Env.perc(0.01, dur), t_trig); Pan2.ar(Formlet.ar(WhiteNoise.ar(amp*e), freq, 0.01, dur))}
~a= {|t_trig= 0, freq= 200, amp= 0.1, dur= 0.5| var e= EnvGen.ar(Env.perc(0.01, dur), t_trig); Pan2.ar(Formlet.ar(WhiteNoise.ar(amp*e), freq*0.5, 0.1, dur*2)+Formlet.ar(WhiteNoise.ar(amp*e), freq, 0.01, dur))}
~a= {|t_trig= 0, freq= 200, amp= 0.1, dur= 0.5| var e= EnvGen.ar(Env.perc(0.01, dur), t_trig); Pan2.ar(Mix(Formlet.ar(WhiteNoise.ar(amp*e), freq*#[0.5, 1, 2], [0.1, 0.01, 0.001], dur*#[1, 2, 3])))}
~a= {|t_trig= 0, freq= 200, amp= 0.1, dur= 0.5| var e= EnvGen.ar(Env.perc(0.01, dur), t_trig); Pan2.ar(Mix(Formlet.ar(WhiteNoise.ar(amp*e), freq*#[0.5, 1, 2], [0.1, 0.05, 0.01], dur*#[3, 2, 1])))}
~a= {|t_trig= 0, freq= 200, amp= 0.1, dur= 0.5| var e= EnvGen.ar(Env.perc(0.01, dur), t_trig); Pan2.ar(Mix(Formlet.ar([WhiteNoise.ar(amp*e), PinkNoise.ar(amp*e), BrownNoise.ar(amp*e)], freq*#[0.51, 1, 2.05], [0.1, 0.05, 0.01], dur*#[3, 2, 1])), 0, 0.4)}

(Tdef(\a, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~a.set(\t_trig, 1, \freq, [100, 200, 150].foldAt(i));
		});
		(i.div(12)%2)*0.5+0.5.wait;
	}
}))

(Tdef(\a, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~a.set(\t_trig, 1, \dur, 0.5, \freq, [100, 200, 150].foldAt(i));
		});
		(i.div(12)%2)*0.5+0.5.wait;
		if(i%27==0, {
			~a.set(\t_trig, 1, \dur, 2, \freq, 400);
			2.wait;
		});
	}
}))

~b= {|t_trig= 0, freq= 200, amp= 0.1, dur= 0.5| var e= EnvGen.ar(Env.perc(0.01, dur), t_trig); Pan2.ar(Mix(Formlet.ar([ClipNoise.ar(amp*e), GrayNoise.ar(amp*e), WhiteNoise.ar(amp*e)], freq*#[0.51, 1, 2.05], [0.1, 0.05, 0.01], dur*#[3, 2, 1])), 0, 0.4)}
~b.play
~b.set(\t_trig, 1)
~b.set(\t_trig, 1, \freq, 800, \amp, 0.05)
Tdef(\b).play(c)
(Tdef(\b, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~b.set(\t_trig, 1, \freq, [800, 950, 1100].wrapAt(i));
		});
		(i.div(12)%2)*0.5+0.5.wait;
	}
}))

~b.set(\amp, 0.01)

~c= {|t_trig= 0, freq= 200, amp= 0.1, dur= 0.25| var e= EnvGen.ar(Env.perc(0.01, dur), t_trig); Pan2.ar(Mix(Formlet.ar(ClipNoise.ar(amp*e), freq*#[0.52, 1, 2.08], [0.1, 0.05, 0.01], dur*#[3, 2, 1])), 0, 0.4)}
~c.play
~c.set(\t_trig, 1, \freq, 2000, \amp, 0.01)
Tdef(\c).play(c)
(Tdef(\c, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~c.set(\t_trig, 1, \freq, [1800, 2350, 2500, 2600].foldAt(i));
		});
		(i.div(10)%2)*0.25+0.5.wait;
	}
}))

(Tdef(\c, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~c.set(\t_trig, 1, \freq, [1800, 2350, 2500, 1600].foldAt(i));
		});
		(i.div(10)%2)*0.5+0.25.wait;
	}
}))
~c.set(\dur, 0.2)
~c.set(\dur, 0.25)

(Tdef(\c, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~c.set(\t_trig, 1, \freq, [1800, 2350, 2500, 1600].foldAt(i));
		});
		(i.div(10)%2)*0.25+0.25.wait;
	}
}))
~b.set(\dur, 2)
~b.set(\dur, 0.5)

~d= {|t_trig= 0, freq= 200, amp= 0.1, dur= 0.25| var e= EnvGen.ar(Env.perc(0.001, dur), t_trig); Pan2.ar(Mix(Formlet.ar(PinkNoise.ar(amp*e), freq*#[0.53, 1, 2.1], [0.1, 0.05, 0.01], dur*#[3, 2, 1])), 0, 0.4)}
~d.play
~d.set(\t_trig, 1, \freq, 500)
~d.set(\amp, 0.1)
~d.set(\t_trig, 1, \freq, 700)
Tdef(\d).play(c)
(Tdef(\d, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~d.set(\t_trig, 1, \freq, [400, 500, 600, 700].foldAt(i));
		});
		(i.div(10)%2)*0.125+0.125.wait;
	}
}))

(Tdef(\d, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~d.set(\t_trig, 1, \freq, [400, 550, 600, 700].foldAt(i)*2);
		});
		(i.div(8)%2)*0.125+0.125.wait;
	}
}))

(Tdef(\d, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~d.set(\t_trig, 1, \freq, [400, 550, 600, 700].foldAt(i)*2, \amp, 0.05, \dur, 0.15);
		});
		(i.div(8)%2)*0.125+0.125.wait;
		if(i%80==0, {
			~d.set(\t_trig, 1, \dur, 2, \freq, 800, \amp, 0.01);
			2.wait;
		});
	}
}))

(Tdef(\a, {
	inf.do{|i|
		if(i%4==0||(i%7==0), {
			~a.set(\t_trig, 1, \dur, 0.5, \freq, [100, 200, 150].foldAt(i), \amp, 0.03);
		});
		(i.div(12)%2)*0.5+0.5.wait;
		if(i%27==0, {
			~a.set(\t_trig, 1, \dur, 2, \freq, 400, \amp, 0.01);
			2.wait;
		});
	}
}))

~efx= {Pan2.ar(~a.ar.round(0.2), SinOsc.ar(10))}
~efx.fadeTime_(5)
~efx.play

~efx2= {Pan2.ar(~b.ar.round(0.1), SinOsc.ar(10))}
~efx2.fadeTime_(5)
~efx2.play

~efx3= {Pan2.ar(~c.ar.round(0.05), SinOsc.ar(10))}
~efx3.fadeTime_(5)
~efx3.play

~efx4= {Pan2.ar(~d.ar.round(0.025), SinOsc.ar(10))}
~efx4.fadeTime_(5)
~efx4.play

~efx.stop
~efx2.stop

~karp= {Pan2.ar(CombL.ar(~efx.ar, 0.1, 0.1), SinOsc.kr(10))}
~karp.fadeTime_(5)
~karp.play

c.tempo_(c.tempo*1.05)

~karp2= {Pan2.ar(CombL.ar(~efx2.ar, 0.1, 0.1), SinOsc.kr(10))}
~karp2.fadeTime_(5)
~karp2.play

~delay3= {Pan2.ar(CombL.ar(~efx3.ar, 1, 0.5), SinOsc.kr(10))}
~delay3.fadeTime_(5)
~delay3.play

~delay4= {Pan2.ar(CombL.ar(~efx4.ar, 1, 0.5), SinOsc.kr(10))}
~delay4.fadeTime_(5)
~delay4.play

~delay3= {Pan2.ar(CombL.ar(~efx3.ar, 1, 0.5, 2), SinOsc.kr(10))}
~delay4= {Pan2.ar(CombL.ar(~efx4.ar, 1, 0.5, 2), SinOsc.kr(10))}

c.tempo_(c.tempo*1.05)

~karp2= {Pan2.ar(CombL.ar(~efx2.ar, 0.1, 0.1)*SinOsc.ar(80), SinOsc.kr(10))}
~karp= {Pan2.ar(CombL.ar(~efx.ar, 1, 1/~tempo.kr)*SinOsc.ar(80), SinOsc.kr(10))}
~karp2= {Pan2.ar(CombL.ar(~efx2.ar, 1, 1/~tempo.kr)*SinOsc.ar(80), SinOsc.kr(10))}
~karp= {Pan2.ar(CombL.ar(~efx.ar, 1, 1/~tempo.kr)*SinOsc.ar(150), SinOsc.kr(10))}
~karp2= {Pan2.ar(CombL.ar(~efx2.ar, 1, 1/~tempo.kr)*SinOsc.ar(650), SinOsc.kr(10))}

c.tempo_(c.tempo*1.05)

~delay3= {Pan2.ar(CombL.ar(~efx3.ar, 1, 0.5, 4), SinOsc.kr(10))}
~delay4= {Pan2.ar(CombL.ar(~efx4.ar, 1, 0.5, 3), SinOsc.kr(10))}

~a.release(20)
~c.release(20)

Tdef(\a).stop
Tdef(\b).stop
Tdef(\b).play

~efx2.release(20)
~efx4.release(20)

Tdef(\c).stop
~efx4.rebuild
~efx4.release(20)

~efx4.rebuild
~bass= {Pan2.ar(LPF.ar(Saw.ar(50, LFNoise0.kr(~tempo.kr).max(0))))}
~bass.play
~bass= {Pan2.ar(LPF.ar(Saw.ar(50, SinOsc.kr(~tempo.kr)>0.3)))}
~bass2= {Pan2.ar(LPF.ar(Saw.ar(80, SinOsc.kr(~tempo.kr, pi/2)>0.3)))}
~bass2.play
~bass3= {Pan2.ar(LPF.ar(Saw.ar(120, SinOsc.kr(~tempo.kr, pi/3)>0.3)))}
~bass3.play
~b.release(20)
~bass3= {Pan2.ar(LPF.ar(Saw.ar(120, SinOsc.kr(~tempo.kr, pi/3)>0.6)))}
~d.release(20)

~bass.release(20)
~karp2= {Pan2.ar(CombL.ar(~bass2.ar, 0.1, 0.1), SinOsc.kr(10))}
~karp3= {Pan2.ar(CombL.ar(~bass3.ar, 1, 1/~tempo.kr)*SinOsc.ar(150), SinOsc.kr(10))}
~karp3.fadeTime_(5)
~karp3.play
~karp3= {Pan2.ar(CombL.ar(~bass3.ar*0.4, 1, 1/~tempo.kr)*SinOsc.ar(150), SinOsc.kr(10))}
~bass.rebuild
~bass= {Pan2.ar(LPF.ar(Saw.ar(50, LFNoise0.kr(~tempo.kr).max(0)*0.3)))}

~efx= {Pan2.ar(~bass.ar.round(0.04)*SinOsc.ar(LFNoise0.kr(~tempo.kr/4, 100, 500).round(100)), SinOsc.ar(10))}
~efx2= {Pan2.ar(~bass2.ar.round(0.04)*SinOsc.ar(LFNoise0.kr(~tempo.kr/4, 100, 900).round(100)), SinOsc.ar(10))}
~efx2.play
~efx3= {Pan2.ar(~bass2.ar.round(0.04)*SinOsc.ar(LFNoise0.kr(~tempo.kr/4, 100, 900).round(100)), SinOsc.ar(10))}
~efx3= {Pan2.ar(~bass.ar.round(0.04)*SinOsc.ar(LFNoise0.kr(~tempo.kr/4, 100, 900).round(100)), SinOsc.ar(10))}
~efx3= {Pan2.ar(~bass2.ar.round(0.04)*SinOsc.ar(LFNoise0.kr(~tempo.kr/4, 100, 1900).round(100)), SinOsc.ar(10))}
~bass.release(20)
~bass3.release(20)
~bass2.release(20)

p.clear
p.pop