Skip to content

Instantly share code, notes, and snippets.

@jhonylucas74
Created August 7, 2018 15:24
Show Gist options
  • Save jhonylucas74/6ecfccbd55c7fd52a766490987245769 to your computer and use it in GitHub Desktop.
Save jhonylucas74/6ecfccbd55c7fd52a766490987245769 to your computer and use it in GitHub Desktop.
chords_rind = [:G4, chord(:D4, :minor), chord(:A4, :minor), :E4].ring
counter = 0
in_thread do
loop do
sample :drum_heavy_kick
sleep 1
sample :drum_cymbal_pedal
sleep 0.25
sample :drum_heavy_kick
sleep 0.25
sample :drum_heavy_kick
sleep 0.5
end
end
in_thread do
loop do
sample :drum_cymbal_open, amp: 0.2
sleep 0.5
end
end
loop do
use_synth :piano
4.times do
puts tick
play chords_rind[counter], amp: 2, release: 3
sleep 0.5
end
counter +=1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment