Skip to content

Commit

Permalink
Fix MusicXML ties ending before the starting notes
Browse files Browse the repository at this point in the history
  • Loading branch information
paxbun committed Oct 20, 2023
1 parent 3accf44 commit 33ac21f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/iomusxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1702,6 +1702,9 @@ bool MusicXmlInput::ReadMusicXmlMeasure(

this->MatchTies(true);
if (!m_tieStack.empty()) this->MatchTies(false);
for (auto openTie : m_tieStack) {
openTie.m_note->SetScoreTimeOnset(-1); // make scoreTimeOnset small for next measure
}

// clear stop stacks after each measure
m_hairpinStopStack.clear();
Expand Down Expand Up @@ -1758,7 +1761,6 @@ void MusicXmlInput::MatchTies(bool matchLayers)
m_tieStopStack.erase(jter);
}
else {
iter->m_note->SetScoreTimeOnset(-1); // make scoreTimeOnset small for next measure
++iter;
}
}
Expand Down

0 comments on commit 33ac21f

Please sign in to comment.