[MusicXML import/export] incorrect handling of small notes, grace notes and cue notes

• Feb 19, 2020 - 06:38
Reported version
3.4
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

Comments

One issue identified: when "small" is set on the chord of a grace note, a "cue" element is incorrectly (also) generated, which is not allowed by the MusicXML schema.

Title [MusicXML export] invalid XML export: element tie is not defined in this scope [MusicXML import/export] incorrect handling of small notes, grace notes and cue notes

After fixing the small grace note issue, MuseScore exports valid MusicXML. Also see #290764: MuseScore saves out invalid MUSICXMl file.

Further investigation shows the following issues with small notes, grace notes and cue notes:
- cue notes are not imported as silent (non-playing)
- all small note are exported as cue notes instead of only silent small notes
- small grace notes are exported with both grace and cue elements, which MusicXML does not allow

Status PR created fixed

Fixed in branch master, commit 2f2e72efdb

_fix #290764: MuseScore saves out invalid MUSICXMl file
fix #301320: [MusicXML import/export] incorrect handling of small notes, grace notes and cue notes

Fix the following issues with small notes, grace notes and cue notes:
- cue notes are not imported as silent (non-playing)
- all small note are exported as cue notes instead of only silent small notes
- small grace notes are exported with both grace and cue elements, which MusicXML does not allow_

Fix version
3.5.0