You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem summary
If there is an unpitched grace note in a measure with multiple voices, the exported musicxml is malformed, with the error being that the 'voice' element is not defined.
Expected vs. actual behavior
The <voice> element should be after the <unpitched> element, but it comes before.
More information
I changed the line helpers.insertBeforeElements(mxNote, mxUnpitched, tagList=['duration', 'type'])
in the unpitchedToXml method in the m21ToXml.py file to have the element 'voice' in the variable tagList and the output was well-formed. Not sure if it can cause a problem elsewhere.
The text was updated successfully, but these errors were encountered:
Eeek but Not surprised -- never thought about unpitched grace-notes esp. w/ voices, but they are so common in percussion parts. Glad to take a fix or will try to work on it later.
music21 version
9.1.0
Problem summary
If there is an unpitched grace note in a measure with multiple voices, the exported musicxml is malformed, with the error being that the 'voice' element is not defined.
Steps to reproduce
Expected vs. actual behavior
The
<voice>
element should be after the<unpitched>
element, but it comes before.More information
I changed the line
helpers.insertBeforeElements(mxNote, mxUnpitched, tagList=['duration', 'type'])
in the
unpitchedToXml
method in them21ToXml.py
file to have the element'voice'
in the variabletagList
and the output was well-formed. Not sure if it can cause a problem elsewhere.The text was updated successfully, but these errors were encountered: