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 #8980 - improve horizontal placement of tie endpoints #9077

Merged
merged 3 commits into from
Sep 20, 2021

Conversation

asattely
Copy link
Contributor

@asattely asattely commented Sep 8, 2021

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.

@asattely
Copy link
Contributor Author

asattely commented Sep 8, 2021

fixed some codestyle stuff and a stupid mistake

}

// adjust for ledger lines
if (startNote()->line() >= 8 || startNote()->line() <= 0) {
Copy link
Contributor

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.

// ADJUST FOR COLLISIONS ----------------

// adjust for ledger lines
if (endNote()->line() >= 8 || endNote()->line() <= 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

Copy link
Contributor Author

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.

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 10, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 10, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 10, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 11, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 13, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 14, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 14, 2021
@asattely asattely force-pushed the horizontal-tie-placement branch from 772f9a6 to 9104394 Compare September 17, 2021 17:50
adjusting for flag, dot, offset notehead, and ledger line
@asattely asattely force-pushed the horizontal-tie-placement branch from 9104394 to 01d9cf6 Compare September 17, 2021 17:55
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
@asattely
Copy link
Contributor Author

rebased, and also fixed a small problem with ties being adjusted for dots on offset notes

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 17, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 17, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 17, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 17, 2021
@RomanPudashkin RomanPudashkin merged commit 5aec747 into musescore:master Sep 20, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 23, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 24, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 26, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 29, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Oct 3, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Dec 7, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request May 12, 2022
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants