Tremolo

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.indicators" { graph [label="abjad.indicators"]; node [color=1]; "abjad.indicators.Tremolo.Tremolo" [URL="../api/abjad/indicators/Tremolo.html#abjad.indicators.Tremolo.Tremolo", color=black, fontcolor=white, label=Tremolo, target=_top]; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/indicators/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "abjad.system.AbjadValueObject.AbjadValueObject" [URL="../api/abjad/indicators/../system/AbjadValueObject.html#abjad.system.AbjadValueObject.AbjadValueObject", label="Abjad\nValue\nObject", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.AbjadValueObject.AbjadValueObject"; } 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.AbjadValueObject.AbjadValueObject" -> "abjad.indicators.Tremolo.Tremolo"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.indicators.Tremolo.Tremolo(beam_count=3, *, is_slurred=None)

Tremolo (of exactly two notes).

With two beams:

>>> chord = abjad.Chord("<cs' e'>4")
>>> tremolo = abjad.Tremolo(beam_count=2)
>>> abjad.attach(tremolo, chord)
>>> abjad.show(chord) 

With three beams:

>>> chord = abjad.Chord("<cs' e'>4")
>>> tremolo = abjad.Tremolo(beam_count=3)
>>> abjad.attach(tremolo, chord)
>>> abjad.show(chord) 

Tremolo affects the formatting of chords.

Tremolo has no effect when attached to notes or rests.


Attributes Summary

__copy__ Copies tremolo.
__format__ Formats stem tremolo.
__str__ Gets string representation of tremolo.
beam_count Gets beam count of tremolo.
is_slurred Is true when tremolo is slurred.
tweaks Are not implemented on tremolo.

Special methods

__copy__(*arguments)

Copies tremolo.

Copies tremolo:

>>> import copy
>>> tremolo_1 = abjad.Tremolo(beam_count=2)
>>> tremolo_2 = copy.copy(tremolo_1)
>>> tremolo_1 == tremolo_2
True
>>> tremolo_1 is not tremolo_2
True
Return type:Tremolo
(AbjadValueObject).__eq__(argument)

Is true when all initialization values of Abjad value object equal the initialization values of argument.

Returns true or false.

__format__(format_specification='')

Formats stem tremolo.

With two beams:

>>> tremolo = abjad.Tremolo(beam_count=2)
>>> print(format(tremolo))
abjad.Tremolo(
    beam_count=2,
    )

With three beams:

>>> tremolo = abjad.Tremolo(beam_count=3)
>>> print(format(tremolo))
abjad.Tremolo(
    beam_count=3,
    )
Return type:str
(AbjadValueObject).__hash__()

Hashes Abjad value object.

Returns integer.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.

__str__()

Gets string representation of tremolo.

>>> tremolo = abjad.Tremolo(beam_count=2)
>>> str(tremolo)
'Tremolo(beam_count=2)'
>>> tremolo = abjad.Tremolo(beam_count=3)
>>> str(tremolo)
'Tremolo(beam_count=3)'
Return type:str

Read-only properties

beam_count

Gets beam count of tremolo.

With two beams:

>>> chord = abjad.Chord("<cs' e'>4")
>>> tremolo = abjad.Tremolo(beam_count=2)
>>> abjad.attach(tremolo, chord)
>>> abjad.show(chord) 

With three beams:

>>> chord = abjad.Chord("<cs' e'>4")
>>> tremolo = abjad.Tremolo()
>>> abjad.attach(tremolo, chord)
>>> abjad.show(chord) 
Return type:int
is_slurred

Is true when tremolo is slurred.

Without slur:

>>> chord = abjad.Chord("<cs' e'>4")
>>> tremolo = abjad.Tremolo()
>>> abjad.attach(tremolo, chord)
>>> abjad.show(chord) 

With slur:

>>> chord = abjad.Chord("<cs' e'>4")
>>> tremolo = abjad.Tremolo(is_slurred=True)
>>> abjad.attach(tremolo, chord)
>>> abjad.show(chord) 
Return type:Optional[bool]
tweaks

Are not implemented on tremolo.

The LilyPond \repeat tremolo command refuses tweaks.

Override the LilyPond Beam grob instead.

Return type:None