Skip to content

Commit dc9f91d

Browse files
committed
import coda and segno symbols
1 parent 05266c1 commit dc9f91d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/importexport/musicxml/internal/musicxml/import/importmusicxmlpass2.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4026,10 +4026,20 @@ void MusicXmlParserDirection::directionType(std::vector<MusicXmlSpannerDesc>& st
40264026
} else if (m_e.name() == "wedge") {
40274027
wedge(type, n, starts, stops);
40284028
} else if (m_e.name() == "coda") {
4029-
m_wordsText += u"<sym>coda</sym>";
4029+
const String smufl = m_e.attribute("smufl");
4030+
if (!smufl.empty()) {
4031+
m_wordsText += u"<sym>" + smufl + u"</sym>";
4032+
} else {
4033+
m_wordsText += u"<sym>coda</sym>";
4034+
}
40304035
m_e.skipCurrentElement();
40314036
} else if (m_e.name() == "segno") {
4032-
m_wordsText += u"<sym>segno</sym>";
4037+
const String smufl = m_e.attribute("smufl");
4038+
if (!smufl.empty()) {
4039+
m_wordsText += u"<sym>" + smufl + u"</sym>";
4040+
} else {
4041+
m_wordsText += u"<sym>segno</sym>";
4042+
}
40334043
m_e.skipCurrentElement();
40344044
} else if (m_e.name() == "eyeglasses") {
40354045
m_wordsText += u"<sym>miscEyeglasses</sym>";

0 commit comments

Comments
 (0)