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

Sticking layout improvements #23825

Merged
merged 7 commits into from
Aug 1, 2024

Conversation

mike-spa
Copy link
Contributor

Resolves: #20887

The most significant change introduced by this PR is that sticking marks are aligned throughout the system, not too differently from how lyrics are done.

To this purpose, I initially thought I'd reuse some of the lyrics logic that I've implemented not long ago, but it turns out that that's very lyrics-specific and not easy to generalize. Instead, the much better approach is to generalize the AlignmentLayout logic to also work with groups of items that don't necessarily have the "snapping" property (like dyanmics and hairpins). Now we have a simple function which can align any given group of items, which will have plenty of uses in future and in this case makes it easy to pass the groups of stickings and align them.

Additionally, stickings are now centered on the notehead, rather than left-aligned. Bear in mind when testing @zacjansheski @oktophonie that in order for some of the changes to take effect on existing files a "Reset all styles to default" will be needed.

@oktophonie oktophonie added the vtests This PR produces approved changes to vtest results label Jul 30, 2024
@zacjansheski
Copy link
Contributor

zacjansheski commented Jul 31, 2024

Huge improvement, thank you!!

I don't think this is a show-stopper, but I think the horizontal spacing with slashed note heads looks more uneven than before (Sticking attached to slashed notehead gets pushed to the right)

video1649969583.mp4

@zacjansheski
Copy link
Contributor

Tested on MacOS 14, Windows 11, Ubuntu 22.04.3. Approved
#20887 FIXED

@RomanPudashkin RomanPudashkin merged commit a34f207 into musescore:master Aug 1, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vtests This PR produces approved changes to vtest results
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Single line staff sticking engraving issues
4 participants