Skip to content

Commit

Permalink
add export for smufl noteheads
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Sep 30, 2023
1 parent 5791ea7 commit 1bd0f6a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/importexport/musicxml/internal/musicxml/exportxml.cpp
Expand Up @@ -3569,6 +3569,8 @@ static void writeNotehead(XmlWriter& xml, const Note* const note)
xml.tagRaw(noteheadTagname, "cross");
} else if (note->headGroup() == NoteHeadGroup::HEAD_CROSS) {
xml.tagRaw(noteheadTagname, "x");
} else if (note->headGroup() == NoteHeadGroup::HEAD_CIRCLED) {
xml.tagRaw(noteheadTagname, "circled");
} else if (note->headGroup() == NoteHeadGroup::HEAD_XCIRCLE) {
xml.tagRaw(noteheadTagname, "circle-x");
} else if (note->headGroup() == NoteHeadGroup::HEAD_TRIANGLE_DOWN) {
Expand Down Expand Up @@ -3599,6 +3601,10 @@ static void writeNotehead(XmlWriter& xml, const Note* const note)
xml.tagRaw(noteheadTagname, "normal");
} else if (note->headType() != NoteHeadType::HEAD_AUTO) {
xml.tagRaw(noteheadTagname, "normal");
} else if (note->headGroup() != NoteHeadGroup::HEAD_NORMAL) {
AsciiStringView noteheadName = SymNames::nameForSymId(note->noteHead());
noteheadTagname += QString(" smufl=\"%1\"").arg(noteheadName.ascii());
xml.tagRaw(noteheadTagname, "other");
}
}

Expand Down

0 comments on commit 1bd0f6a

Please sign in to comment.