Created
July 20, 2010 19:32
-
-
Save evanfarrar/483429 to your computer and use it in GitHub Desktop.
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
instrument :bass do | |
type 0 | |
volume 0.4 | |
sustain 0.1 | |
attack 0.1 | |
decay 0.3 | |
end | |
instrument :laser do | |
type 0 | |
sweep 0.12 | |
sustain 0.11 | |
punch 0.09 | |
decay 0.23 | |
freq 0.76 | |
slide -0.42 | |
square 0.08 | |
limit 0.08 | |
end | |
instrument :jump do | |
type 0 | |
sustain 0.32 | |
decay 0.27 | |
freq 0.58 | |
slide 0.15 | |
square 0.34 | |
end | |
song do | |
bass "A B C E" * 3 | |
laser "A C B E" * 3 | |
jump "4A 4 4A 1 C 1" * 2 | |
end.play |
It's actually a hacketyhack program, but hacketyhack thinly wraps bloopsaphone with some builders so that you don't have to manage any object state directly. This is not a very good song, something I played with at why's art&&code lesson, but I was using it to show how all these undocumented methods work: http://github.com/hacketyhack/hacketyhack/issues#issue/31
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is this bloopsophone code?