BarLineShape
BarLineShape(*components: BarLineComponent)A WSMN bar line: its components in time order, the order LilyPond’s \bar strings use (:|. is DOTS, THIN, THICK).
A shape with no components is the invisible bar line (LilyPond \bar "", MusicXML none). The ready-made shapes are in symbols (single_bar, final_bar, end_repeat, …).
Examples
>>> BarLineShape(BarLineComponent.DOTS, BarLineComponent.THIN, BarLineComponent.THICK)
BarLineShape(BarLineComponent.DOTS, BarLineComponent.THIN, BarLineComponent.THICK)
>>> BarLineShape()
BarLineShape()
>>> BarLineShape(BarLineComponent.THIN) == BarLineShape(BarLineComponent.THIN)
True
>>> BarLineShape(BarLineComponent.THIN).components
(<BarLineComponent.THIN: 'thin'>,)Attributes
| Name | Description |
|---|---|
__slots__ |
|
| components |
Methods
| Name | Description |
|---|---|
__init__ |
|
__repr__ |
__init__
__init__(*components: BarLineComponent)__repr__
__repr__()