Stream interface for MIDI messages