Skip to content

Ties are drawn awkwardly by default #83

@ajyoon

Description

@ajyoon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions