///////////////////////////////////////////////////
// History, as it was on Mon Jun  4 16:25:57 2007.
///////////////////////////////////////////////////

// - 0:0:0 -  
p= ProxySpace.push(s.boot)

// - 0:0:5.35 -  
~out.play

// - 0:0:37.42 -  
~out= {SinOsc.ar([400, 404], 0, LFNoise0.kr(4).max(0))}

// - 0:0:58.18 -  
~out= {Pan2.ar(SinOsc.ar([400, 404], 0, LFNoise0.kr(4).max(0)).mean)}

// - 0:1:23.55 -  
~out= {Pan2.ar(SinOsc.ar({|i| [400, 404]*i}.dup(3), 0, LFNoise0.kr(4).max(0)).mean)}

// - 0:1:29.15 -  
~out= {Pan2.ar(SinOsc.ar({|i| [400, 404]*i}.dup(5), 0, LFNoise0.kr(4).max(0)).mean)}

// - 0:1:47.42 -  
~out= {Pan2.ar(SinOsc.ar({|i| [400, 404]*i}.dup(5), 0, {LFNoise0.kr(4+i).max(0)}.dup(5)).mean)}

// - 0:1:51.6 -  
~out= {Pan2.ar(SinOsc.ar({|i| [400, 404]*i}.dup(5), 0, {|i| LFNoise0.kr(4+i).max(0)}.dup(5)).mean)}

// - 0:2:14.48 -  
~out= {Pan2.ar(SinOsc.ar({|i| [400, 404]*i}.dup(5), 0, {|i| LFNoise0.kr(4+i)>0}.dup(5)).mean)}

// - 0:2:24.43 -  
~out= {Pan2.ar(SinOsc.ar({|i| [400, 404]*i}.dup(5), 0, {|i| LFNoise1.kr(4+i)>0}.dup(5)).mean)}

// - 0:2:32.1 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 404]*i}.dup(5), 0, {|i| LFNoise1.kr(4+i)>0}.dup(5)).mean)}

// - 0:2:42.11 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 404, 808]*i}.dup(5), 0, {|i| LFNoise1.kr(4+i)>0}.dup(5)).mean)}

// - 0:3:2.96 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 404, 808]*i}.dup(5), 0, {|i| LFNoise1.kr(4+i)>0}.dup(5)).mean.clip(-0.9, 0.9))}

// - 0:3:30.07 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 404, 808]*i}.dup(5), 0, {|i| LFNoise1.kr(4+i)>0}.dup(5)).mean).clip(-0.9, 0.9)}

// - 0:3:38.8 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 404, 808]*i}.dup(5), 0, {|i| LFNoise1.kr(4+i)>0}.dup(5)).mean).clip(-0.5, 0.5)}

// - 0:4:3.32 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 404]*i}.dup(5), 0, {|i| LFNoise1.kr(4+i)>0}.dup(5)).mean).clip(-0.5, 0.5)}

// - 0:4:8.85 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 404]*i}.dup(5), 0, {|i| LFNoise1.kr(4+i)>0}.dup(5)).mean).clip(-0.3, 0.3)}

// - 0:4:21.84 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 404]*i}.dup(5), 0, {|i| LFNoise1.kr(2+i)>0}.dup(5)).mean).clip(-0.3, 0.3)}

// - 0:4:48.13 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 404]*i}.dup(5), 0, {|i| LFNoise1.kr(LFNoise2.kr(0.2, 2, 3)+i)>0}.dup(5)).mean).clip(-0.3, 0.3)}

// - 0:5:18.88 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 404]*i}.dup(5), 0, {|i| LFNoise1.kr(FSinOsc.kr(0.2, 0, 2, 2.01)+i)>0}.dup(5)).mean).clip(-0.3, 0.3)}

// - 0:6:0.91 -  
//trying to write a melody to this...

// - 0:6:32.01 -  
~mel.ar(2)

// - 0:6:38.61 -  
~mel.fadeTime_(5)

// - 0:8:11.41 -  
~mel= {|freq= 720, amp= 0.5| SinOsc.ar(0, LFSaw.ar(freq, 0, 2pi), amp)}

// - 0:8:15.66 -  
~mel.play

// - 0:8:19.72 -  
~mel.stop

// - 0:8:38.18 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(0, LFSaw.ar(freq, 0, 2pi), amp), pan)}

// - 0:8:44.99 -  
~mel.play

// - 0:8:46.06 -  
~mel.stop

// - 0:8:59.68 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(0, LFPulse.ar(freq, 0, 0.2, 2pi), amp), pan)}

// - 0:9:2.19 -  
~mel.play

// - 0:9:8.32 -  
~mel.stop

// - 0:9:22.74 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(2, LFPulse.ar(freq, 0, 0.2, 2pi), amp), pan)}

// - 0:9:24.92 -  
~mel.play

// - 0:9:30.62 -  
~mel.stop

// - 0:9:42.87 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(20, LFPulse.ar(freq, 0, 0.2, 2pi), amp), pan)}

// - 0:9:45.13 -  
~mel.play

// - 0:9:56.65 -  
~mel.stop

// - 0:10:19.82 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(0, LPF.ar(LFPulse.ar(freq, 0, 0.2, pi)), amp), pan)}

// - 0:10:22.66 -  
~mel.play

// - 0:10:39.74 -  
~mel.set(\freq, 760)

// - 0:10:46.83 -  
~mel.set(\freq, 640)

// - 0:10:53.37 -  
~mel.set(\freq, 600)

// - 0:11:2.61 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(0, LPF.ar(LFSaw.ar(freq, 0, pi)), amp), pan)}

// - 0:11:34.89 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(0, LPF.ar(LFSaw.ar(freq, 0, pi+SinOsc.ar(0.2, 0, 0.1))), amp), pan)}

// - 0:11:46.63 -  
Tdef(\mel).play

// - 0:12:28.82 -  
(
Tdef(\mel, {
	inf.do{|i|
		~mel.set(\freq, 760);
		4.wait;
		~mel.set(\freq, 640);
		2.wait;
	}
})
);

// - 0:12:56.33 -  
(
Tdef(\mel, {
	inf.do{|i|
		~mel.set(\freq, 760);
		4.wait;
		~mel.set(\freq, 640);
		2.wait;
		~mel.set(\freq, 760);
		2.wait;
		~mel.set(\freq, 700);
		4.wait;
	}
})
);

// - 0:13:10.73 -  
(
Tdef(\mel, {
	inf.do{|i|
		~mel.set(\freq, 760);
		4.wait;
		~mel.set(\freq, 640);
		2.wait;
		~mel.set(\freq, 760);
		2.wait;
		~mel.set(\freq, 600);
		4.wait;
	}
})
);

// - 0:14:25.93 -  
(
Tdef(\mel, {
	var f= Pseq([760, 640, 760, 600], inf).asStream;
	inf.do{|i|
		~mel.set(\freq, f.next);
		4.wait;
		
	}
})
);

// - 0:14:46.77 -  
(
Tdef(\mel, {
	var f= Pseq([760, 640, 760, 600], inf).asStream;
	var d= Pseq([4, 2, 4, 2, 4], inf).asStream;
	inf.do{|i|
		~mel.set(\freq, f.next);
		d.next.wait;
		
	}
})
);

// - 0:16:45.36 -  
(
Tdef(\mel, {
	var f= Pseq([Pseq([760, 640, 760, 600], 4), Pseq([760, 720, 740, 600], 1), Pseq([760, 640, 740, 720], 1)], inf).asStream;
	var d= Pseq([4, 2, 4, 2, 4], inf).asStream;
	inf.do{|i|
		~mel.set(\freq, f.next);
		d.next.wait;
		
	}
})
);

// - 0:17:33.89 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay.ar(Dust.ar(0.1)*10, 0.2), LPF.ar(LFSaw.ar(freq, 0, pi+SinOsc.ar(0.2, 0, 0.1))), amp), pan)}

// - 0:17:59.03 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay.ar(Dust.ar(0.1)*10, 0.2), LPF.ar(LFSaw.ar(Lag2.kr(freq, 1.5), 0, pi+SinOsc.ar(0.2, 0, 0.1))), amp), pan)}

// - 0:18:9.22 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay.ar(Dust.ar(0.1)*10, 0.2), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.3), 0, pi+SinOsc.ar(0.2, 0, 0.1))), amp), pan)}

// - 0:18:23.21 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay.ar(Dust.ar(0.4)*100, 0.2), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.3), 0, pi+SinOsc.ar(0.2, 0, 0.1))), amp), pan)}

// - 0:18:35.29 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay.ar(Dust.ar(0.4)*100, 0.2), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.3), 0, pi+SinOsc.ar(0.2, 0, 0.12))), amp), pan)}

// - 0:18:45.61 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay.ar(Dust.ar(0.4)*1000, 0.23), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.3), 0, pi+SinOsc.ar(0.2, 0, 0.12))), amp), pan)}

// - 0:19:20.22 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay.ar(CombN.ar(Dust.ar(0.4), 0.2, 0.2)*1000, 0.23), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.3), 0, pi+SinOsc.ar(0.2, 0, 0.12))), amp), pan)}

// - 0:19:50.11 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Dust.ar(0.4), 0.2, 0.2)*1000, 0.05, 0.25), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.3), 0, pi+SinOsc.ar(0.2, 0, 0.12))), amp), pan)}

// - 0:19:57.71 -  
~out= {Pan2.ar(SinOsc.ar({|i| [100, 404]*i}.dup(5), 0, {|i| LFNoise1.kr(FSinOsc.kr(0.2, 0, 2, 2.01)+i)>0}.dup(5)).mean).clip(-0.3, 0.3)}

// - 0:20:20.97 -  
~out= {Pan2.ar(SinOsc.ar({|i| [100, 404]*i}.dup(4), 0, {|i| LFNoise1.kr(FSinOsc.kr(0.2, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.3, 0.3)}

// - 0:20:36.37 -  
~out= {Pan2.ar(SinOsc.ar({|i| [100, 404]*i}.dup(4), 0, {|i| LFNoise2.kr(FSinOsc.kr(0.3, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.3, 0.3)}

// - 0:20:52.38 -  
~out= {Pan2.ar(SinOsc.ar({|i| [100, 404]*i}.dup(4), 0, {|i| LFNoise2.kr(FSinOsc.kr(0.3, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.25, 0.25)}

// - 0:22:2.49 -  
(
Tdef(\mel, {
	var f= Pseq([Pseq([760, 640, 760, 600], 4), Pseq([760, 420, 540, 600], 1), Pseq([760, 640, 740, 720], 1)], inf).asStream;
	var d= Pseq([4, 2, 4, 2, 4], inf).asStream;
	var a= Pseq([1, 0.8, 0.6, 1], inf).asStream;
	inf.do{|i|
		~mel.set(\freq, f.next, \amp, a.next);
		d.next.wait;
		
	}
})
);

// - 0:22:31.76 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Dust.ar(0.4), 0.2, 0.2)*2000, 0.1, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.3), 0, pi+SinOsc.ar(0.2, 0, 0.12))), amp), pan)}

// - 0:22:42.76 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 404]*i}.dup(4), 0, {|i| LFNoise2.kr(FSinOsc.kr(0.3, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.25, 0.25)}

// - 0:22:50.42 -  
~out= {Pan2.ar(SinOsc.ar({|i| [100, 304]*i}.dup(4), 0, {|i| LFNoise2.kr(FSinOsc.kr(0.3, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.25, 0.25)}

// - 0:23:21.74 -  
(
Tdef(\mel, {
	var f= Pseq([Pseq([760, 640, 760, 600], 4), Pseq([760, 420, 540, 600], 1), Pseq([760, 640, 740, 720], 1)], inf).asStream;
	var d= Pseq([4, 2, 4, 2, 4], inf).asStream;
	var a= Pseq([1, 0.8, 0.6, 1], inf).asStream;
	inf.do{|i|
		~mel.set(\freq, f.next/2, \amp, a.next);
		d.next.wait;
		
	}
})
);

// - 0:23:59.84 -  
~out.fadeTime_(8)

// - 0:24:0.51 -  
~out= {Pan2.ar(SinOsc.ar({|i| [100, 304]*i}.dup(4), 0, {|i| LFNoise2.kr(FSinOsc.kr(7, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.25, 0.25)}

// - 0:24:11.38 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(4), 0, {|i| LFNoise2.kr(FSinOsc.kr(7, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.25, 0.25)}

// - 0:24:35.1 -  
~out= {Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(7, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.25, 0.25)}

// - 0:25:23.2 -  
(
Tdef(\mel, {
	var f= Pseq([Pseq([760, 640, 760, 600], 4)], inf).asStream;
	var d= Pseq([4, 2, 4, 2, 4], inf).asStream;
	var a= Pseq([1, 0.8, 0.6, 1], inf).asStream;
	inf.do{|i|
		~mel.set(\freq, f.next/2, \amp, a.next);
		d.next.wait;
		
	}
})
);

// - 0:26:3.11 -  
(
Tdef(\mel, {
	var f= Pseq([Pseq([760, 640, 760, 600], 4)], inf).asStream;
	var d= Pseq([4, 2, 4, 2, 4], inf).asStream;
	var a= Pseq([1, 0.8, 0, 1], inf).asStream;
	inf.do{|i|
		~mel.set(\freq, f.next/2, \amp, a.next*0.7);
		d.next.wait;
		
	}
})
);

// - 0:26:32.59 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Dust.ar(0.4), 0.2, 0.2)*2000, 0.1, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.3), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 1)), pan)}

// - 0:26:48.99 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Dust.ar(0.4), 0.2, 0.2)*2000, 0.1, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:26:59.98 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Dust.ar(0.4), 0.1, 0.1)*2000, 0.1, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:27:6.05 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Dust.ar(1), 0.1, 0.1)*2000, 0.1, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:27:14.97 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Dust.ar(1), 0.05, 0.1)*2000, 0.1, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:27:39.06 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Dust.ar(1), 0.2, 0.2)*2000, 0.05, 0.05), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:28:10.84 -  
~out= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.25, 0.25)}

// - 0:28:59.46 -  
(
Tdef(\mel, {
	var f= Pseq([Pseq([760, 640, 760, 600], 4)], inf).asStream;
	var d= Pseq([4, 2, 4, 2, 4], inf).asStream;
	var a= Pseq([1, 0.8, 0, 1], inf).asStream;
	inf.do{|i|
		var dur= d.next;
		~mel.set(\freq, f.next/2, \amp, a.next*0.7);
		~out.set(\dada, dur*2);
		dur.wait;
		
	}
})
);

// - 0:29:28.65 -  
~out2.ar(2)

// - 0:29:31.84 -  
~out2.play

// - 0:29:37.11 -  
~out2.fadeTime_(5)

// - 0:29:41.81 -  
~out2= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.25, 0.25)}

// - 0:30:7.88 -  
~out2= {|base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [base, base+104]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.25, 0.25)}

// - 0:30:21.05 -  
~out2.set(\base, 500)

// - 0:30:25.09 -  
~out2.set(\base, 600)

// - 0:30:29 -  
~out2.set(\base, 400)

// - 0:30:33.04 -  
~out2.set(\base, 500)

// - 0:30:36.95 -  
~out2.set(\base, 600)

// - 0:30:41.02 -  
~out2.set(\base, 400)

// - 0:30:58.49 -  
~out2= {|base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [Lag2.kr(base, 3), base+104]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.25, 0.25)}

// - 0:31:2.82 -  
~out2.set(\base, 600)

// - 0:31:9.02 -  
~out2.set(\base, 400)

// - 0:31:29.41 -  
~out2= {|base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [Lag2.kr(base, 1), base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(3)).mean).clip(-0.25, 0.25)}

// - 0:31:37.11 -  
~out2.set(\base, 600)

// - 0:31:43.04 -  
~out2.set(\base, 400)

// - 0:32:2.95 -  
~out2= {|base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [Lag2.kr(base, 0.5), base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 1, 1.01)+i)>0}.dup(3)).mean).clip(-0.25, 0.25)}

// - 0:32:56.09 -  
~out2= {|haha= 1, base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [Lag2.kr(base, 0.5), base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, Lag.kr(haha, 1).round(0.25), Lag.kr(haha, 1).round(0.25)+0.01)+i)>0}.dup(3)).mean).clip(-0.25, 0.25)}

// - 0:33:3.15 -  
~out2.set(\base, 600)

// - 0:33:5.04 -  
~out2.set(\base, 400)

// - 0:33:11.07 -  
~out2.set(\base, 600)

// - 0:33:12.98 -  
~out2.set(\base, 400)

// - 0:33:18.97 -  
~out2.set(\haha, 2)

// - 0:33:24.91 -  
~out2.set(\haha, 1)

// - 0:33:29.04 -  
~out2.set(\base, 600)

// - 0:33:32.84 -  
~out2.set(\base, 400)

// - 0:33:37.36 -  
~out2.set(\base, 505)

// - 0:33:40.44 -  
~out2.set(\base, 400)

// - 0:33:44.98 -  
~out2.set(\base, 505)

// - 0:33:49.1 -  
~out2.set(\base, 400)

// - 0:33:52.06 -  
~out2.set(\base, 460)

// - 0:33:54.44 -  
~out2.set(\base, 400)

// - 0:34:10.56 -  
~out2= {|haha= 1, base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [Lag2.kr(base, 0.5), base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, Lag.kr(haha, 1).round(0.2), Lag.kr(haha, 4).round(0.2)+0.01)+i)>0}.dup(3)).mean).clip(-0.25, 0.25)}

// - 0:34:16.73 -  
~out2.set(\haha, 2)

// - 0:34:24.98 -  
~out2.set(\haha, 1)

// - 0:34:57.86 -  
(
Tdef(\mel, {
	var f= Pseq([Pseq([760, 640, 760, 600], 4)], inf).asStream;
	var d= Pseq([4, 2, 4, 2, 4], inf).asStream;
	var a= Pseq([1, 0.8, 0, 1], inf).asStream;
	inf.do{|i|
		var dur= d.next;
		~mel.set(\freq, f.next/2, \amp, a.next*0.7);
		~out.set(\dada, dur*2);
		~out2.set(\haha, i%4*0.3+1);
		dur.wait;
		
	}
})
);

// - 0:36:11.17 -  
(
Tdef(\mel, {
	var f= Pseq([Pseq([760, 640, 760, 600], 4)], inf).asStream;
	var d= Pseq([4, 2, 4, 2, 4], inf).asStream;
	var a= Pseq([1, 0.8, 0, 1], inf).asStream;
	var bf= Pseq([Pseq([400, 600, 400, 600, 400, 500], 3), Pseq([400, 600, 400, 600, 400, 500].scramble, 1)], inf).asStream;
	inf.do{|i|
		var dur= d.next;
		~mel.set(\freq, f.next/2, \amp, a.next*0.7);
		~out.set(\dada, dur*2);
		~out2.set(\haha, i%4*0.3+1);
		~out2.set(\base, bf.next);
		dur.wait;
		
	}
})
);

// - 0:36:58.45 -  
~out3.ar(2)

// - 0:37:5.77 -  
~out3.fadeTime_(10)

// - 0:37:9.75 -  
~out3.play

// - 0:37:29.81 -  
~out3= {|haha= 10, base= 1600, dada= 8| Pan2.ar(SinOsc.ar({|i| [Lag2.kr(base, 0.5), base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, Lag.kr(haha, 1).round(0.25), Lag.kr(haha, 1).round(0.25)+0.01)+i)>0}.dup(3)).mean)*0.2}

