MIDIator is a nice, accessible way to make music from your code. It was inspired by Topher Cyll’s fantastic Practical Ruby Projects book. In it, Topher describes how to interact with the MIDI providers in OSX, Linux, and Windows. As I was reading the book, I noticed some things I would do differently, which got me thinking that maybe it would be valuable to package up my modifications to the book’s code and release it as a gem.
As of March 2012, I am no longer maintaining midiator. If you’re looking for an alternative, please check out Ari Russo’s project unimidi.
gem install midiator
git clone https://github.com/bleything/midiator