View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

barpiano jam


(
//barpiano jam sc3d
//julian rohrhuber
#{
{ var my, mx, arr, rate;
	my = MouseY.kr([0, 1]);
	mx = MouseX.kr([0, 1]);
	rate = 8.5;
	Mix.ar(
	RLPF.ar(
		Decay2.ar(
			ImpulseSequencer.ar([
				`(Array.fill(32, { arg i; [1.0.rand, 0].wrapAt(i) })), 
				`(Array.fill(32, { 1.0.rand }))],
				Impulse.ar(rate, 0.4)
			),
			[0.04, 0.015],
			0.5*mx,
			CombN.ar(PinkNoise.ar(0.05), 0.01, [60, 100, 200, 250].reciprocal, 0.9)
		),
	LFNoise1.ar(rate * [1, 1, 2, 1]/8, 300, 400),
	0.1
	)
)
	+ SinOsc.ar([1, 1.01] * Sequencer.kr({ arg i; 
						if((my.poll-0.5).coin || (i==0), { arr = Array.fill(32, {rrand(1, 10)*[50, 100].wchoose([0.3, 0.7])}) });
						arr.wrapAt(i) 
						}, Impulse.kr(rate) )
	, 0, mx.max(0.2)/60)

}.play;
}.send;
)





Links to this Page