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

Fix a bunch of different issue connected to local time signatures #26100

Merged
merged 5 commits into from
Jan 24, 2025

Conversation

mike-spa
Copy link
Contributor

Resolves: #23411
Resolves: #18089
Resolves: #26001
Resolves: #25110

@mike-spa mike-spa requested a review from oktophonie January 15, 2025 18:20
@mike-spa mike-spa marked this pull request as ready for review January 15, 2025 18:21
@mike-spa mike-spa changed the title Fix a bunch of different issue conneccted to local time signatures Fix a bunch of different issue connected to local time signatures Jan 16, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 16, 2025
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 16, 2025
Resolves: musescore#26001

Resolves the freeze that occurs when opening the corrupted file. Also resolves the problem which causes the corruption in the first place.

Backport of musescore#26100, commit 4
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 16, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 16, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 16, 2025
Resolves: musescore#26001

Resolves the freeze that occurs when opening the corrupted file. Also resolves the problem which causes the corruption in the first place.

Backport of musescore#26100, commit 4
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 16, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 16, 2025
@Jojo-Schmitz

This comment was marked as spam.

@mike-spa mike-spa force-pushed the fixLocalTimeSigIssues branch from 59af940 to 3d899f0 Compare January 16, 2025 12:32
@mike-spa mike-spa requested a review from miiizen January 16, 2025 16:23
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 16, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 16, 2025
Resolves: musescore#26001

Resolves the freeze that occurs when opening the corrupted file. Also resolves the problem which causes the corruption in the first place.

Backport of musescore#26100, commit 4
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 16, 2025
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 17, 2025
reg.: overrides a member function but is not marked 'override' [-Winconsistent-missing-override]

(Also fixed in musescore#26100)
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 17, 2025
reg.: overrides a member function but is not marked 'override' [-Winconsistent-missing-override]

(Also fixed in musescore#26100)
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 17, 2025
reg.: overrides a member function but is not marked 'override' [-Winconsistent-missing-override]

(Also fixed in musescore#26100)
@@ -683,9 +683,10 @@ void Score::expandVoice(Segment* s, track_idx_t track)
//
Measure* m = s->measure();
Fraction stick = ps ? ps->tick() : m->tick();
Fraction stretch = staff(track2staff(track))->timeStretch(stick);
Copy link
Contributor

Choose a reason for hiding this comment

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

A small thought about neatness - it might be worthwhile having a corresponding actualTicks() method wherever we have a ticks() method. This stretch calculation comes up often enough for segments.

Copy link
Contributor Author

@mike-spa mike-spa Jan 20, 2025

Choose a reason for hiding this comment

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

Good point. It's tricky to do for segments though, because a segment spans all staves, whereas the "stretch" (i.e. the ratio between the global and local time signature) is specific of one single stave. But I agree it'd be best to come up with something general, I'll do it in a next PR 👍

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 18, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 18, 2025
Resolves: musescore#26001

Resolves the freeze that occurs when opening the corrupted file. Also resolves the problem which causes the corruption in the first place.

Backport of musescore#26100, commit 4
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jan 18, 2025
Resolves: musescore#26001

Resolves the freeze that occurs when opening the corrupted file. Also resolves the problem which causes the corruption in the first place.
@mike-spa mike-spa force-pushed the fixLocalTimeSigIssues branch from 3d899f0 to c55afd0 Compare January 20, 2025 08:49
@miiizen miiizen merged commit 3255273 into musescore:master Jan 24, 2025
11 checks passed
pacebes pushed a commit to pacebes/MuseScore that referenced this pull request Jan 24, 2025
Fix a bunch of different issue connected to local time signatures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants