//experiment with this duration //sound “grains” are typically 10-100 ms var grainMS = 250 a = Drums('x*ox*xo-') b = Sampler() pickNew = function() { a.amp = 1 b.record(a, ms(grainMS)) future(function(){ a.amp = 0 b.note.seq( [0.5, 1, 2, 4].random(), ms(grainMS) ) }, ms(grainMS)) } s = Seq(pickNew, ms(500))