OctaveSpanEvent class

One staff-scoped activation of an OctaveMark on the musical timeline.

onset is measured in whole notes from the start of the staff — the same absolute clock PositionedElement.onset carries, so LayoutEngine (which builds the timeline from the model, before anything is positioned) and StaffRenderer (which rebuilds it from a positioned list) produce identical events for the same music.

A producer using a per-measure clock instead would still be self-consistent: OctaveSpanTimeline only ever compares onsets of events sharing the same measureIndex, and within one bar the two conventions differ by a constant. Do not MIX the two in one timeline.

Constructors

OctaveSpanEvent(int measureIndex, double onset, OctaveMark mark)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
mark → OctaveMark
The mark itself.
final
measureIndex → int
Index of the measure the mark was written in.
final
onset → double
Musical time at which the bracket starts, on the clock described above.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited