from http://openpear.org/package/IO_MIDI