Realtime MIDI IO with Ruby for OSX
Note that in the interest of allowing people on other platforms to utilize your code, you should consider using unimidi. Unimidi is a platform independent wrapper that implements this library and has a similar API.
-
Simplified API
-
Input and output on multiple devices concurrently
-
Agnostically handle different MIDI Message types (including SysEx)
-
Timestamped input events
-
Internally patch MIDI to other programs using IAC (and MIDI Patch Bay if you’re using OSX Snow Leopard or earlier)
-
ffi (gem install ffi)
gem install ffi-coremidi
-
Ari Russo <ari.russo at gmail.com>
This library began with some coremidi/ffi binding code for MIDI output by
-
Colin Harris – github.com/aberant
contained in his fork of MIDIator and a blog post
MIDIator is ©2008 by Ben Bleything and Topher Cyll and released under the MIT license (see LICENSE.midiator and LICENSE.prp)
Also thank you to Jeremy Voorhis for some useful debugging
Apache 2.0, See the file LICENSE
Copyright © 2011 Ari Russo