Created
November 11, 2015 02:58
-
-
Save bland-industries/b2da7a28eb936e0f5984 to your computer and use it in GitHub Desktop.
This is the song "In the Hall of the Mountain King" by Edvard Grieg. This is to be used in the program SonicPi. This is my first real song I made on it and I had to teach myself sheet music reading in order to do this. It was fun.
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
in_thread(name: :basic) do | |
use_synth :mod_fm | |
#sleep (bar * 2) | |
bar = 2.25 | |
half = bar/2.0 | |
quarter = bar/4.0 | |
eighth = bar/8.0 | |
2.times do | |
bar = bar -0.25 | |
half = bar/2.0 | |
quarter = bar/4.0 | |
eighth = bar/8.0 | |
#bar 1 | |
play chord(:D3), release: eighth | |
sleep eighth | |
play chord(:E3), release: eighth | |
sleep eighth | |
play chord(:F3), release: eighth | |
sleep eighth | |
play chord(:G3), release: eighth | |
sleep eighth | |
play chord(:A3), release: eighth | |
sleep eighth | |
play chord(:F3), release: eighth | |
sleep eighth | |
play chord(:A3), release: quarter | |
sleep quarter | |
#bar 2 | |
play chord(:GS3), release: eighth | |
sleep eighth | |
play chord(:E3), release: eighth | |
sleep eighth | |
play chord(:GS3), release: quarter | |
sleep quarter | |
play chord(:G3), release: eighth | |
sleep eighth | |
play chord(:EB3), release: eighth | |
sleep eighth | |
play chord(:G3), release: quarter | |
sleep quarter | |
#bar 3 | |
play chord(:D3), release: eighth | |
sleep eighth | |
play chord(:E3), release: eighth | |
sleep eighth | |
play chord(:F3), release: eighth | |
sleep eighth | |
play chord(:G3), release: eighth | |
sleep eighth | |
play chord(:A3), release: eighth | |
sleep eighth | |
play chord(:F3), release: eighth | |
sleep eighth | |
play chord(:A3), release: eighth | |
sleep eighth | |
play chord(:D4), release: eighth | |
sleep eighth | |
#bar 4 | |
play chord(:C4), release: eighth | |
sleep eighth | |
play chord(:A3), release: eighth | |
sleep eighth | |
play chord(:F3), release: eighth | |
sleep eighth | |
play chord(:A3), release: eighth | |
sleep eighth | |
play chord(:C4), release: half | |
sleep half | |
end | |
bar = 2.0 | |
half = bar/2.0 | |
quarter = bar/4.0 | |
eighth = bar/8.0 | |
# treble cleff | |
2.times do | |
bar = bar -0.25 | |
half = bar/2.0 | |
quarter = bar/4.0 | |
eighth = bar/8.0 | |
#bar 1 | |
play chord(:A3), release: eighth | |
sleep eighth | |
play chord(:B3), release: eighth | |
sleep eighth | |
play chord(:CS4), release: eighth | |
sleep eighth | |
play chord(:D4), release: eighth | |
sleep eighth | |
play chord(:E4), release: eighth | |
sleep eighth | |
play chord(:C4), release: eighth | |
sleep eighth | |
play chord(:E4), release: quarter | |
sleep quarter | |
#bar 2 | |
play chord(:F4), release: eighth | |
sleep eighth | |
play chord(:CS4), release: eighth | |
sleep eighth | |
play chord(:F4), release: quarter | |
sleep quarter | |
play chord(:E4), release: eighth | |
sleep eighth | |
play chord(:C4), release: eighth | |
sleep eighth | |
play chord(:E4), release: quarter | |
sleep quarter | |
#bar 3 | |
play chord(:A3), release: eighth | |
sleep eighth | |
play chord(:B3), release: eighth | |
sleep eighth | |
play chord(:CS4), release: eighth | |
sleep eighth | |
play chord(:D4), release: eighth | |
sleep eighth | |
play chord(:E4), release: eighth | |
sleep eighth | |
play chord(:C4), release: eighth | |
sleep eighth | |
play chord(:E4), release: quarter | |
sleep quarter | |
#bar 4 | |
play chord(:F4), release: eighth | |
sleep eighth | |
play chord(:CS4), release: eighth | |
sleep eighth | |
play chord(:F4), release: quarter | |
sleep quarter | |
play chord(:E4), release: half | |
sleep half | |
end | |
# treble cleff 2 | |
2.times do | |
bar = bar -0.25 | |
half = bar/2.0 | |
quarter = bar/4.0 | |
eighth = bar/8.0 | |
#bar 1 | |
play chord(:D4), release: eighth | |
sleep eighth | |
play chord(:E4), release: eighth | |
sleep eighth | |
play chord(:F4), release: eighth | |
sleep eighth | |
play chord(:G4), release: eighth | |
sleep eighth | |
play chord(:A4), release: eighth | |
sleep eighth | |
play chord(:F4), release: eighth | |
sleep eighth | |
play chord(:A4), release: quarter | |
sleep quarter | |
#bar 2 | |
play chord(:GS4), release: eighth | |
sleep eighth | |
play chord(:E4), release: eighth | |
sleep eighth | |
play chord(:GS4), release: quarter | |
sleep quarter | |
play chord(:G4), release: eighth | |
sleep eighth | |
play chord(:EB4), release: eighth | |
sleep eighth | |
play chord(:G4), release: quarter | |
sleep quarter | |
#bar 3 | |
play chord(:D4), release: eighth | |
sleep eighth | |
play chord(:E4), release: eighth | |
sleep eighth | |
play chord(:F4), release: eighth | |
sleep eighth | |
play chord(:G4), release: eighth | |
sleep eighth | |
play chord(:A4), release: eighth | |
sleep eighth | |
play chord(:F4), release: eighth | |
sleep eighth | |
play chord(:A4), release: eighth | |
sleep eighth | |
play chord(:D5), release: eighth | |
sleep eighth | |
#bar 4 | |
play chord(:C5), release: eighth | |
sleep eighth | |
play chord(:A4), release: eighth | |
sleep eighth | |
play chord(:F4), release: eighth | |
sleep eighth | |
play chord(:A4), release: eighth | |
sleep eighth | |
play chord(:C5), release: half | |
sleep half | |
end | |
# crazy | |
1.times do | |
bar = bar -0.25 | |
half = bar/2.0 | |
quarter = bar/4.0 | |
eighth = bar/8.0 | |
#bar 1 & 2 | |
2.times do | |
sleep quarter | |
play chord(:D5), release: quarter | |
play chord(:GS4), release: quarter | |
play chord(:F4), release: quarter | |
sleep half | |
end | |
#bar 3 | |
play chord(:D4), release: eighth | |
sleep eighth | |
play chord(:E4), release: eighth | |
sleep eighth | |
play chord(:F4), release: eighth | |
sleep eighth | |
play chord(:G4), release: eighth | |
sleep eighth | |
play chord(:A4), release: eighth | |
sleep eighth | |
play chord(:F4), release: eighth | |
sleep eighth | |
play chord(:A4), release: eighth | |
sleep eighth | |
play chord(:D5), release: eighth | |
sleep eighth | |
#bar 4 | |
play chord(:CS5), release: eighth | |
sleep eighth | |
play chord(:A4), release: eighth | |
sleep eighth | |
play chord(:C5), release: eighth | |
sleep eighth | |
play chord(:E5), release: eighth | |
sleep eighth | |
play chord(:D5), release: half | |
play chord(:F4), release: half | |
sleep half | |
#bar 5&6 | |
2.times do | |
sleep quarter | |
play chord(:D6), release: quarter | |
play chord(:GS5), release: quarter | |
play chord(:F5), release: quarter | |
sleep half | |
end | |
#bar 7 | |
play chord(:D5), release: eighth | |
sleep eighth | |
play chord(:E5), release: eighth | |
sleep eighth | |
play chord(:F5), release: eighth | |
sleep eighth | |
play chord(:G5), release: eighth | |
sleep eighth | |
play chord(:A5), release: eighth | |
sleep eighth | |
play chord(:F5), release: eighth | |
sleep eighth | |
play chord(:A5), release: eighth | |
sleep eighth | |
play chord(:D6), release: eighth | |
sleep eighth | |
#bar 8 | |
play chord(:CS6), release: eighth | |
sleep eighth | |
play chord(:A5), release: eighth | |
sleep eighth | |
play chord(:C6), release: eighth | |
sleep eighth | |
play chord(:E6), release: eighth | |
sleep eighth | |
play chord(:D6), release: half | |
play chord(:F5), release: half | |
sleep half | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment