Created
August 8, 2018 22:01
-
-
Save jhonylucas74/cdca9a299d68aa10e44bd28773411168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
play_s = true | |
in_thread do | |
loop do | |
synth :piano | |
play choose(chord(:C4, :minor)), release: 0.1, cutoff: rrand(60, 80) | |
sleep 0.2 | |
end | |
end | |
loop do | |
sample :bd_tek | |
sleep 0.2 | |
sample :bd_tek | |
sleep 0.2 | |
sample :drum_snare_hard, release: 0.2, amp: 1 | |
sleep 0.2 | |
if play_s | |
sample :drum_snare_hard, release: 0.2, amp: 1 | |
end | |
sleep 0.2 | |
play_s = !play_s | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment