[MusicXML import] [trunk] import error: 45e-Repeats-Nested-Alternatives.xml: repeat start missing

• Feb 9, 2012 - 21:39
S4 - Minor

File 45e-Repeats-Nested-Alternatives.xml in Reinhold Kainhofers unofficial MusicMXL testsuite imports without the "repeat start" in measure 5.


I can confirm that exporting a single measure from MuseScore with start and end repeats and then reimporting it causes the start repeat to be removed (and the end repeat is displayed too far to the right). Thanks. m

My students suggest that it may only be a problem in the Windows build of version 1.2 and only if the barline style for the opening repeat is not set to "heavy-light".

Status (old) active patch (ready to commit)

A patch is available on https://github.com/musescore/MuseScore/pull/2309
or https://github.com/pcolot01/MuseScore/tree/14884-singlemeasurerepeat

During the MusicXML import, the managing of measures only expected measures as start or end of repeat but not both.

The musescore API is able to manage measures with start and end repeat bounderies.

During the second XML parsing, during measure parsing, I initialized the measure repeat flag to REPEAT::NONE and during the barline parsing, I update the repeat status by adding the property with measure->setRepeatFlag() in place of overloading the current status using measure->setRepeatFlags()