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
Alignment of left-justified lyrics on whole notes different depending on stem direction #16878
Comments
Could I tackle this issue? |
It only occurs on unstemmed notes where the alignment of the lyric is set to 'Align left'. box-230511-1707-48.mp4You're very welcome to try to find a solution! |
@oktophonie Successfully reproduced your described issue. |
Interestingly this change in placement is different for different Notehead types. It seems that wider noteheads without stems creates the bigger displacements. According to xiaomigros, allowing stem flipping on stemless notes produces better horizontal alignment (multiple voices and lyrics). So a possible solution would be to calculate the right placement of lyrics based on notehead width |
@oktophonie It's not just the lyrics that show this behavior: Should the alignment of these other text types also remain the same after stem flips? This issue applies to:
|
Helpful information for locating files:
I believe these qml scripts are mapped to the "abstractinspectormodel" class: This appears to apply styles through a "styleId": How does these UI relate to the code that changes the position information of Lyrics, Sustain pedal? |
@MengLinMaker The UI files are not relevant for this issue, since it is purely an engraving issue and not an interaction issue. But for completeness, I will tell you how the Inspector works:
But to find the cause of this issue, you'll need to look at the code where the layout is computed, which is in the files in the |
@cbjeukendrup Thank you, I've been trying to locate the relevant files. |
So I have identified how to remove the alignment flipping issue: Reference file location: There is a minor issue where the offset alignment is the same for all noteheads. I believe adjustments for different noteheads should be made. |
I think the alignment problem is caused by the Additional consideration:
After these considerations, I've decided to optimise for the most common notehead size (half, quarter...) Submitting pull request |
…lignment Fix #16878: Enforce same lyric alignment stem flip
Issue type
Engraving bug
Bug description
When a lyric starts on a whole note and is left-justified on it (as it would be for a melisma), the alignment is different according to the stem direction of the chord. There should be no difference.
Here, the first note is upstemmed and the second note is downstemmed. (I made the lyrics much smaller than usual to make the difference more obvious.)
It looks like on the second note the lyric is aligned with the left of the bounding box of the notehead. This looks better than the first note to me; in any case, they should both be the same, as changing the stem direction of the note has no other graphical consequences in this case.
MuseScore Version
OS: Artix Linux, Arch.: x86_64, MuseScore version (64-bit): 4.1.0-230760632, revision: github-musescore-musescore-fdc7952
Regression
No.
Operating system
Linux, Windows 11
The text was updated successfully, but these errors were encountered: