no/wrong note value icon selected when entering note input mode without first selecting note/rest

• Sep 26, 2014 - 11:34
Type
Functional
Severity
S4 - Minor
Status
closed
Project

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.

Title no note value icon selected when starting note entry mode in existing score no (or wrong) note value icon selected when starting note entry mode immediately after load
Title no (or wrong) note value icon selected when starting note entry mode immediately after load no/wrong note value icon selected when entering note input mode without first selecting note/rest

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.

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

Attachment Size
bug-34576.webm_.zip 284.33 KB
Status (old) fixed active

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.