Added a note to fix the behavior when opening a port in OS X: when opening the port, the current data in the input buffer should be flushed (either create a function to do that or read out each MIDI message at the position of the note in the source code for MidiInPort_osx::open().