-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 #8980 - improve horizontal placement of tie endpoints #9077
fix #8980 - improve horizontal placement of tie endpoints #9077
Conversation
1cbbcdf
to
9abaeda
Compare
fixed some codestyle stuff and a stupid mistake |
src/engraving/libmscore/tie.cpp
Outdated
} | ||
|
||
// adjust for ledger lines | ||
if (startNote()->line() >= 8 || startNote()->line() <= 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assumes that the notes are on a normal 5 line staff. You actually need check sc->staff()->staffTypeForElement(sc)->lines()
to get the real number of lines.
src/engraving/libmscore/tie.cpp
Outdated
// ADJUST FOR COLLISIONS ---------------- | ||
|
||
// adjust for ledger lines | ||
if (endNote()->line() >= 8 || endNote()->line() <= 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! I'll adjust that tomorrow.
Backport of musescore#9077, part 1 and 2, fixes musescore#8980
Backport of musescore#9077, part 1 and 2, fixes musescore#8980
Backport of musescore#9077, part 1 and 2, fixes musescore#8980
Backport of musescore#9077, part 1 and 2, fixes musescore#8980
Backport of musescore#9077, part 1 and 2, fixes musescore#8980
Backport of musescore#9077, part 1 and 2, fixes musescore#8980
772f9a6
to
9104394
Compare
adjusting for flag, dot, offset notehead, and ledger line
9104394
to
01d9cf6
Compare
Don't really need to test whether the note is above or below the staff since the adjustment will only occur if the ledger line's y value is similar to the tie's
rebased, and also fixed a small problem with ties being adjusted for dots on offset notes |
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
Backport of musescore#9077, part 1, 2 and 3, fixes musescore#8980
addresses #8980 Improve horizontal position of chord tie endpoints
Tie endpoints now adjust for offset noteheads, ledger lines, flags, and dots. This PR does not deal with the vertical placement of these ties; that will be a different issue popping up in the near future.