Added MIDI format 1 read/write support.