remove non-functional "Allow Diagonal" property for Note-Anchored Line

• Dec 31, 2021 - 11:37
Reported version
3.6
Priority
P2 - Medium
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project
  1. Enter two notes with different vertical positions
  2. Ctrl/Cmd+click select them
  3. Add → Lines → Note Anchored Line
  4. In the inspector uncheck "Allow Diagonal"

Expected result: the line becomes horizontal, following the height of the first anchor point (as per other lines)
Actual result: no change is seen, the line remains diagonal

Use case: Music analysis where you want a both-ended hooked line above the staff from one notehead to the other. Using a staff line is not an option in this scenario as the endpoint anchors to the end of the duration instead of the notehead itself.


Comments

Yes, but no, but yes, but no ;-)

We don't have any other lines that use the noteheads (horizontally speaking) as anchor points, meaning that any other (non-functional) line needs brittle manual adjustment to make it notehead aligned which is destroyed/wrong upon relayouts.

I'd have nothing against allowing it to be possible to force a note anchored line to be horizontal. But to me that's not the right solution to this problem. The line is not attached to individual notes in any reasonable sense (what if those were chords?) but really is just an perfectly ordinary line that just happens to end at the right edge of the chord instead of the end of its duration. What's really needed is a way to make that happen more directly - to make a text line align to the right edge of the chord at the given time position. We've got that code already for ottava lines, there should just be an Inspector option to allow different alignment options.