Skip to content

Instantly share code, notes, and snippets.

@josephwilk
Last active January 1, 2016 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephwilk/8196988 to your computer and use it in GitHub Desktop.
Save josephwilk/8196988 to your computer and use it in GitHub Desktop.
dir = File.dirname(File.expand_path(__FILE__))
$LOAD_PATH.unshift dir + '/../lib'
require 'midi-jruby'
MIDIJRuby::Input.first.open do |input|
while true do
m = input.gets
$>.puts(m.inspect)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment