Everything comes up as "Text"

• Aug 26, 2020 - 12:36

I have scanned XML's & when I load them into MS2 (& recent MS3) it can identify the Title and Composer etc. The same XML's in the latest MS says everything is just 'Text'. 422.xml


In reply to by Craig Mac

Understood, I'm not saying it isn't a bug. But everything I wrote is true - others files do import titles correctly. So somehow, your file is formatted differently from others. It might indeed be that even though different, it's also correct, and that we are not handling it correctly anymore. But it might also be that it is actually incorrect and we were simply ignoring the error before but not anymore. As I said, I don't know enough about MusicXML to say. More investigation is needed by someone who understands MusicXML better.

In reply to by Jojo-Schmitz

@Jojo, you are right, this is indeed a consequence of PR5666. As the previous behaviour was incorrect and the current implementation behaves exactly as I designed it, I am reluctant to call this a regression. I do agree there may be an opportunity for further improvements.

@Craig, unfortunately, the previous MuseScore releases are not right at all. They did try to detect title, subtitle, composer and lyricist, but failed quite often. If you open your file in 3.4.2, you will notice that the title is detected correctly, but the copyright line is detected as subtitle. The remaining footer texts are incorrectly detected as composer and lyricist. The underlying reason is that MusicXML contains text position and formatting, but not the text type. As of 3.5.0 the guessing has been removed, all text present in the MusicXML file is imported as correctly formatted but unstyled text into vboxes at the correct location.

In case anyone has a suggestion how to improve on this, I'd be interested to know. Keep in mind that MusicXML does not contain the meaning of a text. Furthermore, text locations are fixed page locations, meaning they will probably be incorrect after a relayout. Finally, it would be quite hard to detect headers and footers in MusicXML and non-trivial to fit those into MuseScore's header and footer, due to the way those are designed.

In reply to by Leon Vinken

One thing I forgot to mention: the MusicXML file explicitly specifies the text position as at the bottom of the page. Once again, feel free to suggest improvements, but be aware those would have to work correctly for most MusicXML files found in the wild, not just for a single specific case.

In reply to by Jojo-Schmitz

A feature request perhaps. But Leon stated quite clearly:
"The underlying reason is that MusicXML contains text position and formatting, but not the text type."

So MusicXML itself has to evolve in order to apply different identifiers (text type) to all these "text" elements used in the title preliminaries - like dedication, title, subtitle, composer, lyricist, translator, opus number, instrumentation, dates of birth and death. Until then we can't expect a resolution or a more effective fix from Leon.

In reply to by Jojo-Schmitz

The MusicXML schema allows it as of MusicXML 3.0, by using the credit-type element. Its content is free format text, which leaves room for compatibility problems, but Finale (using Dolet) exports sane values (title, composer etc.).

Sibelius does not export this information (lets call that a deficiency instead of a bug as the spec does not require it).

MuseScore also does not yet support this on either import or export, submitted #309702: [MusicXML import/export] support credit-type element

In reply to by Leon Vinken

I can't claim to be an expert, but as regards MusicXML imports my view is:
#309949: [MusicXML import] guess page one credit words type
Title should be the largest font used.
Lyricist is on the left.
Composer is on the right.
Dedication is a lot more difficult: it's often absent, often in the smallest font used, often (but not always) at the top.
#309950: [MusicXML import] fix title frame position
The title info properly belongs at the top, and I cannot imagine why the Sibelius developers thought it appropriate to relegate this info to the end...

[OT] And as regards MusicXML exports, we should use the credit words to the maximum extent, so that MuseScore leads the field!

Do you still have an unanswered question? Please log in first to post your question.