t = TempoClock(60/60)
~changesamples.("soh")
d = ~bufs[0..18] // kendhang e = ~bufs[19..32] // saron & demung f = ~bufs[33..39] // gong
Pbindef(\x, \instrument, \bf, \dur, 1/4) // keep coming up with 8 beat patterns, and repeat each one four times Pbindef(\x, \buf, Pn(Plazy({Pseq(d.scramble[0..7],4)}))) Pbindef(\x).play(t)
Pbindef(\y, \instrument, \bf, \dur, 1/4, \amp, 0.025) Pbindef(\y, \buf, Pn(Plazy({Pseq( e.scramble.[0..3], 4 )}))) Pbindef(\y).play(t)
Pbindef(\z, \instrument, \bf, \dur, 2, \amp, 0.055) Pbindef(\z, \buf, Pn(Plazy({Pseq( f.scramble.[0..3], 4 )}))) Pbindef(\z).play(t)
Pbindef(\x).stop Pbindef(\y).stop Pbindef(\z).stop
t.sync(30/60,10)
s.record s.stopRecording