musescore / musescore/MuseScore
Incorrect accidentals appear on notes after slash notation with change of key
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 15.1k
- Forks
- 3.3k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 91
Description
Issue type
Engraving bug (incorrect score rendering)
Bug description
If you create slash notation in just a portion of a measure, then change the key from flats to sharps or vice versa, notes after the slash notation get incorrect accidentals.
Steps to reproduce
- New score, treble template, key of C
- Select measure 2
- Tools / Fill with slashes
- Delete last slash (leaving a rest)
- Enter a B quarter note
- Add an F major key signature to bar 1
Result: the natural sign that should now appear on the B does not.
This presumably happens because the slashes are B internally, and they when the key signature gets added, the slashes "take" the natural sign and the B "thinks" it doesn't need it.
Also, try selecting the B and pressing down. Now it gets an unnecessary flat sign.
As far as I can tell, this only happens if the key is changed after the slashes are added, causing me to suspect the issue happens when the new key is added. This issue does survive save/reload. but it is fixed by selecting the slashes themselves and hitting Up or Down to change their internal pitch to one that doesn't need an accidental.
Confirmed in both 4.2.1 and 4.3 nightly. Surprisingly, this is true going back to MU3 as well but I don't think it was ever found & reported. This report came from Facebook, BTW.
Screenshots/Screen recordings
MuseScore Version
OS: Debian GNU/Linux 12 (bookworm), Arch.: x86_64, MuseScore version (64-bit): 4.3.0-240710504, revision: github-musescore-musescore-5be2b33
Regression
No.
Operating system
Debian 12
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.