Cross-staff notes ignore accidentals
P2 - Medium
S4 - Minor
When notes are moved to another staff, their accidentals are still determined by the staff they came from, not the staff they are now on. The attachment illustrates the issue. As a result, the score may look right but the playback sound wrong.
This is low priority, as there is a workaround: set the note to the proper pitch, then make its accidental invisible. For example, hide the redundant ♯ or ♭ (when the one already on the staff is ignored), or the extra ♮ (in cases where the "from" staff has a ♯/♭ but not the "to" staff so it has to be neutralized).
For practical examples, see e.g Rachmaninoff op 33 No 8 in G minor (at meas. 8, 28, 30).
FWIW, I suspect that fixing this would be harder than one would think, because at the point where we are calculating accidentals for each note, we really don't have a lot of context. Mostly just the note itself and a data structure that is built on the fly to record "accidental state" for each line of the current staff.
However, when I think about this and #49421: Proper use of accidentals after octave change loco. together, I think the way forward is probably to expand that data structure to be keyed not just on staff line, but to also consider effective staff and ottava state somehow. For cross-staff, that probably means rethinking how we go about doing this a bit - treating the staves of an instrument together rather than one at a time.
So you and add sharp on the last F and set that sharp to invisible.
Please don't assign to yourself unless you plan to fix it yourself too
Relates to #285233: [EPIC] Cross-staff notation issues
Came up again in https://musescore.org/en/node/292341
original report is much older than any 3.x
What is the workaround?
Manually add accidentals (or make accidentals invisible)
Thanks. Might be obvious, but better stated explicitly