Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fermata_duration_fix #24921

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RomanPudashkin
Copy link
Contributor

Resolves: #24852

@@ -579,15 +579,16 @@ void Score::rebuildTempoAndTimeSigMaps(Measure* measure, std::optional<BeatsPerS
}
}
}
if (!RealIsNull(stretch) && !RealIsNull(stretch)) {

if (!RealIsNull(stretch) && !RealIsEqual(stretch, 1.0)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (segment.next1()) {
currentSegmentEndTick = segment.next1()->tick();
if (const Segment* nextActiveSegment = segment.nextActive()) {
currentSegmentEndTick = nextActiveSegment->tick();
Copy link
Contributor

@mike-spa mike-spa Sep 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, the duration of the fermata should be based on the duration of the ChordRest that the fermata is applied to (fermatas can be voice-specific, so in this case the voice-0 chord). That's often not the same as the duration of the segment itself. This kind of situation is quite common: here the fermata should last 4/4, even if the segment ticks is 1/8.
image
We can do this later though. For now this looks ok to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants