This night I was playing a tune at the guitar, so I have wondered if I had had a drum to get a “fixed” time how it has would been. Here how I got a “tempo composto” (don’t know how to write that in english, sorry) in Sonic-Pi.
bpm = 80 # set bmp for the dotted quarter note
x = (bpm*3)/2 # calculate the dotted quartet note
use_bpm x # use the calculated variable
live_loop :tamburo do
sample :drum_tom_lo_hard, rpitch: -1.30, amp: 1
sleep 1.5
sample :drum_tom_lo_hard, rpitch: -1.15, amp: 0.5
sleep 1.5
end
live_loop :rinforzo_del_tamburo do
use_synth :sine
play_chord [38,45], amp: 1, release: 0.5
sleep 1.5
play_chord [38,45], amp: 1, release: 0.25
sleep 1.5
end
live_loop :cimbali do
sample :drum_cymbal_soft, rpitch: 2.45, amp: 1
sleep 0.5
sample :drum_cymbal_soft, rpitch: 2.30, amp: 0.75
sleep 0.5
sample :drum_cymbal_soft, rpitch: 2.15, amp: 0.5
sleep 0.5
end