Skip to content

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.

@mike-spa mike-spa force-pushed the stickingImprovements branch from d75aa18 to bb54588 Compare July 30, 2024 07:37
@its-not-nice its-not-nice 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
@mike-spa mike-spa deleted the stickingImprovements branch February 17, 2025 10:23
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