Skip to content

Commit

Permalink
Place converted analytical ties in the starting measure. Fixes rism-d…
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Nov 15, 2023
1 parent 50fcdab commit c06bd25
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/convertfunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,14 @@ FunctorCode ConvertMarkupAnalyticalFunctor::VisitNote(Note *note)
}
tie->SetStartid("#" + (*iter)->GetID());
tie->SetEndid("#" + note->GetID());
m_controlEvents.push_back(tie);
// Try to add it to the starting measure
Object *startMeasure = (*iter)->GetFirstAncestor(MEASURE);
if (startMeasure) {
startMeasure->AddChild(tie);
}
else {
m_controlEvents.push_back(tie);
}
}
else {
LogWarning("Expected @tie median or terminal in note '%s', skipping it", note->GetID().c_str());
Expand Down

0 comments on commit c06bd25

Please sign in to comment.