-
-
Save djbender/710138 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
require 'rubygems' | |
require 'bloops' | |
b = Bloops.new | |
b.tempo = 100 | |
sound = b.sound Bloops::SQUARE | |
sound.volume = 0.5 | |
sound.sustain = 0.3 | |
sound.attack = 0.1 | |
sound.decay = 0.3 | |
alto1 = %q{ | |
+ | |
16E 8E 16E 16 16C 8E 8G 8 - 8G 8 + | |
8C 16 - 16G 8 8E 16 16A 16 16B 16 16A# 8A | |
16G + 8E 16G 8A 16F 16G 16 16E 16 16C 16D - 16B 8 + | |
8C 16 - 16G 8 8E 16 16A 16 16B 16 16A# 8A | |
16G + 8E 16G 8A 16F 16G 16 16E 16 16C 16D - 16B 8 + | |
8 16G 16F# 16F 8D# 16E 16 - 16G# 16A + 16C 16 - 16A + 16C 16D | |
8 16G 16F# 16F 8D# 16E 16 + 16C 16 16C 8C 8 - | |
8 16G 16F# 16F 8D# 16E 16 - 16G# 16A + 16C 16 - 16A + 16C 16D | |
8 8D# 16 16D 8 8C 8 4 | |
8 16G 16F# 16F 8D# 16E 16 - 16G# 16A + 16C 16 - 16A + 16C 16D | |
8 16G 16F# 16F 8D# 16E 16 + 16C 16 16C 8C 8 - | |
8 16G 16F# 16F 8D# 16E 16 - 16G# 16A + 16C 16 - 16A + 16C 16D | |
8 8D# 16 16D 8 8C 8 4 | |
16C 8C 16C 16 16C 8D 16E 8C - 16A 8G 8 + | |
16C 8C 16C 16 16C 16D 16E 2 | |
16C 8C 16C 16 16C 8D 16E 8C - 16A 8G 8 + | |
16E 8E 16E 16 16C 8E 8G 8 - 8G 8 + | |
8C 16 - 16G 8 8E 16 16A 16 16B 16 16A# 8A | |
16G + 8E 16G 8A 16F 16G 16 16E 16 16C 16D - 16B 8 + | |
8C 16 - 16G 8 8E 16 16A 16 16B 16 16A# 8A | |
16G + 8E 16G 8A 16F 16G 16 16E 16 16C 16D - 16B 8 + | |
16E 8C - 16G 8 8G# 16A + 8F 16F - 8A 8 | |
16B + 8A 16A 16A 8G 16F 16E 8C - 16A 8G 8 + | |
16E 8C - 16G 8 8G# 16A + 8F 16F - 8A 8 | |
16B + 8F 16F 16F 8E 16D 16C - 8G 16G 8C 8 + | |
16E 8C - 16G 8 8G# 16A + 8F 16F - 8A 8 | |
16B + 8A 16A 16A 8G 16F 16E 8C - 16A 8G 8 + | |
16E 8C - 16G 8 8G# 16A + 8F 16F - 8A 8 | |
16B + 8F 16F 16F 8E 16D 16C - 8G 16G 8C 8 + | |
16C 8C 16C 16 16C 8D 16E 8C - 16A 8G 8 + | |
16C 8C 16C 16 16C 16D 16E 2 | |
16C 8C 16C 16 16C 8D 16E 8C - 16A 8G 8 + | |
16E 8E 16E 16 16C 8E 8G 8 - 8G 8 + | |
16E 8C - 16G 8 8G# 16A + 8F 16F - 8A 8 | |
16B + 8A 16A 16A 8G 16F 16E 8C - 16A 8G 8 + | |
16E 8C - 16G 8 8G# 16A + 8F 16F - 8A 8 | |
16B + 8F 16F 16F 8E 16D 16C - 8G 16G 8C 8 + | |
8C 16 - 8G 16 8E 16A 8B 16A 16G# 8A# 16G# | |
1G | |
} | |
alto2 = %q{ | |
+ | |
1 1 1 1 1 1 | |
2 16 16F 16 16F 8F 8 | |
1 1 1 | |
2 16 16F 16 16F 8F 8 | |
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 | |
- | |
16E 16D 2E | |
} | |
bass = %q{ | |
- | |
16D 8D 16D 16 16D 8D 8G 8 - 8G + 8 | |
8G 16 16D 8 8C 16 16F 16 16G 16 16F# 8F | |
16E + 8C 16E 8F 16D 16E 16 16C 16 - 16A 16B 16A 8 | |
8G 16 16D 8 8C 16 16F 16 16G 16 16F# 8F | |
16E + 8C 16E 8F 16D 16E 16 16C 16 - 16A 16B 16A 8 | |
8C 16 16G 8 + 8C - 8F 16 + 16C 16C 16C - 8F | |
8C 16 16E 8 16G + 16C - 4 8 8G | |
8C 16 16G 8 + 8C - 8F 16 + 16C 16C 16C - 8F | |
8C 8G# 16 16A# 8 + 8C - 16 16G 8G 8C | |
8C 16 16G 8 + 8C - 8F 16 + 16C 16C 16C - 8F | |
8C 16 16E 8 16G + 16C - 4 8 8G | |
8C 16 16G 8 + 8C - 8F + 16 16C 16C 16C - 8F | |
8C 8G# 16 16A# 8 + 8C - 16 16G 8G 8C | |
- 8G# + 16 16D# 8 8G# 8G 16 16C 8 - 8G + | |
- 8G# + 16 16D# 8 8G# 8G 16 16C 8 - 8G + | |
- 8G# + 16 16D# 8 8G# 8G 16 16C 8 - 8G + | |
16D 8D 16D 16 16D 8D 8G 8 - 8G + 8 | |
8G 16 16D 8 8C 16 16F 16 16G 16 16F# 8F | |
16E + 8C 16E 8F 16D 16E 16 16C 16 - 16A 16B 16A 8 | |
8G 16 16D 8 8C 16 16F 16 16G 16 16F# 8F | |
16E + 8C 16E 8F 16D 16E 16 16C 16 - 16A 16B 16A 8 | |
8C 16 16G 8G + 8C - 8F 8F + 16C 16C - 8F | |
8D 16 16F 8G 8B 8G 8G + 16C 16C - 8G | |
8C 16 16G 8G + 8C - 8F 8F + 16C 16C - 8F | |
8G 16 16G 16G 8A 16B + 8C - 8G 8C 8 | |
8C 16 16G 8G + 8C - 8F 8F + 16C 16C - 8F | |
8D 16 16F 8G 8B 8G 8G + 16C 16C - 8G | |
8C 16 16G 8G + 8C - 8F 8F + 16C 16C - 8F | |
8G 16 16G 16G 8A 16B + 8C - 8G 8C 8 | |
- 8G# + 16 16D# 8 8G# 8G 16 16C 8 - 8G + | |
- 8G# + 16 16D# 8 8G# 8G 16 16C 8 - 8G + | |
- 8G# + 16 16D# 8 8G# 8G 16 16C 8 - 8G + | |
16D 8D 16D 16 16D 8D 8G 8 - 8G + 8 | |
8C 16 16G 8G + 8C - 8F 8F + 16C 16C - 8F | |
8D 16 16F 8G 8B 8G 8G + 16C 16C - 8G | |
8C 16 16G 8G + 8C - 8F 8F + 16C 16C - 8F | |
8G 16 16G 16G 8A 16B + 8C - 8G 8C 8 | |
8G 16 8E 16 8C 4F 4C# | |
1C | |
} | |
b.tune sound, alto1 | |
b.tune sound, alto2 | |
b.tune sound, bass | |
b.play | |
sleep 1 while !b.stopped? |
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
require 'rubygems' | |
require 'bloops' | |
b = Bloops.new | |
b.tempo = 180 | |
sound = b.sound Bloops::SQUARE | |
sound.volume = 0.5 | |
sound.sustain = 0.3 | |
sound.attack = 0.1 | |
sound.decay = 0.3 | |
alto1 = %q{ | |
+ | |
4:C 8 4:E 4:F# 8:A | |
4:G 8 4:E 4:C - 8:G | |
8:F# 8:F# 8:F# 4:G 8:F# 8:F# 8:G# | |
8 8:F# 8:F# 8:F# 8:G 4:B 8 | |
+ 8:C 8:C 8:C 8:C | |
} | |
alto2 = %q{ | |
1 | |
1 | |
8:E 8:E 8:E 8:E 8 8:E 8:E 8:E | |
8 8:E 8:E 8:E 8:E 4:G# 8 | |
8:F# 8:F# 8:F# 8:G | |
} | |
alto3 = %q{ | |
} | |
bass = %q{ | |
- | |
8:C 8:A - 8:G + 8:A | |
8:C 8:A - 8:G + 8:A | |
8:C 8:A - 8:G + 8:A | |
8:C 8:A - 8:G + 8:A | |
8:C 4 - 8:F# 2 + | |
8:C 4 - 8:F# 2 + | |
- 8:C 8:C 8:C 8:C | |
} | |
b.tune sound, alto1 | |
b.tune sound, alto2 | |
b.tune sound, alto3 | |
b.tune sound, bass | |
b.play | |
sleep 1 while !b.stopped? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment