C major key signature not transposed when changing instrument
Ubuntu 14.04, GIT commit: a6ec8aa
Only affects master it seems - it works in 2.0.2 and 2.0.3 when I tried it. But in master:
1) my first score
2) enter notes
3) right click staff, staff properties
4) change instrument / Bb clarinet
Result: notes transpose, key signature does not. Only affects C major.
I know this has broken and been fixed half a dozen times or more over the past few years. I suspect I broke this with some other transposition-related changes that for whatever reason weren't merged into 2.0.3 - maybe the fix to make instrument change text work with transposition? I will investigate further later.
Comments
Yes, I'm fairly certain I broke this with the aofrementioned change from September. transposeKeys() knows to only create new key signatures at tick 0, but when using the Change Instrument command, I am passing in -1 rather than 0 as the start tick. I think I know why - it relates to some issues we were having with the Change Instrument a year or two ago, and is probably correct overall. So I think I just need to fix transposeKeys() to also create key signatures for a start tick of -1. Still investigating, should have fix soon.
In October, 28, 2015. Here: https://github.com/musescore/MuseScore/commit/a3c5ff758fa8d238d08587edd…
- This nightly works as expected: dc21394
- This nightly fails: a3c5ff7
Thanks for the confirmation (that was indeed the change i made in September; i t wasn't merged until later).
Here is a fix:
https://github.com/musescore/MuseScore/pull/2422
Fixed in branch master, commit e7f730c78f
fix #100656: C key signature not transposed on change instrument
Fixed in branch master, commit d1111241a6
Merge pull request #2422 from MarcSabatella/100656-change-instrument-c
fix #100656: C key signature not transposed on change instrument
Automatically closed -- issue fixed for 2 weeks with no activity.