BowContactSpanner

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.spanners" { graph [label="abjad.spanners"]; node [color=1]; "abjad.spanners.BowContactSpanner.BowContactSpanner" [URL="../api/abjad/spanners/BowContactSpanner.html#abjad.spanners.BowContactSpanner.BowContactSpanner", color=black, fontcolor=white, label="Bow\nContact\nSpanner", target=_top]; "abjad.spanners.Spanner.Spanner" [URL="../api/abjad/spanners/Spanner.html#abjad.spanners.Spanner.Spanner", label=Spanner, target=_top]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.BowContactSpanner.BowContactSpanner"; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/spanners/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadObject.AbjadObject" -> "abjad.spanners.Spanner.Spanner"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.spanners.BowContactSpanner.BowContactSpanner

Bow contact spanner.

>>> staff = abjad.Staff()
>>> staff.extend(r"c'4. c'8 \times 2/3 { c'4 c'4 c'4 }")
>>> leaves = abjad.select(staff).leaves()
>>> abjad.attach(abjad.BowMotionTechnique('jete'), leaves[0])
>>> abjad.attach(abjad.BowContactPoint((1, 4)), leaves[0])
>>> abjad.attach(abjad.BowContactPoint((3, 4)), leaves[1])
>>> abjad.attach(abjad.BowContactPoint((1, 2)), leaves[2])
>>> abjad.attach(abjad.BowMotionTechnique('circular'), leaves[3])
>>> abjad.attach(abjad.BowContactPoint((1, 1)), leaves[3])
>>> abjad.attach(abjad.BowContactPoint((0, 1)), leaves[4])
>>> abjad.attach(abjad.Clef('percussion'), leaves[0])
>>> abjad.override(staff).bar_line.transparent = True
>>> abjad.override(staff).dots.staff_position = -8
>>> abjad.override(staff).flag.Y_offset = -8.5
>>> abjad.override(staff).glissando.bound_details__left__padding = 1.5
>>> abjad.override(staff).glissando.bound_details__right__padding = 1.5
>>> abjad.override(staff).glissando.thickness = 2
>>> abjad.override(staff).script.staff_padding = 3
>>> abjad.override(staff).staff_symbol.transparent = True
>>> abjad.override(staff).stem.direction = abjad.Down
>>> abjad.override(staff).stem.length = 8
>>> abjad.override(staff).stem.stem_begin_position = -9
>>> abjad.override(staff).time_signature.stencil = False
>>> abjad.attach(abjad.BowContactSpanner(), leaves)
>>> abjad.show(staff) 

Use BowContactPoint(None) to indicate un-bowed actions, such as pizzicato.

>>> staff = abjad.Staff(r"c'4 c'4 c'4 c'4")
>>> leaves = staff[:]
>>> abjad.attach(abjad.BowContactPoint(None), leaves[0])
>>> abjad.attach(abjad.BowContactPoint((3, 4)), leaves[1])
>>> abjad.attach(abjad.BowContactPoint((1, 2)), leaves[2])
>>> abjad.attach(abjad.BowContactPoint(None), leaves[3])
>>> abjad.attach(abjad.Clef('percussion'), staff[0])
>>> abjad.override(staff).bar_line.transparent = True
>>> abjad.override(staff).dots.staff_position = -8
>>> abjad.override(staff).flag.Y_offset = -8.5
>>> abjad.override(staff).glissando.bound_details__left__padding = 1.5
>>> abjad.override(staff).glissando.bound_details__right__padding = 1.5
>>> abjad.override(staff).glissando.thickness = 2
>>> abjad.override(staff).script.staff_padding = 3
>>> abjad.override(staff).staff_symbol.transparent = True
>>> abjad.override(staff).stem.direction =abjad.Down
>>> abjad.override(staff).stem.length = 8
>>> abjad.override(staff).stem.stem_begin_position = -9
>>> abjad.override(staff).time_signature.stencil = False
>>> abjad.abjad.attach(abjad.BowContactSpanner(), leaves)
>>> abjad.show(staff) 

Special methods

(Spanner).__contains__(argument)

Is true when spanner contains argument.

Return type:bool
(Spanner).__copy__(*arguments)

Copies spanner.

Does not copy spanner leaves.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to '' or 'storage'. Interprets '' equal to 'storage'.

Returns string.

(Spanner).__getitem__(argument)

Gets leaf or selection identified by argument.

Return type:Union[Leaf, Selection]
(Spanner).__iter__()

Iterates leaves in spanner.

Return type:Iterator[+T_co]
(Spanner).__len__()

Gets number of leaves in spanner.

Return type:int
(Spanner).__lt__(argument)

Is true when spanner is less than argument.

Trivial comparison to allow doctests to work.

Return type:bool
(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Read-only properties

(Spanner).leaves

Gets leaves in spanner.

Return type:Selection
(Spanner).tweaks

Gets tweaks.

Return type:Optional[LilyPondTweakManager]