Problems with rehearsal marks in musicxml files

Dorico 6.2.30 exports custom rehearsal marks as <rehearsal> elements containing arbitrary text. When the exported MusicXML is re-imported into Dorico, rehearsal texts consisting of more than one character (e.g. “Intro”, “XYZ1234”) are replaced by automatically generated rehearsal letters, while single-character texts are preserved. This prevents a lossless MusicXML roundtrip.

Steps to reproduce:

  • Create rehearsal marks with custom text, e.g. “Intro” or “XYZ1234”.
  • Export the project as MusicXML.
  • Inspect the MusicXML file. Dorico exports:

<rehearsal enclosure="rectangle">Intro</rehearsal>

<rehearsal enclosure="rectangle">XYZ1234</rehearsal>

  • Import the same MusicXML file back into Dorico.

Result:

  • Single-character rehearsal marks such as “A” or “B” are preserved.
  • Multi-character rehearsal marks such as “Intro”, “XYZ1234” or “Chorus” are replaced by automatically generated rehearsal letters.

Expected result:

Dorico should preserve the text content of MusicXML <rehearsal> elements that it exported itself, allowing a lossless MusicXML export/import roundtrip.

rehearsal_problem.musicxml (8,7 KB)

Reahrsal Dorico File.dorico (462,7 KB)

1 Like