Music types and conversion function for Midi file.