FoscVerticalMoment

Returns a FoscVerticalMoment.


Description

Vertical moment of a component.


Attributes Summary

Instance Properties

attackCount 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.
items Gets items of vertical moment.
nextVerticalMoment Reference to next vertical moment forward in time.
notes Tuple of zero or more notes at vertical moment.
notesAndChords Tuple of zero or more notes and chords at vertical moment.
offset Rational-valued score offset at which vertical moment is evaluated.
overlapComponents Tuple of components in vertical moment starting before vertical moment, ordered by score index.
overlapLeaves Tuple of leaves in vertical moment starting before vertical moment, ordered by score index.
overlapMeasures Tuple of measures in vertical moment starting before vertical moment, ordered by score index.
overlapNotes Tuple of notes in vertical moment starting before vertical moment, ordered by score index.
previousVerticalMoment Reference to previous vertical moment backward in time.
startComponents Tuple of components in vertical moment starting with at vertical moment, ordered by score index.
startLeaves Tuple of leaves in vertical moment starting with vertical moment, ordered by score index.
startNotes Tuple of notes in vertical moment starting with vertical moment, ordered by score index.

Instance Methods: Special Methods

== (abjad: eq)
hash Hashes vertical moment.
size Length of vertical moment.
asCompileString (abjad: repr)


Usage

  1. FIXME ERROR: Message prVerticalMomentAt not understood.

    g = FoscStaffGroup();
    g.lilypondType = "PianoStaff";
    g.add(FoscStaff(FoscLeafMaker().("C4 D4 E4 F4", [1/4])));
    g.add(FoscStaff(FoscLeafMaker().("G3 F3", [2/4])));
    g[1][0].attach(FoscClef('bass'));
    x = FoscScore([g]);
    x.show;

    m = g.prVerticalMomentAt(FoscOffset(2/4));
    m.attackCount;
    m.startLeaves.do { |each| each.inspect };
    m.startNotes.do { |each| each.inspect };
    m.overlapLeaves.do { |each| each.inspect };
    m.leaves.items;


Instance Properties


attackCount

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.


items

Gets items of vertical moment.

Returns component or selection.


nextVerticalMoment

Reference to next vertical moment forward in time.


notes

Tuple of zero or more notes at vertical moment.


notesAndChords

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


offset

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


overlapComponents

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


overlapLeaves

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


overlapMeasures

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


overlapNotes

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


previousVerticalMoment

Reference to previous vertical moment backward in time.


startComponents

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


startLeaves

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


startNotes

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


Instance Methods: Special Methods


==

(abjad: eq)

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

Returns true or false.


hash

Hashes vertical moment.

Returns integer.


size

Length of vertical moment.

Defined equal to the number of components in vertical moment.

Returns nonnegative integer.


asCompileString

(abjad: repr)

Gets interpreter representation of vertical moment.

Returns string.