diff --git a/src/convertfunctor.cpp b/src/convertfunctor.cpp index fd83e367bd3..3a77cfb6588 100644 --- a/src/convertfunctor.cpp +++ b/src/convertfunctor.cpp @@ -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());