Skip to content

Commit

Permalink
add support for tap
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Feb 28, 2025
1 parent 7cd1c72 commit 35a13dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3314,6 +3314,12 @@ static String symIdToTechn(const SymId sid)
case SymId::pluckedSnapPizzicatoBelow:
return u"snap-pizzicato";
break;
case SymId::guitarLeftHandTapping:
return u"tap hand=\"left\"";
break;
case SymId::guitarRightHandTapping:
return u"tap hand=\"right\"";
break;
case SymId::keyboardPedalHeel1:
case SymId::keyboardPedalHeel2:
case SymId::keyboardPedalHeel3:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8304,6 +8304,11 @@ void MusicXmlParserNotations::technical()
harmonMute();
} else if (m_e.name() == "hole") {
hole();
} else if (m_e.name() == "tap") {
id = (m_e.attribute("hand") == u"left") ? SymId::guitarLeftHandTapping : SymId::guitarRightHandTapping;
m_notations.push_back(Notation::notationWithAttributes(String::fromAscii(m_e.name().ascii()),
m_e.attributes(), u"technical", id));
m_e.skipCurrentElement(); // skip but don't log
} else if (m_e.name() == "other-technical") {
otherTechnical();
} else {
Expand Down

0 comments on commit 35a13dc

Please sign in to comment.