Skip to content
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

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Apr 25, 2024

This sets a note's NoteHeadScheme to HEAD_PITCHNAME when the value of the <notehead> tag is "named".

Screenshot 2024-04-25 at 16 22 15

@miiizen miiizen changed the title Set notehead scheme from XML notehead tag Set notehead scheme from XML <notehead> tag Apr 25, 2024
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 25, 2024
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 25, 2024
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 25, 2024
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 25, 2024
@@ -5957,6 +5958,8 @@ Note* MusicXMLParserPass2::note(const String& partId,
auto noteheadValue = m_e.readText();
if (noteheadValue == "none") {
hasHead = false;
} else if (noteheadValue == "named") {
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz Apr 25, 2024

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.

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see, thanks

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 26, 2024
@RomanPudashkin RomanPudashkin merged commit e6fd458 into musescore:master Apr 26, 2024
11 checks passed
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

4 participants