Music XML Import/Export Issues

• Jun 15, 2022 - 23:54

Hello, I just finished a score with Musescore and just for fun I exported it using the MusicXML export feature. I then tried to import the newly created XML file into musescore but I get an error. The error states that it is a Fatal error on line 13954 column 14 Element bass is not defined in this scope. Why would a score that I just created in musescore and exported using its MusicXML feature then have a fatal error when reading that file back. I closed musescore after I exported the file and then restarted just in case. Eventhough it states a fatal error the file will load but if I try to load it into another program that excepts XML it does not work....Suggestions ??? Thanks in advance.....mark


Comments

In reply to by marksmusik

It's definitely a bug if MuseScore exports something it can't import. On the surface, I don't see what's invalid about the line MuseScore complains about. For the record, it's the chord symbol in bar 5. Somehow it doesn't like the combination of the "add4" and the "/Ab", but it's not obvious what is wrong to me. Are you saying others program complain about it too?

In reply to by Marc Sabatella

Yes another program complains as well. I am trying out Sibelius First and it won't import the file. It says that the file isn't a valid MusicXML file and won't try to import it but hangs up until I cancel the import. I suppose I can try to edit the score and remove those types of chord extensions. However I would think that musescore would give me an error when trying to use those extensions if they are not valid program capabilities.....thanks for your help!

In reply to by marksmusik

Please report in the issue tracker
Edit: actually don't, see #320818: Chord symbols with a bass extension don't export to MusicXML correctly (nor import back)

'Culprit' xml, the <bass> tag:

      <harmony print-frame="no">
        <root>
          <root-step>C</root-step>
          </root>
        <kind text="m7" parentheses-degrees="yes">minor-seventh</kind>
        <degree>
          <degree-value>4</degree-value>
          <degree-alter>0</degree-alter>
          <degree-type>add</degree-type>
          </degree>
        <bass>
          <bass-step>A</bass-step>
          <bass-alter>-1</bass-alter>
          </bass>
 

As per https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/bass/ it seems legal though

Edit: but needs to be in a different order! First bass, then degree

I can't understand why this issue is not fixed. The export module of MS 4 is messy when exporting chords with different bass note. So I can't use this version, because I often need such chords and I always export to XML as a backup-file if there will be something wrong in a MuseScore file (remember that in MS 4 there sometimes are crashes and the file then will be corrupt). I know MuseScore is free, but a version with the same issue for months is no good recommendation.

In reply to by hkobl

@ hkobl, please understand that many people working on MuseScore are unpaid volunteers, working for free in their spare time with no obligation whatsoever to immediately fix your favorite bug. This applies to a significant part of the work done on MusicXML import/export.

Do you still have an unanswered question? Please log in first to post your question.