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 a couple of issues with key signatures and transposing instruments #14849

Conversation

mike-spa
Copy link
Contributor

@mike-spa mike-spa commented Nov 30, 2022

Resolves: #14675
Resolves: #14873

(First issue) The regression happened in #13999. That PR (correctly) filters out local key signatures (i.e. key signatures which are not in all staves). But that relies on the fact that global key signatures must be added to all staves, even if a specific staff ends up being in C because of transposition. Instead, when setting the key of the score via the score-creation dialog, instruments with resulting key in C were not given a key signature, so the key sig was interpreted as local and therefore not applied to the new instrument. Now the keySigEvent is always generated at the start of the score, regardless of being in C or not.

(Second issue) When changing instrument, we were transposing the instrument multiple times (once per excerpt in which the instrument is present.

@mike-spa mike-spa force-pushed the fixWrongTranspositionWhenAddingInstrument branch from b7c0b29 to 90a12ab Compare December 6, 2022 17:33
@mike-spa mike-spa changed the title For transposing instrument, add keySigEvent even if resulting key is C Fix a couple of issues with key signatures and transposing instruments Dec 6, 2022
@vpereverzev vpereverzev merged commit 0e45933 into musescore:master Dec 8, 2022
@mike-spa mike-spa mentioned this pull request Jan 9, 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
4 participants