Repitch shortcut doesn't toggle

• May 8, 2017 - 16:52

Pre-2.1, the Re-Pitch shortcut, Shift + Ctrl + I, was a toggle switch. However this command doesn't toggle in 2.1. Is this a bug or by design?


Comments

Most probably by design, before there were only 2 modes, so toggle made sense, not there are 5.
So it really wasn't even a toggle, but an on/off setting, which apprerad to toggle between this and the other option

Right - in previous releases, turning repitch "off" meant switching to step time because that was the only other option. Now that there are multiple modes, it wouldn't be clear what mode to switch to.

When I added the new modes I found it "broke" the shortcut, but I didn't fix it for the reason given by Marc and Jojo. I couldn't decide what the correct behaviour would be.

It occurred to me that a better system would be to press "N" to toggle note entry on/off in whatever mode is currently selected, or to hold "N" and press a number key to enter a different mode:

1 - StepTime
2 - Repitch
3 - Rhythm
4 - Realtime (auto)
5 - Realtime (manual)

However, MuseScore's shortcut system (which relies on Qt) is not currently set up to detect keys being held, except for the usual modifiers: Ctrl, Alt, Shift, etc.

In reply to by shoogle

So what's the plan?
I'm switching back and forth between StepTime and Repitch all the time, and find it most annoying that I no longer can do that using keyboard shortcuts only. I can press N to enter Note Input mode, and then shift+command+I (Mac) when I want to re-pitch, but then I have to use the mouse to get back to StepTime.
I think a simple fix would be if a first press on "N" would take you back to StepTime, and a second to exit Note Input mode.

In reply to by mlindkolt

That could work if we don't find anything better, but I think it makes more sense to find something more general, that doesn't just help with Repitch mode but that addresses all the different modes. Not that I have a good proposal here - i don't use any of them often enough to have a sense of what would feel natural. For someone like me, I'd prefer N do nothing but enable and disable note input mode, so there is never a case where pressing N does not do that, but have some other shortcut(s) for switching between the submodes, probably only active while actually in note input mode.

If we do a quick fix for repitch only, I'd prefer one that doesn't mess with "N" at all, maybe just make the repitch shortcut (Ctrl+Shift+I) return to step time if you are already in repitch mode.

In reply to by mlindkolt

> "How soon can I get an updated version?"

Whenever the next release happens - assuming someone codes it before then ;). There won't be a special patch release to add a single feature or fix a single bug, however small, except in an emergency.

However, it is possible to set a shortcut to take you back to Step-time mode in your current version of MuseScore. You can't make the shortcut the same as the Re-pitch shortcut because they will conflict, but you can make it similar (e.g. Ctrl+I). Simply open the Preferences, click the Shortcuts tab, search for "enter notes", and define the shortcut you want to use for the Step-time action.

Alternatively, you could set shortcuts for all note input modes:

Action Search for... Suggested shortcut
Step-time "enter notes" Ctrl+Shift+1
Re-pitch mode "replace pitches" Ctrl+Shift+2
Rhythm "enter durations" Ctrl+Shift+3
Real-time (automatic) "perform the piece at" Ctrl+Shift+4
Real-time (manual) "perform the piece while" Ctrl+Shift+5

The equivalent shortcuts on Mac would be Cmd+Shift+<number> but it seems that MuseScore (i.e. Qt) can't detect this key combination (not tested yet on other systems). In this case you could set the shortcuts to Ctrl+Shift+<number> or Option+Shift+<number> instead.

Notice that you can't search for the name of the action; you have to search for its description (I don't know why this is). You can find out the description for each mode by hovering the cursor over its entry in the note input menu (click the little arrow next to the N in MuseScore's main toolbar). You'll need to do this to find out what to search for if MuseScore is setup in a language other than English.

For the long term, I am still in favour of using the N+<number> combination. This requires special coding to extend Qt's shortcut detection mechanism so that it can detect when non-modifier keys are being held down, but this would also have other benefits, like being able to use the Real-time modes with a standard computer keyboard as well as MIDI keyboards.

In reply to by shoogle

Same here. With this actually in place, to me, the problem is solved for now, although we can certainly making these descriptions easier to find (eg, prefacing them with "Note input:" as is done for a few others) and/or adding some default shortcut. I would recommend against using Ctrl+Shift+number, or anything else involving numbers, though, because those are too valuable for other purposes. As I recall, Ctrl+Shift+1 et al were originally shortcuts for adding intervals below a note, for instance, and were removed only because they caused conflcits on certain keyboards (French AZERTY, I think?). Going forward, we may well provide shortcuts sets that are optimized for different keyboard layouts - some of this is already in place in master. Best not to create conflicts we have to revisit later.

In reply to by Marc Sabatella

I see this as another reason to use N+number because it can't be anything involving letters (otherwise you end up using random letters to avoid conflicts). We could even have N+Tab and N+Shift+Tab to cycle back and forth through the different modes.

In reply to by mike320

This doesn't work for the reasons I gave above. It requires special coding, otherwise MuseScore sees the N key press and the number key press as two separate events, not part of a combination. This is true even if you clear the current definition of N.

In reply to by shoogle

I think you are talking about two different things. The original proposal from shooe was N+2 etc pressed simultaneously - using "N" is a manner similar to Shift. Which is indeed currently not possible. Mike's proposal is, I believe, to use N,2 sequentially - using the existing "key sequence" facility. This is already possible but interferes with use of "N" alone. But I note that Ctrl+Shift+N is available, so maybe that followed by a number (or mnemonic letter) would work.

In reply to by shoogle

I just tested this, and you cannot simply clear Note Entry, you must replace it with another shortcut, which I did. I then defined the entry modes as N1, N2... and they all worked. They changed between input modes in the middle of entering notes. They also changed from normal mode to the appropriate note entry mode. You still have to use the new shortcut for note entry mode or esc to exit note entry mode, which is very acceptable and what has been suggested here.

Edit: I guess we're crossing posts here a bit, but I'll leave this as it is.

In reply to by Marc Sabatella

Currently, if you press N it enables note input for the type selected in the drop down button as shown by the note input Icon. From there, N always turns note input mode off while remembering the input mode. I believe this to be a behavior that should not be changed and is in agreement with what Marc suggested.

Currently, the only note input method that can be accessed via a shortcut is Re-pitch. This works if you are in a note input mode or not. To change out of Re-pitch you must use the mouse for a different mode or press N (or Esc) to exit note input mode. My proposal is to allow for shortcuts for all of the input modes, including Step-time that work on the same principal as the shortcut for Re-pitch. The benefit is that if you want to change from Re-pitch to Step-time for example, you could use a shortcut.

If I remember correctly, prior to version 2.1, ctrl-shift-i toggled between Re-pitch and Step-time (the only 2 input options at the time). Some possible results:

1) have the non Step-time input mode shortcuts toggle between the other mode and Step-time. This would be unnecessary if there were a shortcut that switched to Step-time input as in previous versions.
2) have the input mode shortcuts toggle between the appropriate input mode and normal mode (i.e. turn off input mode). This I believe would be more natural and consistent with N turning input mode on and off.

Do you still have an unanswered question? Please log in first to post your question.