class neoscore.western.ledger_line.LedgerLine[source]

Bases: Path, HasMusicFont

A staff ledger line.

These are generated automatically by Chordrest objects, but can be manually instantiated as well.

__init__(pos: Union[Point, Tuple[Unit, Unit]], parent: PositionedObject, base_length: Unit)[source]
  • pos – A position at the left edge of the notehead column.

  • parent – This or one of its ancestors must implement HasMusicFont.

  • base_length – The of the notehead this line is related to. The real length will be this plus a small extension defined in the MusicFont’s engraving defaults.