-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #313105: "No chord" MusicXML import #6888
Conversation
if (ee.hasAttribute("text")) { | ||
QString rtext = ee.attribute("text"); | ||
if (rtext == "") { | ||
if (_e.attributes().hasAttribute("text")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this means if the kind tag appears before the root-step tag, and there is no "none" on the root-step, we end up setting the root tpc after all. That's probably a reasonable interpretation of a somewhat ambiguous spec anyhow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking more about it, I would have preferred to only rely on kind=="none"
to signal an invalid root, since that much is clear. Happy to play it however you see fit though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything more to do here on my side?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind before root-step would not be a valid MusicXML file, the schema does not allow that.
The root-step element is a child of the root element, which must be before the kind element.
@lvinken Mind to have a look? |
Will have a look. |
Checked, looks fine to me. |
Resolves: https://musescore.org/en/node/313105
This fix imports a MusicXML
harmony
element withkind=none
to signify a "no chord" (invalid root) on the MuseScore sheet as per forum discussion.