added osx MIDI compatibility