neoscore.western.stem
- class neoscore.western.stem.Stem[source]
Bases:
MusicPath
A vertical note or chord stem path.
- __init__(start: PointDef, parent: PositionedObject, direction: DirectionY, height: Unit, font: Optional[MusicFont] = None)[source]
- Parameters
start – Starting point for the stem
parent – If no font is given, this or one of its ancestors must implement
HasMusicFont
.direction – The direction the stem points
height – The absolute-value height of the stem.
font – If provided, this overrides any font found in the ancestor chain.
- property direction: DirectionY
The direction the stem extends from the given position.
- property end_point: PathElement
The outer point of the stem.
In notes and chords this will typically be the line end which extends away from the notes.