Measure class

A measure: holds maxVoices voices of beats. Several header properties are promoted here for convenience, matching PyGuitarPro.

Constructors

Measure(Track track, MeasureHeader header, {List<Voice>? voices, LineBreak lineBreak = LineBreak.none})
Creates a measure, filling in maxVoices empty voices if none are given.

Properties

end num
End time in ticks (from the header).
no setter
hashCode int
The hash code for this object.
no setterinherited
The shared header describing this measure.
final
length num
Length in ticks (from the header).
no setter
lineBreak LineBreak
Line-break behaviour after this measure.
getter/setter pair
number int
1-based measure number (from the header).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start num
Start time in ticks (from the header).
no setter
timeSignature TimeSignature
Time signature in effect (from the header).
no setter
track Track
The track this measure belongs to.
final
voices List<Voice>
The measure's voices.
getter/setter pair

Methods

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

Operators

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

Constants

maxVoices → const int
Number of voices a measure holds.