neoscore.western.rest

class neoscore.western.rest.Rest[source]

Bases: MusicText

A simple Rest glyph whose appearance is determined by a duration

__init__(pos: PointDef, parent: PositionedObject, duration: DurationDef, font: Optional[MusicFont] = None)[source]
Parameters
  • pos – The position of the rest from its SMuFL anchor point

  • parent – The parent of the rest. If no font is provided, this parent or one of its ancestors must implement HasStaffUnit.

  • duration – Determines the particular rest glyph used.

  • font – If provided, this overrides any font inherited from an ancestor.

property duration: Duration

The time duration of this Rest