How do I improve this code, so Sonic Pi dont crash during tabla samples? v3.3.1
YoutTube of Crash
#drone 211213 15:33
with_fx :gverb do
use_synth :fm
# play :a5, release: 16, attack: 4, amp: 0.2
# play :ds4, release: 16, attack: 4, amp: 0.2
#play :c2+01, release: 16, attack: 4, amp: 0.2
# play :c1, release: 32, attack: 4, amp: 0.2
end
live_loop :ambiance do
use_synth :dark_ambience
# play :c3, release: 24, attack: 4, cutoff: 80
sleep 16
end
live_loop :noise do
use_synth :gnoise
# play :c5, release: 24, attack: 4, cutoff: 40, amp: 2
sleep 16
end
#sample
live_loop :fast do
with_fx :reverb do
# sample :tabla_dhec, cutoff: ring(40,50,60,90,110).choose, amp: ring(3,5,1,1).choose+2, pan: ring(-1,1).choose, pitch: ring(0,24,12).choose
# sample :tabla_ghe6, cutoff: ring(40,50,60,90,110).choose, amp: ring(3,1,1,1).choose+0, pan: ring(-1,1).choose, pitch: ring(0,-12,12).choose
# sample :tabla_tas2, cutoff: ring(40,50,60,90,110).choose, amp: ring(3,1,1,1).choose+3, pan: ring(-1,1).choose, pitch: ring(0,-12,12).choose
# sample :tabla_tun2, cutoff: ring(40,50,60,90,110).choose, amp: ring(3,1,5,1).choose+4, pan: ring(-1,1).choose, pitch: ring(0,-24,-12).choose
sleep ring(0.125).choose
end
end
live_loop :drums do
with_fx :reverb do
with_fx :bitcrusher do
sleep ring(0.5,0.25,0.75).choose
# sample :bd_haus, cutoff: ring(80,90,110,70).choose, amp: 2
end
end
end