Skip to content

Instantly share code, notes, and snippets.

@jhonylucas74
Created August 8, 2018 22:01
Show Gist options
  • Save jhonylucas74/cdca9a299d68aa10e44bd28773411168 to your computer and use it in GitHub Desktop.
Save jhonylucas74/cdca9a299d68aa10e44bd28773411168 to your computer and use it in GitHub Desktop.
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