Syncing the loops

From cod3v

A more complex beat is easier to code using multiple live_loops but the loops ne to be synced together. See the video made by Geek Tutorials:

The following script is the previous video.

use_bpm 70
live_loop :kick do
  sleep 1
  sample :drum_bass_hard
end

live_loop :snare do
  sync :kick
  sleep 0.5
  sample :drum_snare_hard
end

live_loop :hihat do
  sync :kick
  sample :drum_cymbal_closed
  sleep 0.25
  sample :drum_cymbal_closed
  sleep 0.25
  sample :drum_cymbal_closed
  sleep 0.25
  sample :drum_cymbal_closed
end