-
-
Save emmasteimann/5242242 to your computer and use it in GitHub Desktop.
Revisions
-
James Welsh created this gist
Mar 25, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ #!/usr/bin/ruby # brew install portaudio # gem install bloopsaphone require 'bloops' # the bloops o' phone bloops = Bloops.new bloops.tempo = 150 # beats simpsons = bloops.sound Bloops::SQUARE # Simpsons bloops.tune simpsons, "32 + C E F# 8:A G E C - 8:A 8:F# 8:F# 8:F# 2:G" input = ARGV[0] || 'heroku logs --tail --app dev-instacanvas' matcher = ARGV[1] || '/my-cart/complete' IO.popen(input) do |io| io.each do |out| if out.match matcher bloops.play puts out end end end