One thing I forgot to mention is that if you want more control over the sequence of patterns, that you can create a ring of random seeds which is chosen by the second loop.
A ring of random seeds are something that I use quite a lot in pieces as it gives a lot of control in terms of playing around until I get ‘random’ sequences I like, but also in being able to introduce some repetition when I want it. E.g.
use_bpm 127
seeds = (ring 234, 3453, 234, 3763, 1293, 3872, 1293, 33536, 234, 1293)
set :rnd, 1000
live_loop :drums do
use_random_seed get :rnd
8.times do
sample :bd_haus if one_in(3)
sample :sn_dolf if one_in(5)
sample :drum_cymbal_closed if one_in(2)
sleep 0.5
end
end
live_loop :controller do
sleep 31
set :rnd, seeds.tick
sleep 1
end
Though, this may not be what @soundwarrior wants