VerticalMoment

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.VerticalMoment.VerticalMoment" [URL="../api/abjad/core/VerticalMoment.html#abjad.core.VerticalMoment.VerticalMoment", color=black, fontcolor=white, label="Vertical\nMoment", target=_top]; } 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", 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.core.VerticalMoment.VerticalMoment"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.core.VerticalMoment.VerticalMoment(components=None, offset=None)

Vertical moment.

>>> score = abjad.Score()
>>> staff_group = abjad.StaffGroup()
>>> staff_group.lilypond_type = 'PianoStaff'
>>> staff_group.append(abjad.Staff("c'4 e'4 d'4 f'4"))
>>> staff_group.append(abjad.Staff(r"""\clef "bass" g2 f2"""))
>>> score.append(staff_group)
>>> abjad.show(score) 
>>> for moment in abjad.iterate(score).vertical_moments():
...     moment
... 
VerticalMoment(0, <<2>>)
VerticalMoment(1/4, <<2>>)
VerticalMoment(1/2, <<2>>)
VerticalMoment(3/4, <<2>>)

Attributes Summary

__eq__ Is true when argument is a vertical moment with the same components as this vertical moment.
__hash__ Hases vertical moment.
__len__ Length of vertical moment.
__repr__ Gets interpreter representation of vertical moment.
attack_count Positive integer number of pitch carriers starting at vertical moment.
components Tuple of zero or more components happening at vertical moment.
governors Tuple of one or more containers in which vertical moment is evaluated.
leaves Tuple of zero or more leaves at vertical moment.
measures Tuple of zero or more measures at vertical moment.
next_vertical_moment Reference to next vertical moment forward in time.
notes Tuple of zero or more notes at vertical moment.
notes_and_chords Tuple of zero or more notes and chords at vertical moment.
offset Rational-valued score offset at which vertical moment is evaluated.
overlap_components Tuple of components in vertical moment starting before vertical moment, ordered by score index.
overlap_leaves Tuple of leaves in vertical moment starting before vertical moment, ordered by score index.
overlap_measures Tuple of measures in vertical moment starting before vertical moment, ordered by score index.
overlap_notes Tuple of notes in vertical moment starting before vertical moment, ordered by score index.
previous_vertical_moment Reference to previous vertical moment backward in time.
start_components Tuple of components in vertical moment starting with at vertical moment, ordered by score index.
start_leaves Tuple of leaves in vertical moment starting with vertical moment, ordered by score index.
start_notes Tuple of notes in vertical moment starting with vertical moment, ordered by score index.

Special methods

__eq__(argument)

Is true when argument is a vertical moment with the same components as this vertical moment.

Returns true or false.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

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

Returns string.

__hash__()

Hases vertical moment.

Redefined in tandem with __eq__.

__len__()

Length of vertical moment.

Defined equal to the number of components in vertical moment.

Returns nonnegative integer.

__repr__()

Gets interpreter representation of vertical moment.

Returns string.


Read-only properties

attack_count

Positive integer number of pitch carriers starting at vertical moment.

components

Tuple of zero or more components happening at vertical moment.

It is always the case that self.components = self.overlap_components + self.start_components.

governors

Tuple of one or more containers in which vertical moment is evaluated.

leaves

Tuple of zero or more leaves at vertical moment.

measures

Tuple of zero or more measures at vertical moment.

next_vertical_moment

Reference to next vertical moment forward in time.

notes

Tuple of zero or more notes at vertical moment.

notes_and_chords

Tuple of zero or more notes and chords at vertical moment.

offset

Rational-valued score offset at which vertical moment is evaluated.

overlap_components

Tuple of components in vertical moment starting before vertical moment, ordered by score index.

overlap_leaves

Tuple of leaves in vertical moment starting before vertical moment, ordered by score index.

overlap_measures

Tuple of measures in vertical moment starting before vertical moment, ordered by score index.

overlap_notes

Tuple of notes in vertical moment starting before vertical moment, ordered by score index.

previous_vertical_moment

Reference to previous vertical moment backward in time.

start_components

Tuple of components in vertical moment starting with at vertical moment, ordered by score index.

start_leaves

Tuple of leaves in vertical moment starting with vertical moment, ordered by score index.

start_notes

Tuple of notes in vertical moment starting with vertical moment, ordered by score index.