Skip to content

Instantly share code, notes, and snippets.

@bytezen
Created June 25, 2019 19:41
Show Gist options
  • Save bytezen/8a7856480971d8e0bf2f090eb04d2e90 to your computer and use it in GitHub Desktop.
Save bytezen/8a7856480971d8e0bf2f090eb04d2e90 to your computer and use it in GitHub Desktop.
ncgs-workshop template
##| ncgs2019-song-template.rb
##| Song template
##| -----------------------------------------
##| DRUMS
##| -----------------------------------------
comment do
use_bpm #tempo
kick_pattern = bools #paste your pattern here
snare_pattern = bools #paste your pattern here
hi_hat_pattern = bools #paste your pattern here
##| Kick Loop
##| -----------------------------------------
live_loop :kick do
on kick_pattern[ tick ] do
sample # paste your sample here
end
sleep 1 # you may have to change this value depending on the length of your kick pattern
end
##| Snare Loop
##| -----------------------------------------
live_loop :snare do
on snare_pattern[ tick ] do
sample # paste your sample here
end
sleep 1 # you may have to change this value depending on the length of your kick pattern
end
##| Hi-Hat Loop
##| -----------------------------------------
live_loop :hi_hat do
on hi_hat_pattern[ tick ] do
sample # paste your sample here
end
sleep 1 # you may have to change this value depending on the length of your kick pattern
end
end
##| -----------------------------------------
##| BASS LINE
##| -----------------------------------------
comment do
bass_line = ring # Paste your notes here
qt = 1
et = 0.5
st = 0.25
ts = 0.125
durations = ring # Paste your durations here
live_loop :bass_line do
play bass_line[ tick ]
sleep durations[ look ]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment