[MusicXML Import] Request to support non-standard "double-flat" tag
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S5 - Suggestion
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project
Attempt to import MusicXML file with "double-flat" in the note description field:
double-flat. MuseScore throws an error: " is not a valid MusicXML file."
Sometimes this crashes MuseScore.
I checked with the MusicXML standard at W3C, and both notations should be valid. The link is
https://www.w3.org/2021/06/musicxml40/musicxml-reference/data-types/acc…
MuseScore correctly imports the same indication when
flat-flat
is used.
For me, this is an annoyance, as I move MusicXML files between programs. It is not a "stopper", but does require the use of a text editor.
Thanks!
Attachment | Size |
---|---|
Bad-double-flat.musicxml | 8.99 KB |
good-flat-flat.musicxml | 8.99 KB |
Comments
(you're all but one)
Relates to #270643: [EPIC] MusicXML import/export issues
Should be a rather easy fix, check ...src/importexport/musicxml/internal/musicxml/musicxmlsupport.cpp, line 528
On that https://www.w3.org/2021/06/musicxml40/musicxml-reference/data-types/acc… I don't see any mention of
double-flat
, so indeed its use is causing an invalid MusicXML fileAlthough indeed, as the code I pointed to above does mention:
// shouldn't harm, but doesn't exist in MusicXML
Indeed, double-flat does not seem valid according to the spec, so best to file a bug report against whatever program generated that.
Meanwhile, instead of individually editing each file on by one to correct the error, it would probably be possible to have a script that fixes a whole batches of files at once. If you ask for help on the Support forum and say what OS you are on, someone might be able to help with that.
And interestingly,
double-sharp
andsharp-sharp
are different in MusicXML (a double sharp resp. 2 sharps), but treated the same (as a double sharp) in MuseScore.That doesn't seem right to me.
sorry
Seeking clarification: that Bad-double-flat.musicxml, while claiming to have been created from MuseScore 3.6.2, was hand-edited, to have that
double-flat
, for demo purposes, hasn't it?What software then is creating such (apparently invalid) MusicXML?
Yes, I noticed also that the file claimed to have been generated by MuseScore, but a quick test verifies we export correctly (flat-flat). So I also assume that sample file was hand-edited, to provide a simple test case.