Hi there :
I was trying to make a count-in of 4 beats,before code start to play
(1 pre-count bar).
I use to record my loops on Audacity via USB.
Want that Sonic Pi counts one bar,before i hit Rec on Audacity.
As far i know, it can be achieved using “get”,so i built a “condicional metronome”,
and tried to use “get” to held the code for one beat,but it’s not what happened.
Please,take a read on this code below :
Count In (Not Finished II)
use_bpm 100 # Sound Out with_fx :sound_out_stereo, mix: 0 do count_in = (line 0, 4, steps: 4) live_loop :metro do if count_in.tick == 0 play 70 else play 70,pitch: -12 end sleep 1 end set :metro,4 live_loop :sample do sample :loop_industrial,rate: 1 sleep sample_duration(:loop_industrial) end end
How can i achieve a count-in metronome ?
Thank you again !