VerticalMoment¶

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
Rationalvalued 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.
Readonly 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
¶ Rationalvalued 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.