// - 0:37:48.84 -  
~out3.set(\base, 1800)

// - 0:37:52.09 -  
~out3.set(\base, 1600)

// - 0:38:4.96 -  
~out3= {|haha= 10, base= 1600, dada= 8, amp= 0.1| Pan2.ar(SinOsc.ar({|i| [Lag2.kr(base, 0.5), base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, Lag.kr(haha, 1).round(0.25), Lag.kr(haha, 1).round(0.25)+0.01)+i)>0}.dup(3)).mean)*amp}

// - 0:38:24.77 -  
~out3= {|haha= 10, base= 1600, dada= 2, amp= 0.1| Pan2.ar(SinOsc.ar({|i| [Lag2.kr(base, 0.5), base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, Lag.kr(haha, 1), Lag.kr(haha, 1).round(0.25)+0.01)+i)>0}.dup(3)).mean)*amp}

// - 0:39:6.93 -  
(
Tdef(\mel, {
	var f= Pseq([Pseq([760, 640, 760, 600], 4), Pseq([760, 640, 760, 500], 1)], inf).asStream;
	var d= Pseq([4, 2, 4, 2, 4], inf).asStream;
	var a= Pseq([1, 0.8, 0, 1], inf).asStream;
	var bf= Pseq([Pseq([400, 600, 400, 600, 400, 500], 3), Pseq([400, 600, 400, 600, 400, 500].scramble, 1)], inf).asStream;
	inf.do{|i|
		var dur= d.next;
		~mel.set(\freq, f.next/2, \amp, a.next*0.7);
		~out.set(\dada, dur*2);
		~out2.set(\haha, i%4*0.3+1);
		~out2.set(\base, bf.next);
		dur.wait;
		
	}
})
);

