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 #9020: Select correct brace symbol for each system independently #9086

Merged
merged 2 commits into from
Sep 15, 2021

Conversation

Nick-Mazuk
Copy link
Contributor

Resolves: #9020

MuseScore uses different brace symbols depending on the number of staves the brace covers. Currently, this is is calculated once for the entire piece. This PR allows the brace size to be calculated on a system-by-system basis, such that staves hidden in a particular system don't affect the size of the brace.

@Jojo-Schmitz
Copy link
Contributor

vtest error might be expected, but certainly not this one?

@Jojo-Schmitz
Copy link
Contributor

If you prefix the commit title with "Fix #322436:" that issue would (also) get auto-closed on merging this PR

Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz left a comment

Choose a reason for hiding this comment

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

Before:
image
after:
image

@Nick-Mazuk
Copy link
Contributor Author

vtest error might be expected, but certainly not this one?

It looks like the test failed when creating the reference images, not even during the actual tests. I'm not too knowledgable about the test suite, but I don't know why this change would cause the image creation to fail.

If you prefix the commit title with "Fix #322436:" that issue would (also) get auto-closed on merging this PR

Good to know. Typically, GitHub auto-closes issues even if it's referenced in the PR message as "resolved" or "fixed". But if adding it to the commit message that way is the preferred way to do things here, I'll do that in the future.

@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Sep 9, 2021

Reg. vtest:
The vtest error is something that happens at times, nothing to worry about.
Except it'd be interesting to see whether there's a 'real' vtest a) testing these braces and b) failing on this (rightfully in this case, alöbeit a failure we'd have to accept).
But checking the vtests of my backport of this to 3.x show no such test nor failure (but a lot of unrelated others).

Reg. commit title:
It is for issues on the muescore.org tracker

@Nick-Mazuk
Copy link
Contributor Author

Reg. vtest:
The vtest error is something that happens at times, nothing to worry about.
Except it'd be interesting to see whether there's a 'real' vtest a) testing these braces and b) failing on this (rightfully in this case, alöbeit a failure we'd have to accept).
But checking the vtests of my backport of this to 3.x show no such test nor failure (but a lot of unrelated others).

Reg. commit title:
It is for issues on the muescore.org tracker

I see, thanks for the explanations!

Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 10, 2021
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 10, 2021
Jojo-Schmitz added 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 14, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 14, 2021
@RomanPudashkin RomanPudashkin merged commit 355ac17 into musescore:master Sep 15, 2021
@DmitryArefiev
Copy link
Contributor

Hi @Nick-Mazuk can you help with testing this. I don't see a difference between latest master (Win) and old build 20-days old.

And one more thing.. The brace size is different depending on what staves are hidden (in the middle of system or starting from the edge):
brace testing

@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Sep 15, 2021

That's what the PR is all about. The brace size is picked based on the number of visible staves in any given system

@Nick-Mazuk
Copy link
Contributor Author

@DmitryArefiev The desired behavior is the one where the brace is smaller when you hide Flute 2, 3, 4. When you hide the middle two staves, the brace size should also become smaller (which it isn't, so that's a bug). I think I know what's going on and will submit a new PR with a fix hopefully today.

@Nick-Mazuk Nick-Mazuk deleted the brace-symbol-size branch September 15, 2021 15:11
Nick-Mazuk added a commit to Nick-Mazuk/MuseScore that referenced this pull request Sep 15, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 16, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 16, 2021
RomanPudashkin added a commit that referenced this pull request Sep 16, 2021
fix edge case from #9086, inner hidden staves affect bracket span
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
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 20, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 21, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 22, 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 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 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 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 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 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 May 12, 2022
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Mar 5, 2023
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.

[MU4 Issue] Select correct brace symbol for each system independently
4 participants