Natural accidental doesn't automatically come up for natural notes after a natural-sharp/natural-flat one

• Sep 2, 2019 - 12:01
Reported version
3.2
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

Relates to #279179: Natural-sharp/natural-flat not recognized as same accidental as sharp/flat.

Make, in the same measure, a group of notes which are the same pitch and have no accidental. Attach a sharp/flat to the first one, and a natural accidental is automatically attached to the second one. This doesn't happen if you attach a natural-sharp/natural-flat to the first one.

I doubt that this error is from line 2086 in libmscore/note.cpp, but I cannot find anything questionable.


Comments

Status PR created fixed

Fixed in branch master, commit bd5218f8b6

_fix #279179, fix #293984: Natural-sharp/natural-flat not recognized as same accidental as sharp/flat

Resolves: https://musescore.org/en/node/279179.
Also resolves: https://musescore.org/en/node/293984, which is really the same issue.

NATURAL_SHARP and NATURAL_FLAT are handled in the same way as microtonal accidentals, but unlike microtonal accidentals, NATURAL_SHARP and NATURAL_FLAT affect the playback pitch of the note. Therefore, when these accidentals are encountered, it is incorrect to set the accidental state to NATURAL. Instead, it must be set to the AccidentalValue that corresponds to the accidental's subtype._

Fix version
3.4.0