Crash on import of MusicXML (tuplets?)

• Sep 26, 2014 - 14:29
Type
Functional
Severity
S5 - Suggestion
Status
closed
Project

on import this message occurs :
Fatal error : .... Content of element midi-program does not match its type definition : 0 is not valid according to xs;positiveInteger.
The data in the XML file is the following : 0


Comments

Title XMLl Import midi-program parameter Crash on import of MusicXML (tuplets?)

The error message appears valid- if the spec says something is supposed to be a positive integer, then 0 is indeed not legal. But if you try to load it anyhow, it crashes. But the crash appears to be unrelated to anything about the MIDI program value - it's something about tuplets apparently. I've updated the title and priority of the report.

Cause of the crash is that the second (!) piano part in the XML file incorrectly refers to staff 2, while it actually is a single staff part, as no staves element with value 2 is present.

After adding a "staves 2" element the resulting file (attached) does import. It then shows two piano parts, with the second one having no notes in its upper staff. This leads to the conclusion that we are probably dealing with an incorrectly encoded single piano part.

Please report this to Cubase.

Further notes:
The error message is justified, as midi program numbers in MusicXML are numbers ranging from 1 to 128, while the file specifies 0.
Many tuplet errors are reported, but I did not investigate these.

Attachment Size
Lullaby of Birdland fixed.xml 1.08 MB