read midi file headers