Skip to content

Commit

Permalink
Merge pull request #3951 from rism-digital/develop-fix-neumes
Browse files Browse the repository at this point in the history
Develop fix neumes
  • Loading branch information
lpugin authored Feb 13, 2025
2 parents 8243030 + d782bbb commit b7df70e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/convertfunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ bool ConvertToCastOffMensuralFunctor::IsValidBreakPoint(const Alignment *alignme
}
// When we have more than one neume in a syllable, every neume has its own alignment.
// Only the first one, which is shared with the syllable, is a valid break point
if (child->FindDescendantByType(NEUME) && !child->FindDescendantByType(SYLLABLE)) {
if (child->FindDescendantByType(NC) && !child->FindDescendantByType(SYLLABLE)) {
return false;
}
}
Expand Down
5 changes: 5 additions & 0 deletions src/layerelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,11 @@ Fraction LayerElement::GetAlignmentDuration(
// Add a larger gap after the last neume of the syllable
return (syllable->GetLast() == this) ? NEUME_MEDIUM_SPACE : NEUME_SMALL_SPACE;
}
// This is called only with syallable without neume
// Otherwise the duration is given by the neume (or by the nc with --neume-as-note)
else if (this->Is(SYLLABLE) && !this->FindDescendantByType(NEUME)) {
return NEUME_MEDIUM_SPACE;
}
else {
return Fraction(0);
}
Expand Down

0 comments on commit b7df70e

Please sign in to comment.