neoscore icon indicating copy to clipboard operation
neoscore copied to clipboard

Ties are drawn awkwardly by default

Open ajyoon opened this issue 3 years ago • 1 comments

There is room for some improvement in the default shaping algorithm for ties. For ties (and slurs with short vertical spans) the arch appears too tall and broadly curved. See this example from the docs:

staff = Staff(ORIGIN, None, Mm(40))
Clef(ZERO, staff, 'treble')
start = Chordrest(Mm(2), staff, ["f"], (1, 4))
end = Chordrest(Mm(22), staff, ["f"], (1, 4))
Tie(start.extra_attachment_point, start,
    end.extra_attachment_point.x, end, direction=DirectionY.DOWN)

image

Compare this to how Musescore notates the same kind of thing:

musescore-tie

(note that the difference in attachment points below the noteheads here is not in scope, just the curve's shape)

The default shaping for such ties and slurs should be updated to more closely match standard western notation best practices. This should be achievable simply by updating AbstractSlur._derive_height and _derive_arch_length. It's possible this behavior needs to be different between slurs and ties (which is not currently the case), but I'm not sure.

ajyoon avatar Dec 14 '22 02:12 ajyoon

And here's Lilypond's rendition:

lilypond-tie

ajyoon avatar Dec 14 '22 02:12 ajyoon