// - 0:39:34.67 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Dust.ar(1), 0.2, 0.2)*2000, 0.01, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:40:9.7 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(1), 0.2, 0.2)*2000, 0.01, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:40:24.18 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(1), 0.2, 0.2)*2000, 0, 0.06), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:40:43.72 -  
~bas.ar(2)

// - 0:40:50.57 -  
~bas.fadeTime_(1)

// - 0:40:53.97 -  
~bas.play

// - 0:41:40.4 -  
~bas

// - 0:41:41.17 -  
~bas= {|freq= 50| Pan2.ar(SinOsc.ar(freq, 0, 0.1), FSinOsc.kr(0.2, 0, 0.4))}

// - 0:41:50.74 -  
~bas.set(\freq, 60)

// - 0:41:52.79 -  
~bas= {|freq= 50| Pan2.ar(SinOsc.ar(freq, 0, 0.1), FSinOsc.kr(0.2, 0, 0.4))}

// - 0:42:15.97 -  
~bas= {|freq= 50| Pan2.ar(SinOsc.ar(freq, 0, 0.6), FSinOsc.kr(0.2, 0, 0.4))}

// - 0:42:28.98 -  
~bas.set(\freq, 80)

// - 0:42:33.17 -  
~bas.set(\freq, 70)

// - 0:42:37.37 -  
~bas.set(\freq, 50)

// - 0:42:42.86 -  
~bas.set(\freq, 60)

// - 0:42:57.88 -  
Tdef(\bas).play

// - 0:43:56.7 -  
(
Tdef(\bas, {
	var f= [50, 60, 70, 60].scramble;
	inf.do{|i|
		~bas.set(\freq, f.wrapAt(i));
		4.wait;
	}
})
);

// - 0:44:45.02 -  
~out3= {|haha= 10, base= 1600, dada= 2, amp= 0.1| Pan2.ar(SinOsc.ar({|i| [Lag2.kr(base, 0.5), base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, Lag.kr(haha, 1), Lag.kr(haha, 1).round(0.25)+0.01)+i)>0}.dup(3)).mean).clip(-0.2, 0.2)*amp}

// - 0:45:10.96 -  
~out2= {|haha= 1, base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [Lag2.kr(base, 0.5), base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, Lag.kr(haha, 1).round(0.2), Lag.kr(haha, 4).round(0.2)+0.01)+i)>0}.dup(3)).mean).clip(-0.5, 0.5)}

// - 0:45:43.67 -  
~out2= {|haha= 1, base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [base, base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, Lag.kr(haha, 1).round(0.2), haha+0.01)+i)>0}.dup(3)).mean).clip(-0.5, 0.5)}

// - 0:45:57.3 -  
~out2= {|haha= 1, base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [base, base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, haha, haha+0.01)+i)>0}.dup(3)).mean).clip(-0.5, 0.5)}

// - 0:46:20.49 -  
~out3= {|haha= 10, base= 1600, dada= 2, amp= 0.1| Pan2.ar(SinOsc.ar({|i| [base, base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, haha, haha+0.01)+i)>0}.dup(3)).mean).clip(-0.2, 0.2)*amp}

// - 0:46:55.32 -  
~out3= {|haha= 10, base= 1600, dada= 2, amp= 0.1| Pan2.ar(CombN.ar(SinOsc.ar({|i| [base, base+108]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, haha, haha+0.01)+i)>0}.dup(3)).mean).clip(-0.2, 0.2), 0.2, 0.2)*amp}

// - 0:47:40.93 -  
~out3= {|haha= 10, base= 1600, dada= 2, amp= 0.1| Pan2.ar(CombN.ar(SinOsc.ar({|i| [base, base+108]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, haha, haha+0.01)+i)>0}.dup(4)).mean).clip(-0.3, 0.3), 0.2, 0.2)*amp}

