Shortcuts may produce wrong notes in repitch mode on percussion staves
Windows 10, GIT commit: 3c7a69d
1) new score for Snare Drum
2) enter notes AAAA
3) enable repitch mode
4) return cursor to first note
5) type "A" or "B:"
Result: a totally different note is entered - sounds like a bass drum
Repitch mode seems to work fine for staves using the Drumset instrument, also for Cymbal, but not for Snare Drum or Bass Drum. Not sure yet why.
Fix version
3.5.0
Comments
Scratch that about it working OK for drumset staves, it doesn't.
Tracing through the code it seems the calculations are wrong in Score::repitchNote():
https://github.com/musescore/MuseScore/blob/73a2e6a1a474d5f4620b926d94f…
We start with the same Position value that works when not in repitch mode, but we get the wrong pitch out of it here. Not surprising, I think, since there is no checking for drumset here. We probably need to use noteValForPosition() or something similar as happens in the normal case.
This is another of those percussion input bugs that's been irritating me for a long time, along with #153686: Drum input palette: notes set to enter as voice 2 are entered into voice 1 in error and a stem direction problem that I'll try to reproduce later.
https://github.com/musescore/MuseScore/pull/6232
Fixed in branch 3.x, commit cbfdb7e381
_fix #154816: wrong note when repitching drums
Resolves: https://musescore.org/en/node/154816
Repitch mode replaces the current note with the new note.
But the calculation did not take drum staves into account.
Fix is to use the current drumnote when repitching._
Automatically closed -- issue fixed for 2 weeks with no activity.