[MusicXML] Ties in cue notes

• Nov 25, 2021 - 05:16
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

Hello,

We bumped into ill-formed MusicXML data in the attached file, that comes from the MuseScore repository. It was created by :
MuseScore 2.1.0

The problem is that it contains several elements in cue notes, starting at line 134434:

      E
      4

    18

    1
    quarter

    up

Opening this file leads to an error message alright, but exporting to MusicXML retains this feature.

HTH!

Jacques Menu


Comments

embed that xml in <xml>...</xml> to have them readable here

The error message on the mxl import is:

Fatal error: line 134434 column 27 Element tie is not defined in this scope.

The xml code at that place is:

      <note default-x="253.30" default-y="-1146.30">
        <cue/>
        <pitch>
          <step>E</step>
          <octave>4</octave>
          </pitch>
        <duration>18</duration>
        <tie type="start"/><<<<<<<<<<<<<<<<<<<<<<<<<<<<here
        <voice>1</voice>
        <type>quarter</type>
        <dot/>
        <stem>up</stem>
        <notations>
          <tied type="start"/>
          </notations>
        </note>
Title Ties in cue notes [MusicXML] Ties in cue notes
Status needs info active

But yes, downloading that mscz, exporting as xml and importing it back does lead to that error and in more than one place

Forgot to remove or quote the less than / greater than symbols. Text should have been "Cue notes have a duration element, as do forward elements, but no tie elements".

Indeed the current MusicXML exporter (both 3.x and master) happily generates tie elements for cue notes. Preventing this solves the issue, which is a trivial fix.