remove non-functional "Allow Diagonal" property for Note-Anchored Line
Reported version
3.6
Priority
P2 - Medium
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project
- Enter two notes with different vertical positions
- Ctrl/Cmd+click select them
- Add → Lines → Note Anchored Line
- 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
Actually I think that setting doesn't make any sense for note-anchored lines, with that they wouldn't be note-anchored anymore?
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.
Refer to the attached example picture from this facebook usergroup post that sparked the discovery of this behavior.
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.
Agree with the analysis that the previous proposal is not the best fit solution for the intended use case. Split off the feature request to #327969: Line end-anchor position to chord edge instead of segment duration and repurposing this to remove the non-functional property from the UI for the Note Anchored Line.