MusicXML import - misalignment of title text
Summary: When certain MusicXML files, carrying a title object, are opened the title appears centered at the top of the score. But if the score is saved as an MSCx file, and that file opened, the title text is at the left margin.
******
Often in a MusicXML file, the title (in the on-score text, not metadata, sense) is carried in a credit element. There is a Credit type:title sub-element. The title text is in a credit-words sub-element. That includes the attributes default-x and default-y, which give the coordinates at which the text is expected to be placed.
When such a MusicXML file is opened in MuseScore, the title text appears on the reconstructed score centered at the top of the page (as would be for a title actually applied in a score constructed in MuseScore).
When that score is saved, in the MSCx file this object is carried in a VBox element, associated with the first staff, with the title text in a Text subelement, in a text subelement of that. The Text subelement does not include a style:Title subelement (as would the VBox element for the title in a MusicXML file exported from a MuseScore score in which a title had been included).
The result is that if we open that MSCx file, the title text appears at the top left corner of the score page margins.
It would seem desirable that in such a case, with the title element clearly tagged as such in the MusicXML file, the MSCx file would tag the resulting VBox element with a style:Title subelement, which I think would cause this text to be placed on the score in the normal location for the title.
A wholly parallel situation obtains with regard to the subtitle, if present.
Attached is a test MusicXML file (with both title and subtitle objects) that can be used to demonstrate this situation.
Doug
Attachment | Size |
---|---|
Test_items_test-2052.musicxml | 6.97 KB |
Comments
Thanks for your post Doug.
I've noticed the same issue with title placement when opening MusicXML and saving to MuseScore format.
MuseScore 3.5.0.28145 Alpha rfb3c202
In reply to Thanks for your post Doug. I… by scorster
The Alpha is outdated since quite a while now, 3.5.0 got officially released a couple weeks ago
In reply to The Alpha is outdated since… by Jojo-Schmitz
Thanks!
Sure enough, the stable 3.5.0 release came out Aug 6. My original download was on August 3rd so got the Alpha.
I ran the update check regularly and over the last few weeks, after 3.5.0.28145 the checker always said I was up to date. Does the Alpha update checker only looking for the most recent alpha?? If so, nice if it also informs about available stable updates.
Thanks again,
scorster
In reply to Thanks! Sure enough, the… by scorster
The Alpha is certainly more than just 3 days older then the final release, but indeed it does only look for a newer Alpha I think, not even for the Betas or RCs
See #309949: [MusicXML import] guess page one credit words type and #309950: [MusicXML import] fix title frame position
In reply to See #309949: [MusicXML… by Jojo-Schmitz
There is already a pending pull request (https://github.com/musescore/MuseScore/pull/6542) which mostly restores the pre 3.5 behaviour (currently subtitle is not styled, other credit-words are handled as in 3.4.2). When I implemented the 3.5 change, I was not aware that text style is required for correct positioning. Will also add subtitle style to PR6542.