// - 0:48:11.07 -  
~out3= {|haha= 10, base= 1600, dada= 2, amp= 0.1| Pan2.ar(CombN.ar(SinOsc.ar({|i| [base, base+108]*i}.dup(2), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, haha, haha+0.01)+i)>0}.dup(2)).mean).clip(-0.3, 0.3, 0.2, 0.2))*amp}

// - 0:48:40.83 -  
~out= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.3, 0.3)}

// - 0:48:49.27 -  
~out= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(3)).mean).clip(-0.3, 0.3)}

// - 0:48:58.75 -  
~out= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(3), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(3)).mean).clip(-0.4, 0.4)}

// - 0:49:14.14 -  
~out= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(2), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(2)).mean).clip(-0.5, 0.5)}

// - 0:49:22.41 -  
~out= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(2), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(2)).mean).clip(-0.6, 0.6)}

// - 0:49:29.18 -  
~out= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(2), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(2)).mean).clip(-0.7, 0.7)}

// - 0:49:35.16 -  
~out= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(2), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(2)).mean).clip(-0.8, 0.8)}

// - 0:49:40.55 -  
~out= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(2), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(2)).mean).clip(-0.9, 0.9)}

// - 0:49:44.92 -  
~out= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(2), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(2)).mean)}

// - 0:49:58.4 -  
~out2= {|base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [base, base+104]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.3, 0.3)}

// - 0:50:9.96 -  
~out2= {|base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [base, base+104]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.4, 0.4)}

// - 0:50:14.93 -  
~out2= {|base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [base, base+104]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.4, 0.5)}

// - 0:50:19.32 -  
~out2= {|base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [base, base+104]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.5, 0.5)}

// - 0:50:27.3 -  
~out2= {|base= 600, dada= 7| Pan2.ar(SinOsc.ar({|i| [base, base+104]*i}.dup(4), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(4)).mean).clip(-0.6, 0.6)}

// - 0:50:35.97 -  
~bas.release(30)

// - 0:50:57.05 -  
~out2.release(20)

// - 0:51:18.13 -  
~out3.release(20)

// - 0:51:57.46 -  
~out= {|dada= 7| Pan2.ar(SinOsc.ar({|i| [200, 304]*i}.dup(1), 0, {|i| SinOsc.kr(FSinOsc.kr(dada, 0, 2, 2.01)+i)>0}.dup(1)).mean)}

// - 0:52:14.38 -  
~out.release(1)

// - 0:52:35.26 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(1), 0.2, 0.2)*3000, 0, 0.06), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:52:42.38 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(1), 0.2, 0.2)*4000, 0, 0.06), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:52:50.48 -  
~mel.fadeTime_(10)

// - 0:52:55.17 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(1), 0.2, 0.2)*5000, 0, 0.06), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:53:1.18 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(1), 0.2, 0.2)*6000, 0, 0.06), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:53:8.09 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(1), 0.2, 0.2)*6000, 0, 0.08), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:53:16.06 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(1), 0.2, 0.2)*8000, 0, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)), pan)}

// - 0:53:36.26 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(1), 0.2, 0.2)*8000, 0, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)).clip(-0.9, 0.9), pan)}

// - 0:53:45.48 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(1), 0.2, 0.2)*8000, 0, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)).clip(-0.8, 0.8), pan)}

// - 0:53:59.36 -  
~mel.fadeTime_(0.5)

// - 0:54:1.5 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(1), 0.2, 0.2)*9000, 0, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)).clip(-0.8, 0.8), pan)}

// - 0:54:12.02 -  
~mel= {|freq= 720, amp= 0.5, pan= 0| Pan2.ar(SinOsc.ar(Decay2.ar(CombN.ar(Impulse.ar(2), 0.2, 0.2)*9000, 0, 0.1), LPF.ar(LFSaw.ar(Lag2.kr(freq, 0.5), 0, pi+SinOsc.ar(0.2, 0, 0.12))), Lag.kr(amp, 0.5)).clip(-0.8, 0.8), pan)}

// - 0:54:24.67 -  
~mel.release(1)

// - 0:54:29.62 -  
//bad ending

// - 0:54:39.35 -  
p.clear

// - 0:54:44.15 -  
p.clear

// - 0:54:50.37 -  
Tdef(\mel).isPlaying

// - 0:54:53.93 -  
Tdef(\mel).stop

// - 0:54:57.24 -  
Tdef(\bas).stop