Component

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.AcciaccaturaContainer.AcciaccaturaContainer" [URL="../api/abjad/core/AcciaccaturaContainer.html#abjad.core.AcciaccaturaContainer.AcciaccaturaContainer", color=1, label="Acciaccatura\nContainer", target=_top]; "abjad.core.AfterGraceContainer.AfterGraceContainer" [URL="../api/abjad/core/AfterGraceContainer.html#abjad.core.AfterGraceContainer.AfterGraceContainer", color=1, label="After\nGrace\nContainer", target=_top]; "abjad.core.AppoggiaturaContainer.AppoggiaturaContainer" [URL="../api/abjad/core/AppoggiaturaContainer.html#abjad.core.AppoggiaturaContainer.AppoggiaturaContainer", color=1, label="Appoggiatura\nContainer", target=_top]; "abjad.core.Chord.Chord" [URL="../api/abjad/core/Chord.html#abjad.core.Chord.Chord", color=1, label=Chord, target=_top]; "abjad.core.Cluster.Cluster" [URL="../api/abjad/core/Cluster.html#abjad.core.Cluster.Cluster", color=1, label=Cluster, target=_top]; "abjad.core.Component.Component" [URL="../api/abjad/core/Component.html#abjad.core.Component.Component", color=black, fontcolor=white, label=Component, shape=oval, style="bold, filled", target=_top]; "abjad.core.Container.Container" [URL="../api/abjad/core/Container.html#abjad.core.Container.Container", color=1, label=Container, target=_top]; "abjad.core.Component.Component" -> "abjad.core.Container.Container"; "abjad.core.Leaf.Leaf" [URL="../api/abjad/core/Leaf.html#abjad.core.Leaf.Leaf", color=1, label=Leaf, shape=oval, style=bold, target=_top]; "abjad.core.Component.Component" -> "abjad.core.Leaf.Leaf"; "abjad.core.Container.Container" -> "abjad.core.AfterGraceContainer.AfterGraceContainer" [minlen=1]; "abjad.core.Container.Container" -> "abjad.core.Cluster.Cluster" [minlen=2]; "abjad.core.Context.Context" [URL="../api/abjad/core/Context.html#abjad.core.Context.Context", color=1, label=Context, target=_top]; "abjad.core.Container.Container" -> "abjad.core.Context.Context"; "abjad.core.GraceContainer.GraceContainer" [URL="../api/abjad/core/GraceContainer.html#abjad.core.GraceContainer.GraceContainer", color=1, label="Grace\nContainer", target=_top]; "abjad.core.Container.Container" -> "abjad.core.GraceContainer.GraceContainer"; "abjad.core.Measure.Measure" [URL="../api/abjad/core/Measure.html#abjad.core.Measure.Measure", color=1, label=Measure, target=_top]; "abjad.core.Container.Container" -> "abjad.core.Measure.Measure" [minlen=1]; "abjad.core.Tuplet.Tuplet" [URL="../api/abjad/core/Tuplet.html#abjad.core.Tuplet.Tuplet", color=1, label=Tuplet, target=_top]; "abjad.core.Container.Container" -> "abjad.core.Tuplet.Tuplet" [minlen=2]; "abjad.core.Score.Score" [URL="../api/abjad/core/Score.html#abjad.core.Score.Score", color=1, label=Score, target=_top]; "abjad.core.Context.Context" -> "abjad.core.Score.Score" [minlen=1]; "abjad.core.Staff.Staff" [URL="../api/abjad/core/Staff.html#abjad.core.Staff.Staff", color=1, label=Staff, target=_top]; "abjad.core.Context.Context" -> "abjad.core.Staff.Staff" [minlen=2]; "abjad.core.StaffGroup.StaffGroup" [URL="../api/abjad/core/StaffGroup.html#abjad.core.StaffGroup.StaffGroup", color=1, label="Staff\nGroup", target=_top]; "abjad.core.Context.Context" -> "abjad.core.StaffGroup.StaffGroup" [minlen=1]; "abjad.core.Voice.Voice" [URL="../api/abjad/core/Voice.html#abjad.core.Voice.Voice", color=1, label=Voice, target=_top]; "abjad.core.Context.Context" -> "abjad.core.Voice.Voice" [minlen=2]; "abjad.core.GraceContainer.GraceContainer" -> "abjad.core.AcciaccaturaContainer.AcciaccaturaContainer" [minlen=1]; "abjad.core.GraceContainer.GraceContainer" -> "abjad.core.AppoggiaturaContainer.AppoggiaturaContainer" [minlen=2]; "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"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject" [minlen=1]; }

abstract class abjad.core.Component.Component(name=None)

Component baseclass.


Attributes Summary

__copy__ Shallow copies component.
__format__ Formats component.
__illustrate__ Illustrates component.
__mul__ Copies component n times and detaches spanners.
__repr__ Gets interpreter representation of leaf.
__rmul__ Copies component n times and detach spanners.

Special methods

__copy__(*arguments)

Shallow copies component.

Copies indicators.

Does not copy spanners.

Does not copy children.

Returns new component.

__format__(format_specification='')

Formats component.

Returns string.

__illustrate__()

Illustrates component.

Returns LilyPond file.

__mul__(n)

Copies component n times and detaches spanners.

Returns list of new components.

__repr__()

Gets interpreter representation of leaf.

Returns string.

__rmul__(n)

Copies component n times and detach spanners.

Returns list of new components.