Skip to content

Commit

Permalink
Allow adding partial melismas to 2nd time bars
Browse files Browse the repository at this point in the history
  • Loading branch information
miiizen committed Jan 14, 2025
1 parent 27c0d6b commit 1f650ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/notation/internal/notationinteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6239,6 +6239,7 @@ void NotationInteraction::addMelisma()
ChordRest* nextCR = toChordRest(nextSegment->element(track));

// Disallow melisma lines between non-adjacent repeat sections eg. 1st volta -> 2nd volta
// Instead, try to add partial melisma line
if (nextCR && fromLyrics) {
Measure* toLyricsMeasure = nextCR->measure();
Measure* fromLyricsMeasure = fromLyrics->measure();
Expand All @@ -6247,7 +6248,7 @@ void NotationInteraction::addMelisma()
const std::vector<Measure*> previousRepeats = findPreviousRepeatMeasures(toLyricsMeasure);
const bool inPrecedingRepeatSeg = muse::contains(previousRepeats, fromLyricsMeasure);
if (!previousRepeats.empty() && !inPrecedingRepeatSeg) {
return;
fromLyrics = nullptr;
}
}
}
Expand Down

0 comments on commit 1f650ba

Please sign in to comment.