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

Key signatures after section break are not transposed by transpose dialog #25168

Open
4 tasks done
sammik opened this issue Oct 14, 2024 · 5 comments · May be fixed by #25260
Open
4 tasks done

Key signatures after section break are not transposed by transpose dialog #25168

sammik opened this issue Oct 14, 2024 · 5 comments · May be fixed by #25260
Assignees
Labels
community Issues particularly suitable for community contributors to work on P3 Priority: Low UX/interaction

Comments

@sammik
Copy link
Contributor

sammik commented Oct 14, 2024

Issue type

UX/Interaction bug (incorrect behaviour)

Description with steps to reproduce

  1. create score in G major
  2. add section break
  3. transpose next section (after break) to different key
  4. see - Key signature is not transposed

Supporting files, videos and screenshots

KS-not-transposed-after-section-break.mp4

What is the latest version of MuseScore Studio where this issue is present?

nightly

Regression

No.

Operating system

Linux Mint (Ubuntu 22.04)

Additional context

Its happening, because key sig after section break is just generated key sig, not regular one.
Question here is, whether correct behaviour is to add regular key sig after section break, or if to leave it generated, and only with transpos dialog change it to standard one.

Checklist

  • This report follows the guidelines for reporting bugs and issues
  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible
@sammik
Copy link
Contributor Author

sammik commented Oct 14, 2024

Another thing to keep in mind. If user has song with multiple sections, and want to transpose one section, subsequent sections should remain untransposed.

@bkunda bkunda moved this to Next one or two releases in MuseScore Studio Backlog Oct 15, 2024
@bkunda bkunda added the community Issues particularly suitable for community contributors to work on label Oct 15, 2024
@bkunda bkunda added the P3 Priority: Low label Oct 15, 2024
@sammik sammik linked a pull request Oct 21, 2024 that will close this issue
8 tasks
@pacebes
Copy link
Contributor

pacebes commented Oct 30, 2024

I have tried to reproduce this issue and I think the behaviour is a bit different than described (see video):

Issue-25168-transposing.mp4

As you say Key signature is not transposed, but this happens after and before the section break. Key signature is transposed only if the selected area includes a regular signature.

Just to clarify. This issue is about is to transpose both the notes and the key signature in the selected area. Am I right?

@pacebes
Copy link
Contributor

pacebes commented Oct 30, 2024

I have been looking the code (transpose.cpp) and it seems that there is some code to ensure that the key signature is transposed only if there is a change in the key of the selected area:

                bool addKey = ks->isChange();
                if ((startKey || addKey) && !ks->isAtonal()) {

So it seems that it is made this way on purpose.

@sammik
Copy link
Contributor Author

sammik commented Oct 30, 2024

So it seems that it is made this way on purpose.

Of course, it is.
I think, main question here is, whether section break should add Key signature (key "change"), or not. I think, in most cases, user expect it there.

Anyway, I already made PR #25260 for this issue some time ago, so feel free to test it, or comment it. Thank You.

@pacebes
Copy link
Contributor

pacebes commented Oct 31, 2024

So it seems that it is made this way on purpose.

Of course, it is. I think, main question here is, whether section break should add Key signature (key "change"), or not. I think, in most cases, user expect it there.

Anyway, I already made PR #25260 for this issue some time ago, so feel free to test it, or comment it. Thank You.

I didn't notice there was already a PR, Sorry. It seems a very precise change.

@oktophonie oktophonie moved this from Available to In progress in Community Projects Nov 8, 2024
@oktophonie oktophonie moved this to In Progress in MuseScore Studio 4.5 Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Issues particularly suitable for community contributors to work on P3 Priority: Low UX/interaction
Projects
Status: In progress
Status: In Progress
Development

Successfully merging a pull request may close this issue.

4 participants