-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Set notehead scheme from XML <notehead>
tag
#22576
Conversation
notehead
tag<notehead>
tag
6689526
to
99cdf4a
Compare
@@ -5957,6 +5958,8 @@ Note* MusicXMLParserPass2::note(const String& partId, | |||
auto noteheadValue = m_e.readText(); | |||
if (noteheadValue == "none") { | |||
hasHead = false; | |||
} else if (noteheadValue == "named") { |
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.
Such a notehead type doesn't exist in MusicXML, see https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/notehead/ and https://www.w3.org/2021/06/musicxml40/musicxml-reference/data-types/notehead-value/
Esp. this:
Noteheads in the SMuFL Note name noteheads and Note name noteheads supplement ranges (U+E150–U+E1AF and U+EEE0–U+EEFF) should not use the smufl attribute or the other value, but instead use the <notehead-text>
element.
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.
Apologies, this is an out of spec case for a single exporter
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.
Ah, I see, thanks
99cdf4a
to
c1b1e9e
Compare
c1b1e9e
to
52306e3
Compare
This sets a note's
NoteHeadScheme
toHEAD_PITCHNAME
when the value of the<notehead>
tag is "named".