Hi all hope you’re all doing well and staying safe during these times.
I’m trying to use Sonic Pi to make a generative drum pattern changes every few bars and doesn’t repeat endlessly below the end of this post is the code I’m using please could somebody check it and tell me if it’s correct it’s giving me errors on my end and I don’t know what they are. I’ve been away for awhile and I think I’ve forgotten some things. Your help with this matter would be most welcome kind regards Trey.
Here is the code:
set( :rnd, 5683 )
live_loop :drums do
use_random_seed get( :rnd )
midi :B1, channel: 10
if dice(9) > 5
midi :C2, channel: 10 midi :f2, channel: 10 midi :G2, channel: 10 sleep 1.3 end end live_loop :controller do set( :rnd, rand_i( 10000 )) sleep 1 end