Sonic Pi beatslicing livecoding session
this is the recording of a SonicPi Livecoding session made from 2 sample loops sliced and rearranged in different ways
for the drum sounds I used a drumloop sliced it into 32 peaces each 1% the length of the original loop. Each click is chosen at random from the ring created by the line command.
n = 32 l = 0.01 s = line(0, 1, steps: n+1).choose f = [1,s + l].min sample "drumloop.wav", beat_stretch: 16, start: s, finish: f
The samples are triggered at a given 16th slot with a changeable probability.
the e-piano loop is played back at different speeds chosen from an array using [1,-1,0.5, -0.5, 0.75, -0.75].choose and placed at a random position in the stereofield using a :pan fx
read more ...