no/wrong note value icon selected when entering note input mode without first selecting note/rest
When starting note entry mode on an existing score, at first no note value icon is shown as being selected,. Only after the 1st note (which turns out to bea quarter note) has been entered, the corresponding Icon becomes visually selected
c15c7f3, Windows 7 Enterprise 64bit, but also reported on Linux.
Comments
What seems to happen is that whatever was currently showing as selected in the note entry toolbar remains showing if you enter note input mode without first selecting a note (eg, pressing N without selecting anything first, or selecting a measure rather than a note).
So upon initially loading the score, the duration icons are all cleared. If you then immediately press "N" without first clicking a note, the toolbar remains blank. But if you first a click a note before pressing "N", then the duration of that note because selected in the toolbar, and when you press "N", the duration of that note remains selected. However, the first note you enter is always entered as a quarter note, regardless of what shows in the toolbar.
Probably related: if I open a score with a drum part and similarly enter note input mode on that staff without first selecting a note eg, I just select a measure, or I just press "N" without clicking anything first), the drum palette fails to appear. If you then exit note input mode and immediately re-enter, it appears. All works well if you click a note or rest in the drum staff before pressing "N". We've always advertised that "feature" in 1.3, but then, it was an empty palette. Now it's no palette at all.
I think the following is an accurate summary:
If you click a note before entering note input mode, that duration value shows in the toolbar and is actually used as the first duration when you enter a note.
If however you do *not* click a note or rest first, but instead select a *measure* or in fact select *nothing*, then the duration icon will show whatever last happened to be showing, and this value will be ignored - the first note will be a quarter note.
My report #35191: Mismatch between the toolbar note icon and the real note added is probably a duplicate of the current one. However, as you can see in the screencast , the bug occurs even when I manually select (click) a note duration in the toolbar before entering note input mode. So it's not only that the duration icon will show whatever last happened to be showing, but can also show an explicit choice by the user.
Here's another problem related: in some circumstances, in note input mode, the first time it's displayed, the blue note doesn't reflect the real note duration that will be added. The blue note is updated only when the cursor is moved over the page.
In the following screencast, we see that when switching to note input mode, the blue note displayed is a whole note, while the note that will really be added is a quarter note:
bug-34576.webm_.zip
Fixed in 196c1ac429
I reopen the report because the problem described in the comment 5 is not solved. I still can reproduce it with MuseScore fc6fe02 on Xubuntu 14.10.
The easy fix would be to simply call shadowNote->setVsible(false) right after the call to updateInputState() that was added to the fix the original issue here. This would make the shadow note invisible until you move your mouse, and we're already setting the shadow note properly on first mouse move. As someone who does almost all note entry via keyboard, I find the shadow note annoying anyhow and would love to not see it every time I go to note entry mode and happen to still have my mouse cursor within the staff. Mouse users will end up moving the mouse right away anyhow.
What the heck, here's my proposed fix:
https://github.com/musescore/MuseScore/pull/1367
I actually like this quite a bit better than the alternative - a fix where you actually get the duration (and position) right as soon as you enter note input mode.
Fixed in 71761f725d
Automatically closed -- issue fixed for 2 weeks with no activity.