Haskell types for Music, function to convert to Midi file