-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MU4 Issue] Tablature: Ctrl + Up/Down does not move fretmark to adjacent string (note input mode) #16487
Comments
Works fine for me. Better than ever, since #15730. |
@rgreen5 Is this still actual? |
OS: Linux Mint 20.1, Arch.: x86_64, MuseScore version (64-bit): 4.1.0-231860501, revision: github-musescore-musescore-1654979 The bug can still be reproduced in this nightly in note input mode using the instructions in the OP (it works OK in normal mode). It worked corrctly in MS 3.6.2 using the same instructions. |
I confirm it's still an issue in 4.1.0. The PR #15730 was for a different bug, one only affecting the highest string (and only visible in normal mode). It remains the case that Ctrl+Up/Down are ineffective in note input mode for tab - they simply move the cursor. |
Aha, now I understand what this is about. I thought that this was expected behaviour in Note Input mode, but of course the Up/Down arrows already move the cursor without Ctrl, so if would make sense for Ctrl+Up/Down to do something different (namely moving the selected note). |
Right. I looked at the code briefly to see if it was just a simple matter of something not being hooked up properly as was the case for a number of other commands, but offhand I don't see the problem. Ctrl+Up activates the pitch-up-octave command and I see that on the console, and the handler looks like it deals with the case of note input + tab. But presumably it's something simple that would be obvious on stepping through. |
OK, I see now why this is the case, but I'm not sure of the right fix. Tracing the control flow, I see we eventually arrive in NotationInteraction::moveStringSelection(), which appears to be the function for moving the cursor, not for moving notes. Probably it should be doing both. I'll make a trial PR with what might be the answer, but no guarantees. |
My PR fixes the issue, but the behavior is slightly different than MU3 in that MU3 leaves the note cursor on the original string whereas mine moves the cursor along with the note. I'm not convinced the MU3 behavior is better, but if we want this, it would be simple enough (by putting the code to move the cursor into an "else" clause, so it only happens when not using Ctrl). @rgreen5 what do you think? |
Marc's fix looks fine to me. |
Describe the bug
A number of bugs have been flagged up in which Ctrl + Up/Down no longer works to move a fretmark to an adjacent string (preserving pitch) in note input mode. See #14218, #15344.
However this bug is applicable in all situations – not just where there are linked staves or an ottava or capo is operative.
To Reproduce
RESULT: The cursor moves but the fretmark doesn't!
Expected behavior
The above operation should move the fretmark to an adjacent string.
Platform information
OS: Linux Mint 20.1, Arch.: x86_64, MuseScore version (64-bit): 4.0.2-230530504, revision: github-musescore-musescore-fa46d7f
The text was updated successfully, but these errors were encountered: