Spanner

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.Beam.Beam" [URL="../api/abjad/spanners/Beam.html#abjad.spanners.Beam.Beam", color=1, label=Beam, target=_top]; "abjad.spanners.BowContactSpanner.BowContactSpanner" [URL="../api/abjad/spanners/BowContactSpanner.html#abjad.spanners.BowContactSpanner.BowContactSpanner", color=1, label="Bow\nContact\nSpanner", target=_top]; "abjad.spanners.Glissando.Glissando" [URL="../api/abjad/spanners/Glissando.html#abjad.spanners.Glissando.Glissando", color=1, label=Glissando, target=_top]; "abjad.spanners.Hairpin.Hairpin" [URL="../api/abjad/spanners/Hairpin.html#abjad.spanners.Hairpin.Hairpin", color=1, label=Hairpin, target=_top]; "abjad.spanners.HorizontalBracket.HorizontalBracket" [URL="../api/abjad/spanners/HorizontalBracket.html#abjad.spanners.HorizontalBracket.HorizontalBracket", color=1, label="Horizontal\nBracket", target=_top]; "abjad.spanners.OctavationSpanner.OctavationSpanner" [URL="../api/abjad/spanners/OctavationSpanner.html#abjad.spanners.OctavationSpanner.OctavationSpanner", color=1, label="Octavation\nSpanner", target=_top]; "abjad.spanners.PhrasingSlur.PhrasingSlur" [URL="../api/abjad/spanners/PhrasingSlur.html#abjad.spanners.PhrasingSlur.PhrasingSlur", color=1, label="Phrasing\nSlur", target=_top]; "abjad.spanners.PianoPedalSpanner.PianoPedalSpanner" [URL="../api/abjad/spanners/PianoPedalSpanner.html#abjad.spanners.PianoPedalSpanner.PianoPedalSpanner", color=1, label="Piano\nPedal\nSpanner", target=_top]; "abjad.spanners.Slur.Slur" [URL="../api/abjad/spanners/Slur.html#abjad.spanners.Slur.Slur", color=1, label=Slur, target=_top]; "abjad.spanners.Spanner.Spanner" [URL="../api/abjad/spanners/Spanner.html#abjad.spanners.Spanner.Spanner", color=black, fontcolor=white, label=Spanner, target=_top]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.Beam.Beam" [minlen=1]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.BowContactSpanner.BowContactSpanner" [minlen=2]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.Glissando.Glissando" [minlen=1]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.Hairpin.Hairpin" [minlen=2]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.HorizontalBracket.HorizontalBracket" [minlen=1]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.OctavationSpanner.OctavationSpanner" [minlen=2]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.PhrasingSlur.PhrasingSlur" [minlen=1]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.PianoPedalSpanner.PianoPedalSpanner" [minlen=2]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.Slur.Slur" [minlen=1]; "abjad.spanners.TextSpanner.TextSpanner" [URL="../api/abjad/spanners/TextSpanner.html#abjad.spanners.TextSpanner.TextSpanner", color=1, label="Text\nSpanner", target=_top]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.TextSpanner.TextSpanner" [minlen=2]; "abjad.spanners.Tie.Tie" [URL="../api/abjad/spanners/Tie.html#abjad.spanners.Tie.Tie", color=1, label=Tie, target=_top]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.Tie.Tie" [minlen=1]; "abjad.spanners.TrillSpanner.TrillSpanner" [URL="../api/abjad/spanners/TrillSpanner.html#abjad.spanners.TrillSpanner.TrillSpanner", color=1, label="Trill\nSpanner", target=_top]; "abjad.spanners.Spanner.Spanner" -> "abjad.spanners.TrillSpanner.TrillSpanner" [minlen=2]; } 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", color=2, 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", color=3, label=object, target=_top]; } "abjad.system.AbjadObject.AbjadObject" -> "abjad.spanners.Spanner.Spanner"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject" [minlen=1]; }

class abjad.spanners.Spanner.Spanner

Spanner.

Any object that stretches horizontally and encompasses leaves.

Usually at the context of the voice (not staff or higher).

Examples include beams, slurs, hairpins and trills.


Attributes Summary

__contains__ Is true when spanner contains argument.
__copy__ Copies spanner.
__getitem__ Gets leaf or selection identified by argument.
__iter__ Iterates leaves in spanner.
__len__ Gets number of leaves in spanner.
__lt__ Is true when spanner is less than argument.
leaves Gets leaves in spanner.
tweaks Gets tweaks.

Special methods

__contains__(argument)

Is true when spanner contains argument.

Return type:bool
__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.

__getitem__(argument)

Gets leaf or selection identified by argument.

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

Iterates leaves in spanner.

Return type:Iterator[+T_co]
__len__()

Gets number of leaves in spanner.

Return type:int
__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

leaves

Gets leaves in spanner.

Return type:Selection
tweaks

Gets tweaks.

Return type:Optional[LilyPondTweakManager]