Skip to content

Instantly share code, notes, and snippets.

@tedthetrumpet
Created July 14, 2016 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tedthetrumpet/fbea3d56f9dbe50b7f81de97683520a5 to your computer and use it in GitHub Desktop.
Save tedthetrumpet/fbea3d56f9dbe50b7f81de97683520a5 to your computer and use it in GitHub Desktop.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment