midi file and midi file buffer