neoscore.western.barline_style

class neoscore.western.barline_style.BarlineStyle[source]

Bases: object

Style for an individual sub-barline.

Use multiple of these to specify multipart lines like double barlines.

thickness: Union[str, float, Unit] = 0.16

Thickness for this line

This can be defined either as a SMuFL engraving default key, a float value of pseudo-staff-units, or a plain unit value.

gap_right: Union[str, float, Unit] = 0.4

The gap to the right of this line, if another follows.

Like thickness, this can be defined either as a SMuFL engraving default key, a float value of pseudo-staff-units, or a plain unit value.

pattern: PenPattern = 1

Line pattern of this line

color: Optional[Union[Color, str, Tuple[int, int, int], Tuple[int, int, int, int]]] = None

Color of this line given as a ColorDef

__init__(thickness: Union[str, float, Unit] = 0.16, gap_right: Union[str, float, Unit] = 0.4, pattern: PenPattern = PenPattern.SOLID, color: Optional[Union[Color, str, Tuple[int, int, int], Tuple[int, int, int, int]]] = None) None
neoscore.western.barline_style.SINGLE = [BarlineStyle(thickness='thinBarlineThickness', gap_right=0.4, pattern=<PenPattern.SOLID: 1>, color=None)]

A plain single barline.

neoscore.western.barline_style.DASH = [BarlineStyle(thickness='thinBarlineThickness', gap_right=0.4, pattern=<PenPattern.DASH: 2>, color=None)]

A single dashed barline.

neoscore.western.barline_style.DOT = [BarlineStyle(thickness='thinBarlineThickness', gap_right=0.4, pattern=<PenPattern.DOT: 3>, color=None)]

A single dotted barline.

neoscore.western.barline_style.THIN_DOUBLE = [BarlineStyle(thickness='thinBarlineThickness', gap_right='barlineSeparation', pattern=<PenPattern.SOLID: 1>, color=None), BarlineStyle(thickness='thinBarlineThickness', gap_right=0.4, pattern=<PenPattern.SOLID: 1>, color=None)]

A thin double barline.

neoscore.western.barline_style.END = [BarlineStyle(thickness='thinBarlineThickness', gap_right='thickBarlineSeparation', pattern=<PenPattern.SOLID: 1>, color=None), BarlineStyle(thickness='thickBarlineThickness', gap_right=0.4, pattern=<PenPattern.SOLID: 1>, color=None)]

A thick double barline conventionally used at the end of scores.