Skip to content

Instantly share code, notes, and snippets.

@jdunphy
Created February 13, 2009 03:28
Show Gist options
  • Save jdunphy/63024 to your computer and use it in GitHub Desktop.
Save jdunphy/63024 to your computer and use it in GitHub Desktop.
# bloopsaphone won my heart
require '../bloopsaphone/ext/ruby/bloops'
# the song object
b = Bloops.new
b.tempo = 320
saw = b.sound Bloops::SAWTOOTH
b.tune saw, "c5 b4 2:a4 b a 2:g a g f e 1:g 8:e 8:d c d 2:e d e 2:f g a b a 1:g
c5 b4 2:a4 b a 2:g a g f e 1:g 8:e 8:d c d 2:e d e 2:f g a b g 1:c5
c4 d d# e c3 d d# e c4 d e f c3 d e f c4 d e g c3 d e g c4 d e a c3 d e a"
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