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

//?
(~verb= {|del= 0.3|
	var in;
	in= InFeedback.ar(10, 2);
	5.do{in= AllpassN.ar(in, 1, del.min(1), 1)};
	in
})
~verb.play

~imp.ar(2)
~imp= {Pan2.ar(Dust.ar(3), LFNoise0.kr)}
~imp.play(10)

a= Pseq({1.0.rand}.dup(16), inf).asStream;
Tdef(\imp).quant_(4).play(c)
(Tdef(\imp, {
	inf.do{|i|
		~imp.set(\t_trig, 1);
		a.next.wait
	}
}))
~imp= {|t_trig= 0| Pan2.ar(Trig1.ar(t_trig, 0.01), LFNoise0.kr)}
~imp= {|t_trig= 0| Pan2.ar(ToggleFF.ar(t_trig), LFNoise0.kr)}
~imp= {|t_trig= 0| Pan2.ar(Trig.ar(t_trig, 0), LFNoise0.kr)}

(~verb= {|del= 0.3, dec= 1|
	var in, z;
	in= InFeedback.ar(10, 2);
	z= in.copy;
	5.do{z= AllpassN.ar(z, 1, (1.0.rand*del).min(1), dec)};
	in+z
})
~verb.set(\del, 1)
~verb.set(\dec, 1.5)

(~verb= {|del= 0.3, dec= 1|
	var in, z;
	in= InFeedback.ar(10, 2);
	z= in.copy;
	5.do{z= AllpassN.ar(z, 1, del.rand.clip(0, 1), dec)};
	in+z
})

~perc.ar(2)
(~perc= {|t_trig= 0, amp= 0.1, freq= 140, dur= 0.1|
	var e;
	e= EnvGen.ar(Env.perc(0.001, dur), t_trig);
	Pan2.ar(PMOsc.ar(freq, freq*e, 0, 0, amp*e), LFNoise1.kr(0.2, 0.2));
})
~perc.play(10)
~perc.set(\t_trig, 1)
~perc.set(\t_trig, 1)
~verb.set(\del, 0.2)
~verb.set(\del, 0.05)
~verb.set(\dec, 0.5)
~perc.set(\t_trig, 1)
~verb.fadeTime_(3)
(~verb= {|del= 0.3, dec= 1|
	var in, z;
	in= InFeedback.ar(10, 2);
	z= in.copy;
	5.do{z= AllpassN.ar(z, 1, del.rand.clip(0, 1), dec, 0.8)};
	in+z
})

Tdef(\perc).quant_(4).play(c)
(Tdef(\perc, {
	inf.do{|i|
		~perc.set(\freq, 140+(i%2*100), \t_trig, 1);
		1.wait;
	}
}))
(Tdef(\perc, {
	var dur= Pn(Pshuf([0.25, 0.25, 0.5, 1], 4), inf).asStream;
	inf.do{|i|
		~perc.set(\freq, 140+(i%2*100), \t_trig, 1);
		dur.next.wait;
	}
}))
(Tdef(\perc, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		~perc.set(\freq, 140+(i%2*100), \t_trig, 1);
		dur.next.wait;
	}
}))

Tdef(\perc2).quant_(4).play(c)
(Tdef(\perc2, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		~perc2.set(\freq, 140+(i%2*100)*2, \t_trig, 1);
		(dur.next*0.5).wait;
	}
}))
~perc2.ar(2)
(~perc2= {|t_trig= 0, amp= 0.1, freq= 140, dur= 0.1|
	var e;
	e= EnvGen.ar(Env.perc(0.001, dur), t_trig);
	Pan2.ar(PMOsc.ar(freq, freq*e, 0, 0, amp*e), LFNoise1.kr(0.2, 0.2));
})
~perc2.play(10)

(Tdef(\perc2, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		~perc2.set(\freq, 140+(i%2*100)/2, \dur, 0.02, \t_trig, 1);
		(dur.next*0.5).wait;
	}
}))
~perc2.stop
~perc2.play(0)

(Tdef(\perc2, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		if(i%5!=0, {
			~perc2.set(\freq, 140+(i%2*100)/2, \dur, 0.08, \t_trig, 1);
		});
		(dur.next*0.5).wait;
	}
}))
(Tdef(\perc2, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		if(i%5!=0, {
			~perc2.set(\freq, 140+(i%2*100)/2, \dur, 0.08+(i%5/8), \t_trig, 1);
		});
		(dur.next*0.5).wait;
	}
}))

~verb.set(\dec, 1)
~verb.set(\del, 0.25)

~imp= {|t_trig= 0| Pan2.ar(BPF.ar(Trig.ar(t_trig, 0)), LFNoise0.kr)}
~imp.fadeTime_(3)
~imp= {|t_trig= 0, cf= 500, q= 0.4| Pan2.ar(BPF.ar(Trig.ar(t_trig, 0), cf, q), LFNoise0.kr)}

a= Pseq({1.0.rand}.dup(16), inf).asStream;
(Tdef(\imp, {
	inf.do{|i|
		~imp.set(\t_trig, 1);
		a.round(0.125).max(0.125).next.wait
	}
}))
(Tdef(\imp, {
	inf.do{|i|
		~imp.set(\t_trig, 1, \q, 0.1.rrand(0.4));
		a.round(0.125).max(0.125).next.wait
	}
}))
(Tdef(\imp, {
	inf.do{|i|
		~imp.set(\t_trig, 1, \bf, 400.rrand(600).round(100), \q, 0.1.rrand(0.4));
		a.round(0.125).max(0.125).next.wait
	}
}))

(Tdef(\imp, {
	inf.do{|i|
		~imp.set(\t_trig, 1, \bf, i%14*50+300, \q, 0.1.rrand(0.4));
		a.round(0.125).max(0.125).next.wait
	}
}))

a= Pseq({1.0.rand.round(0.125)+0.125}.dup(16), inf).asStream;
(Tdef(\imp, {
	inf.do{|i|
		~imp.set(\t_trig, 1, \bf, i%14*100+300, \q, i%20/20+0.05);
		a.next.wait
	}
}))

(Tdef(\perc2, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		if(i%5!=0, {
			if(i%3==(i%2), {
				~perc2.set(\freq, 140*[0.5, 4, 2].wrapAt(i.div(3)), \dur, 0.7, \amp, 0.08, \t_trig, 1);
			}, {
				~perc2.set(\freq, 140+(i%2*100)/2, \dur, 0.08+(i%5/8), \amp, 0.2, \t_trig, 1);
			});
		});
		(dur.next*0.5).wait;
	}
}))

(Tdef(\perc2, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		if(i%5!=0, {
			if(i%3==(i%2), {
				~perc2.set(\freq, 140*[0.5, 4, 2, 3].wrapAt(i.div(4)), \dur, 0.7, \amp, 0.08, \t_trig, 1);
			}, {
				~perc2.set(\freq, 140+(i%2*100)/2, \dur, 0.08+(i%5/8), \amp, 0.2, \t_trig, 1);
			});
		});
		(dur.next*0.5).wait;
	}
}))

(Tdef(\perc2, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		if(i%5!=0, {
			if(i%4==(i%3), {
				~perc2.set(\freq, 140*[0.5, 4, 2.2, 2].wrapAt(i.div(5)), \dur, 0.7, \amp, 0.08, \t_trig, 1);
			}, {
				~perc2.set(\freq, 140+(i%2*100)/2, \dur, 0.08+(i%5/8), \amp, 0.2, \t_trig, 1);
			});
		});
		(dur.next*0.5).wait;
	}
}))

a= Pseq({1.0.rand.round(0.125)+0.125}.dup(16), inf).asStream;
(Tdef(\imp, {
	inf.do{|i|
		~imp.set(\t_trig, 1, \bf, i%14*100+800, \q, i%20/20*0.3+0.05);
		a.next.wait
	}
}))

~verb.set(\del, 0.05)
~verb.set(\del, 0.125)

(Tdef(\perc2, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		if(i%5!=0, {
			if(i%3==(i%2), {
				~perc2.set(\freq, 140*[0.5, 0.75, 2.2, 2].wrapAt(i.div(i%3+1)), \dur, 0.7, \amp, 0.08, \t_trig, 1);
			}, {
				~perc2.set(\freq, 140+(i%2*100)/2, \dur, 0.08+(i%5/8), \amp, 0.2, \t_trig, 1);
			});
		});
		(dur.next*0.5).wait;
	}
}))

(~perc2= {|t_trig= 0, amp= 0.1, freq= 140, dur= 0.1|
	var e;
	e= EnvGen.ar(Env.perc(0.001, dur), t_trig);
	Pan2.ar(PMOsc.ar(Lag.kr(freq, FSinOsc.kr(~tempo.kr/6, 0, 0.05, 0.1)), freq*e, e*FSinOsc.kr(~tempo.kr/6, 0, 0.25, 0.5), 0, amp*e), LFTri.kr(~tempo.kr/2, 0, 0.5));
})

~perc.fadeTime_(3)
(~perc= {|t_trig= 0, amp= 0.1, freq= 140, dur= 0.1|
	var e;
	e= EnvGen.ar(Env.perc(0.001, dur), t_trig);
	Pan2.ar(PMOsc.ar(freq, freq*e*4, e, 0, amp*e), LFNoise1.kr(0.2, 0.2));
})

~verb.set(\del, 0.01)
~verb.set(\del, 0.02)
Tdef(\verb).quant_(4).play(c)
(Tdef(\verb, {
	inf.do{|i|
		if(i%4==0, {~verb.set(\del, 0.02)});
		if(i%7==3, {~verb.set(\del, 0.01)});
		1.wait;
	}
}))

(Tdef(\verb, {
	inf.do{|i|
		if(i%4==0, {~verb.set(\del, 0.02)});
		if(i%7==3, {~verb.set(\del, 0.01)});
		if(i%16==0, {~verb.set(\del, 0.005)});
		1.wait;
	}
}))

(Tdef(\imp, {
	inf.do{|i|
		~imp.set(\t_trig, 1, \bf, i%14*100+1800, \q, i%20/20*0.8+0.05);
		a.next.wait
	}
}))

~verb.set(\dec, 5)
a= Pseq({1.0.rand.round(0.125)+0.125}.dup(16), inf).asStream;

(~perc= {|t_trig= 0, amp= 0.1, freq= 140, dur= 0.1|
	var e;
	e= EnvGen.ar(Env.perc(0.001, dur), t_trig);
	Pan2.ar(Mix(PMOsc.ar(freq*[1, 2, 3], freq*e*4, e, 0, amp*e*0.7)), LFNoise1.kr(0.2, 0.5));
})

(~perc= {|t_trig= 0, amp= 0.1, freq= 140, dur= 0.1|
	var e;
	e= EnvGen.ar(Env.perc(0.001, dur), t_trig);
	Pan2.ar(Mix(PMOsc.ar(freq*[1, 2, 3], freq*e*([4, 6, 8]*LFNoise0.kr(~tempo.kr, 0.5, 0.5)), e, 0, amp*e)), LFNoise1.kr(0.2, 0.5));
})

(Tdef(\perc, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		~perc.set(\freq, 140+(i%4*100), \t_trig, 1);
		dur.next.wait;
	}
}))

(Tdef(\perc, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		~perc.set(\freq, 140+(i%(i%4))*100, \t_trig, 1);	//nice mistake
		dur.next.wait;
	}
}))

(Tdef(\perc, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		~perc.set(\freq, 140+((i%(i%3))*100), \t_trig, 1);
		dur.next.wait;
	}
}))

(Tdef(\perc, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		~perc.set(\freq, 140+((i%(i%3))*100), \t_trig, 1);
		dur.next.wait;
		if(0.02.coin, {
			16.do{|j|
				~perc.set(\freq, 70+((i%(i%3))*100), \t_trig, 1);
				(dur.next*0.5).wait;
			}
		});
	}
}))

(~perc= {|t_trig= 0, amp= 0.1, freq= 140, dur= 0.1|
	var e;
	e= EnvGen.ar(Env.perc(0.001, dur), t_trig);
	Pan2.ar(Mix(PMOsc.ar(freq*[1, 2, 0.5], freq*e*([4, 6, 20]*LFNoise0.kr(~tempo.kr, 1, 1)), e, 0, amp*e)), LFNoise1.kr(0.2, 0.5));
})

~verb.set(\dec, 10)

(Tdef(\verb, {
	inf.do{|i|
		if(i%4==0, {~verb.set(\del, 0.04)});
		if(i%7==3, {~verb.set(\del, 0.02)});
		if(i%16==0, {~verb.set(\del, 0.01)});
		1.wait;
	}
}))

(Tdef(\verb, {
	inf.do{|i|
		if(i%4==0, {~verb.set(\del, 0.08)});
		if(i%7==3, {~verb.set(\del, 0.04)});
		if(i%16==0, {~verb.set(\del, 0.02)});
		1.wait;
	}
}))

~verb.set(\dec, 1)

(Tdef(\imp, {
	inf.do{|i|
		if(i%128==0, {
			a= Pseq({1.0.rand.round(0.125)+0.125}.dup(16), inf).asStream;
		});
		~imp.set(\t_trig, 1, \bf, i%3*1000+1000, \q, i%3/3+0.05);
		a.next.wait
	}
}))

~imp= {|t_trig= 0, cf= 500, q= 0.4| Pan2.ar(RHPF.ar(Trig.ar(t_trig, 0), cf, q), LFNoise2.kr(~tempo.kr))}
~imp= {|t_trig= 0, cf= 500, q= 0.4| Pan2.ar(RLPF.ar(Trig.ar(t_trig, 0), cf, q), LFNoise2.kr(~tempo.kr))}

(~verb= {|del= 0.3, dec= 1|
	var in, z;
	in= InFeedback.ar(10, 2)*SinOsc.ar;
	z= in.copy;
	5.do{z= AllpassN.ar(z, 1, del.rand.clip(0, 1), dec)};
	in+z
})

(~verb= {|del= 0.3, dec= 1|
	var in, z;
	in= InFeedback.ar(10, 2)*SinOsc.ar(Pitch.kr(~perc2.ar)[0]);
	z= in.copy;
	5.do{z= AllpassN.ar(z, 1, del.rand.clip(0, 1), dec)};
	in+z
})

(~verb= {|del= 0.3, dec= 1|
	var in, z;
	in= InFeedback.ar(10, 2)*SinOsc.ar(Pitch.kr(~perc.ar)[0]);
	z= in.copy;
	5.do{z= AllpassN.ar(z, 1, del.rand.clip(0, 1), dec)};
	in+z
})

(~verb= {|del= 0.3, dec= 1|
	var in, z, sin;
	sin= Pan2.ar(SinOsc.ar(Pitch.kr(~perc.ar)[0]), FSinOsc.kr(~tempo.kr));
	in= InFeedback.ar(10, 2)*sin+(sin*0.05);
	z= in.copy;
	5.do{z= AllpassN.ar(z, 1, del.rand.clip(0, 1), dec)};
	in+z
})

~verb.set(\dec, 0.7)

(Tdef(\verb, {
	inf.do{|i|
		if(i%4==0, {~verb.set(\del, 0.1)});
		if(i%7==3, {~verb.set(\del, 0.01)});
		if(i%16==0, {~verb.set(\del, 0.005)});
		1.wait;
	}
}))

(Tdef(\perc2, {
	var dur= Pseq([Pseq([0.25, 0.25, 0.5, 1].scramble, 3), Pseq([0.25, 0.25, 0.5, 1].scramble, 1)], inf).asStream;
	inf.do{|i|
		if(i%8!=0, {
			~perc2.set(\freq, 70+(i%2*100), \dur, 0.08+(i%4/8), \amp, 0.2, \t_trig, 1);
		});
		(dur.next*0.5).wait;
	}
}))

(Tdef(\verb, {
	inf.do{|i|
		if(i%4==0, {~verb.set(\del, 0.1)});
		if(i%7==3, {~verb.set(\del, 0.01)});
		if(i%16==0, {~verb.set(\del, 0.005)});
		if(i%32==2, {~verb.set(\del, 0.2)});
		1.wait;
	}
}))

//iik. this crashed me.  cmd+.
(~verb= {|del= 0.3, dec= 1|
	var in, z, sin;
	sin= Pan2.ar(BPF.ar(LFSaw.ar(Pitch.kr(~perc.ar)[0]*[1, 2]), FSinOsc.kr(~tempo.kr)));
	in= InFeedback.ar(10, 2)*sin+(sin*0.05);
	z= in.copy;
	5.do{z= AllpassN.ar(z, 1, del.rand.clip(0, 1), dec)};
	in+z
})

p.clear
p.pop