[MusicXML] glissando color not imported or exported.

• Jul 6, 2021 - 06:31
Reported version
S4 - Minor

See testfile testArpGliss3.xml. Imports correctly in 2.0.2, fails in 3.5.2 and 3.6.2, probably also in master.
The autotester does not catch this.

Cause seems to be that the importer uses Glissando::setColor() which calls Spanner::setColor(), instead of Glissando::setProperty(Pid::COLOR, ...) which calls SLine::setProperty().

Relates to #270643: [EPIC] MusicXML import/export issues


Title [MusicXML import] glissando color not imported [MusicXML] glissando color not imported or exported.

Also see the attached file colored_glissandos.mscx, glissando colors are not exported to MusicXML.

Attachment Size
colored_glissandos.mscx 11.33 KB

In reply to by Leon Vinken

This problem may not be limited to glissando color. I have also had this problem when copying phrases within a score.
I use color when creating a simplified conductor's score - two to four lines instead of about 20. I use color to differentiate groups of instruments. If I copy a phrase within the simplified score (instead of copying the lead part and recoloring it), all the color is not always copied. In particular:
1. Staff text color may be copied, but that appears to be dependent on whether the whole text was colored or the text was colored while being edited. I have noticed this but not tested to determine when the text color is or isn't copied.
2. The color of glissandi and some other 'ornaments' (this may include Ornaments, Articulations, and others) doesn't copy.
3. The color of slurs and ties does not copy. Today, trying to correct the color of slurs and ties caused an uncaught exception (Musescore exited without any crash dialog). Though serious, the infrequency of this crash may not justify changing the severity. However, looking for the cause of the crash may change the status from "Solution known" to "Needs more work".
Not copying color also appears to affect parts. When a colored phrase is copied within the full score, in a part, the ties, slurs, and ornaments remain in black. This is also true for the reverse - copying the phrase in a part and viewing the copied phrase in the score or another part.

Though most of this can be worked around (all but the crash), I am hopeful that this has been or will be fixed in the next major release.