Skip to content

Instantly share code, notes, and snippets.

@emlyn
Last active April 21, 2016 14:00
Show Gist options
  • Save emlyn/3dad14ebda152ee9e508 to your computer and use it in GitHub Desktop.
Save emlyn/3dad14ebda152ee9e508 to your computer and use it in GitHub Desktop.
use_bpm 94
live_loop :drums do
# 1 e & a 2 e & a 3 e & a 4 e & a
cymbal = bools(0,0,0,0, 0,1,0,1, 0,0,0,0, 0,1,0,0)
hard = bools(0,0,0,0, 1,0,0,0, 0,0,0,0, 1,0,0,0)
soft = bools(0,0,0,0, 0,0,0,1, 0,1,0,1, 0,0,0,1)
kick = bools(1,0,1,0, 0,0,0,0, 0,0,1,0, 0,1,0,0)
with_fx :reverb, room: 0.4, damp: 0.1, amp: 1.5 do
16.times do
if cymbal.tick then
sample :drum_cymbal_open, attack: 0.01, sustain: 0.2, release: 0.02, amp: 0.3
else
sample :drum_cymbal_closed, amp: 0.5
end
sample :drum_snare_hard if hard.look
sample :drum_snare_soft if soft.look
sample :drum_heavy_kick if kick.look
sleep 0.25
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment