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 9, 2025
1 parent 7597af9 commit 443f9d0
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 @@ -6246,6 +6246,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 @@ -6254,7 +6255,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 443f9d0

Please sign in to comment.