Anchoring the ends of a line to two notes

• Jul 14, 2012 - 19:11
S5 - Suggestion

It's quite common in piano music, that when the melody oscillates between the two staffs, the changes are marked with a line that follows it. (see below).

(however, most times the line is solid, not dotted)

I know that this is already possible in 1.2., but there, the line is a floating element. It's not anchored to the notes, so if there's some relayouting, page breaks... the thing will be messed up.

However, 1.2. already allows linking two notes with slurs across staves (crt+select the notes, then press 's'):


So I think it would the same, but with 'straight' slurs.
Possible idea: using all the same code used in the slurs but changing the order of the Bézier curves.

Related feature request: #17352: Glissando incorrectly positioned in cross staff notes

Note: the cross staff slur feature is currently not working well in the trunk.
See: #17350: Slur between notes to cross staff incorrectly positioned

Thanks, G.

Attachment Size
dibuix3.JPG 30.12 KB
dibuix.JPG 13.55 KB


Note the existing line should work well for this *horizontally*. That is, if the line is connected to the proper beats using SHift+right-arrow, the length of the line will always be correct even as the score reformats. And if you don't change the pitch of the notes after position the line vertically, that too will always be correct.

Elsehwere, I recall you posted an image showing a line you created not aligning correctly on relayout, but from the image, it was clear you had not anchored it correctly, and that is why you were having problems. Did you see my response there?

Anything, indeed, lines attached to specific notes at both ends will be a good feature to have, but it really isn't *needed* to do what you are describing - the existing lines, if anchored properly, already do the job well except in the cases where you change pitches of the notes after adding the line - so you need to adjust the line too.

Horizontal lines do indeed work, and in the old image that I posted, the second example was my fault. However, the first example still applies, even anchoring it correctly.
Try it yourself and change the layout using a "line break": while the last anchor point would be more or less there, the line will pass through the note.

If you want I'll do another image with various example.

This as in 2.0 pre-release (a925ae0)

Also, and more important, you cannot hook the line to the other staff. So you may have no available anchor points for the note that you want to connect to.

I've forgotten what the first example looked like, but indeed, there are cases where a line attached at both ends would be useful and can't easily be emulated, so this is a feature that will be welcome indeed. But between proper abchoring or ordinary lines, and perhaps use of "gliss" lines, you can do surprisingly well for a lot of cases without them, Just FYI. The main case where true note-attached lines will prove necessary is to have multiple lines from a single chord.

Yes, I can do pretty well anyway, I just have to bare with repositioning something in case my layout changes.