Skip to content

Instantly share code, notes, and snippets.

@rhnvrm
Created May 14, 2020 18:46
Show Gist options
  • Save rhnvrm/1772fbe9de453ac70a04dd061480e02a to your computer and use it in GitHub Desktop.
Save rhnvrm/1772fbe9de453ac70a04dd061480e02a to your computer and use it in GitHub Desktop.
Coffin Dance in Sonic Pi
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