Skip to content

Commit

Permalink
take numeral-alter into account
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Aug 26, 2024
1 parent b5a1ac3 commit 900142c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/iomusxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2590,11 +2590,12 @@ void MusicXmlInput::ReadMusicXmlHarmony(pugi::xml_node node, Measure *measure, c
int durOffset = 0;

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");
}
pugi::xpath_node alter = node.select_node("root/root-alter");
if (alter) harmText += ConvertAlterToSymbol(GetContent(alter.node()));
pugi::xml_node kind = node.child("kind");
if (kind) {
Expand Down

0 comments on commit 900142c

Please sign in to comment.