Leaf

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.core" { graph [label="abjad.core"]; node [color=1]; "abjad.core.Chord.Chord" [URL="../api/abjad/core/Chord.html#abjad.core.Chord.Chord", color=1, label=Chord, target=_top]; "abjad.core.Component.Component" [URL="../api/abjad/core/Component.html#abjad.core.Component.Component", color=1, label=Component, shape=oval, style=bold, target=_top]; "abjad.core.Leaf.Leaf" [URL="../api/abjad/core/Leaf.html#abjad.core.Leaf.Leaf", color=black, fontcolor=white, label=Leaf, shape=oval, style="bold, filled", target=_top]; "abjad.core.Component.Component" -> "abjad.core.Leaf.Leaf"; "abjad.core.Leaf.Leaf" -> "abjad.core.Chord.Chord" [minlen=1]; "abjad.core.MultimeasureRest.MultimeasureRest" [URL="../api/abjad/core/MultimeasureRest.html#abjad.core.MultimeasureRest.MultimeasureRest", color=1, label="Multimeasure\nRest", target=_top]; "abjad.core.Leaf.Leaf" -> "abjad.core.MultimeasureRest.MultimeasureRest" [minlen=2]; "abjad.core.Note.Note" [URL="../api/abjad/core/Note.html#abjad.core.Note.Note", color=1, label=Note, target=_top]; "abjad.core.Leaf.Leaf" -> "abjad.core.Note.Note" [minlen=1]; "abjad.core.Rest.Rest" [URL="../api/abjad/core/Rest.html#abjad.core.Rest.Rest", color=1, label=Rest, target=_top]; "abjad.core.Leaf.Leaf" -> "abjad.core.Rest.Rest" [minlen=2]; "abjad.core.Skip.Skip" [URL="../api/abjad/core/Skip.html#abjad.core.Skip.Skip", color=1, label=Skip, target=_top]; "abjad.core.Leaf.Leaf" -> "abjad.core.Skip.Skip" [minlen=1]; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/core/../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.core.Component.Component" [minlen=1]; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject" [minlen=1]; }

abstract class abjad.core.Leaf.Leaf(written_duration)

Leaf baseclass.

Leaves include notes, rests, chords and skips.


Attributes Summary

__copy__ Shallow copies leaf.
__str__ Gets string representation of leaf.
written_duration Written duration of leaf.

Special methods

__copy__(*arguments)

Shallow copies leaf.

Returns new leaf.

(Component).__format__(format_specification='')

Formats component.

Returns string.

(Component).__illustrate__()

Illustrates component.

Returns LilyPond file.

(Component).__mul__(n)

Copies component n times and detaches spanners.

Returns list of new components.

(Component).__repr__()

Gets interpreter representation of leaf.

Returns string.

(Component).__rmul__(n)

Copies component n times and detach spanners.

Returns list of new components.

__str__()

Gets string representation of leaf.

Returns string.


Read/write properties

written_duration

Written duration of leaf.

Set to duration.

Returns duration.