Skip to content

Commit

Permalink
Merge pull request rism-digital#3746 from rettinghaus/develop-musicxml
Browse files Browse the repository at this point in the history
Add support for numeral harmonics in MusicXML
  • Loading branch information
lpugin authored Sep 2, 2024
2 parents f2ed10d + 900142c commit 450010d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/iomusxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2591,6 +2591,11 @@ void MusicXmlInput::ReadMusicXmlHarmony(pugi::xml_node node, Measure *measure, c

std::string harmText = GetContentOfChild(node, "root/root-step");
pugi::xpath_node alter = node.select_node("root/root-alter");
if (harmText.empty()) {
pugi::xml_node numeral = node.select_node("numeral/numeral-root").node();
harmText = numeral.attribute("text") ? numeral.attribute("text").as_string() : numeral.text().as_string();
alter = node.select_node("numeral/numeral-alter");
}
if (alter) harmText += ConvertAlterToSymbol(GetContent(alter.node()));
pugi::xml_node kind = node.child("kind");
if (kind) {
Expand Down

0 comments on commit 450010d

Please sign in to comment.