verticalitytools.VerticalMoment

Inheritance diagram of abjad.tools.verticalitytools.VerticalMoment.VerticalMoment.VerticalMoment

class abjad.tools.verticalitytools.VerticalMoment.VerticalMoment.VerticalMoment(prolated_offset, governors, components)[source]

Everything happening at a single moment in musical time:

abjad> from abjad.tools import verticalitytools
abjad> score = Score([scoretools.PianoStaff([Staff("c'4 e'4 d'4 f'4"), Staff('g2 f2')])])
abjad> contexttools.ClefMark('bass')(score[0][1])
ClefMark('bass')(Staff{2})
f(score)
\new Score <<
    \new PianoStaff <<
        \new Staff {
            c'4
            e'4
            d'4
            f'4
        }
        \new Staff {
            \clef "bass"
            g2
            f2
        }
    >>
>>
abjad> for vertical_moment in verticalitytools.iterate_vertical_moments_forward_in_expr(score):
...     vertical_moment
...
VerticalMoment(0, <<2>>)
VerticalMoment(1/4, <<2>>)
VerticalMoment(1/2, <<2>>)
VerticalMoment(3/4, <<2>>)

Create vertical moments with the getters and iterators implemented in the verticalitytools module.

Vertical moments are immutable.

Read-only Properties

VerticalMoment.attack_count[source]

Positive integer number of pitch carriers starting at vertical moment.

VerticalMoment.components[source]

Read-only tuple of zero or more components happening at vertical moment.

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

VerticalMoment.governors[source]

Read-only tuple of one or more containers in which vertical moment is evaluated.

VerticalMoment.leaves[source]

Read-only tuple of zero or more leaves at vertical moment.

VerticalMoment.measures[source]

Read-only tuplet of zero or more measures at vertical moment.

VerticalMoment.next_vertical_moment[source]

Read-only reference to next vertical moment forward in time.

VerticalMoment.notes[source]

Read-only tuple of zero or more notes at vertical moment.

VerticalMoment.overlap_components[source]

Read-only tuple of components in vertical moment starting before vertical moment, ordered by score index.

VerticalMoment.overlap_leaves[source]

Read-only tuple of leaves in vertical moment starting before vertical moment, ordered by score index.

VerticalMoment.overlap_measures[source]

Read-only tuple of measures in vertical moment starting before vertical moment, ordered by score index.

VerticalMoment.overlap_notes[source]

Read-only tuple of notes in vertical moment starting before vertical moment, ordered by score index.

VerticalMoment.prev_vertical_moment[source]

Read-only reference to prev vertical moment backward in time.

VerticalMoment.prolated_offset[source]

Read-only rational-valued score offset at which vertical moment is evaluated.

VerticalMoment.start_components[source]

Read-only tuple of components in vertical moment starting with at vertical moment, ordered by score index.

VerticalMoment.start_leaves[source]

Read-only tuple of leaves in vertical moment starting with vertical moment, ordered by score index.

VerticalMoment.start_notes[source]

Read-only tuple of notes in vertical moment starting with vertical moment, ordered by score index.

Special Methods

VerticalMoment.__delattr__()

x.__delattr__(‘name’) <==> del x.name

Note

Inherited from __builtin__.object

VerticalMoment.__eq__(expr)[source]
VerticalMoment.__ge__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

VerticalMoment.__gt__(arg)

Abjad objects by default do not implement this method.

Raise exception

Note

Inherited from abctools.AbjadObject

VerticalMoment.__hash__()[source]
VerticalMoment.__le__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

VerticalMoment.__len__()[source]
VerticalMoment.__lt__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

VerticalMoment.__ne__(expr)[source]
VerticalMoment.__repr__()[source]
VerticalMoment.__setattr__()

x.__setattr__(‘name’, value) <==> x.name = value

Note

Inherited from __builtin__.object

VerticalMoment.__str__() <==> str(x)

Note

Inherited from __builtin__.object

Table Of Contents

This Page