Inconsistency between entering notes via the mouse in "Continuous View" and "Page View" according bass and treble notes

• May 22, 2015 - 10:10
Type
Functional
Severity
S4 - Minor
Status
closed
Project

Nightly 93d1b48/ Windows 7

1) Create new score, or open this one (Treble clef template): file test.mscz
In "Page view", you receive this by entering the treble et bass notes with the mouse:
mouse input.jpg

2) Open now this other file: file test1.mscz
In "Continuous view", the entering of the treble notes is as expected.
In contrast with the bass notes, since you are unable (with the mouse) to go lower than the A on the second ledger line. So, you get.
mouse 2 input.jpg

So, this is an obvious inconsistency in the way to input the notes with the mouse according treble and bass notes in "Page view" vs. "Continuous view"

And it can be inconvenient for those who use preferentially the "Continuous View" and instruments such as the guitar or others, of whom the last bass (E, or D sometines) is located below the third ledger line (and on the fourth ledger line for the D)


Comments

The basic problem is that continuous view defines the page to end right after the bottom of the last staff. So the code that tries to find the current page & staff thinks we've clicked somewhere off the page. I have no idea what the ramifications would be of defining the page height in continuous view to be larger, but that seems to be the obvious avenue to try. I'm not around much today, though.

The relevant code is in layout.cpp, the layoutLinear() function. It current sets the position of the one system to be 10sp down from the top of the page, and the page size is set to rhe system height plus 12sp. Meaning the page ends 2sp below the bottom of the system. Changing that 12sp to 20sp works - gives 10sp above and below. So far in limited testing it doesn't cause any other problems.