Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 322 Bytes
require 'coremidi'
require 'midi_in'
require 'rubygems'
require 'active_support'
midi_in = MidiIn.new
midi_in.scan
midi_in.link(0)
midi_in.capture do |messages|
messages.each do |message|
next unless message.respond_to? :note_number
system("open http://boingboing.net") if 60 == message.note_number
end
end