Created
May 14, 2020 18:46
-
-
Save rhnvrm/1772fbe9de453ac70a04dd061480e02a to your computer and use it in GitHub Desktop.
Coffin Dance in Sonic Pi
This file contains hidden or 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
live_loop :beat do | |
sample :bd_haus, rate: 1 | |
sleep 0.25 | |
sync :melody | |
end | |
notes = [] | |
delays = [] | |
notes = [:G4, :G4, :D5, :C5, :As4, :A4, :A4, :C5, :As4, :A4] | |
delays = [0.5, 0.25, 0.25, 0.5, 0.5, 0.5, 0.5, 0.5, 0.25, 0.25] | |
notes += [:G4, :G4, :As5, :A5, :As5, :A5, :As5] | |
delays += [0.5, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25] | |
notes += [:G4, :G4, :As5, :A5, :As5, :A5, :As5] | |
delays += [0.5, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25] | |
live_loop :melody do | |
use_synth :tech_saws | |
play notes.ring.tick | |
sleep delays.ring.look | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment