musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.39k stars 2.68k forks source link

[MU4 Issue] MusicXML: no useful result when trying to open an uncompressed MusicXML file with the wrong extension (mxl instead of musicxml or xml) #13087

Open SilverGreen93 opened 2 years ago

SilverGreen93 commented 2 years ago

Describe the bug Open an older MusicXML v2.0 file. Musescore reports invalid format and cannot open.

To Reproduce Steps to reproduce the behavior:

  1. Open attached mxl file. Clementi11.zip

Expected behavior The file should import fine. Other notation software such as Finale opens it without problems.

Platform information Windows 11

Wim4rk commented 2 years ago

Neither MU4 or MU3 opens said file.

lvinken commented 2 years ago

The mxl file contained in the zip does not comply with the recommendation to use extension musicxml for uncompressed MusicXML files and mxl for compressed files: it is an uncompressed MusicXML file. Changing the extension to xml or musicxml allows import.

MuseScore assumes the extension correctly identifies compressed versus uncompressed files. Apparently Finale checks and adapts its behaviour accordingly.

SilverGreen93 commented 2 years ago

Thanks @lvinken. Renaming the file to Clementi11.musicxml works. I understand the reasoning, but maybe it would be nice for MU4 to warn about this issue and ask the user to rename the file.