neoscore.western.invisible_clef

class neoscore.western.invisible_clef.InvisibleClef[source]

Bases: Clef

A non-printing clef.

This is useful in contexts where staves are used with implied clefs.

__init__(pos_x: Unit, staff: Staff, clef_type: Union[ClefType, str])[source]
Parameters
  • pos_x – The x position in the staff

  • staff – The parent staff

  • clef_type – The type of clef. String names of common clefs may be given as a convenience; see ClefTypeDef.

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

  • brush – The brush to fill in text shapes with.

  • pen – The pen to trace text outlines with. This defaults to no pen.