- class neoscore.western.hairpin.Hairpin
A crescendo/diminuendo hairpin spanner.
While this is a path, it requires a music font from which to derive its appearance.
- __init__(pos: PointDef, parent: PositionedObject, end_pos: PointDef, end_parent: Optional[PositionedObject] = None, direction: DirectionX = DirectionX.RIGHT, width: Optional[Unit] = None, font: Optional[MusicFont] = None)
pos – The starting point.
parent – The parent for the starting position. If no font is given, this or one of its ancestors must implement
end_pos – The stopping point.
end_parent – The parent for the ending position. If
None, defaults to
direction – The direction of the hairpin, where
LEFTmeans diminuendo (>) and
RIGHTmeans crescendo (<).
width – The width of the wide hairpin. Defaults to 1 staff unit.
font – If provided, this overrides any font found in the ancestor chain.