neoscore.western.time_signature

class neoscore.western.time_signature.TimeSignature[source]

Bases: PositionedObject, StaffObject

A graphical time signature.

Note that these time signatures are purely cosmetic; they have no effect on automatic engraving since this module has no internal concept of measures.

__init__(pos_x: Unit, staff: Staff, meter: MeterDef, font: Optional[MusicFont] = None)[source]
Parameters
  • pos_x – The x position relative to the parent staff

  • staff – The parent staff

  • meter – The meter represented.

  • font – The font used. Defaults to the staff’s font.

property upper_text: MusicText

The upper glyph for the time signature

property lower_text: MusicText

The lower glyph for the time signature

property visual_width: Unit

The visual width of the time signature.

This is useful for laying out staff objects near time signatures.

property meter: Meter

The meter represented.

Setting this will automatically update the time signature’s glyphs.