HarmonySegment class

Um trecho da melodia: o começo e o fim em semínimas, o compasso (base 0) em que começa, as notas que começam nele e as fortes (as do tempo 1 e 3, e as longas, mínima ou mais).

Constructors

HarmonySegment({required int index, required double start, required double end, required int measure, required List<MelodyNote> notes, required List<MelodyNote> strong})
const

Properties

beats → double
no setter
end → double
final
first → MelodyNote?
A nota do tempo 1 do trecho: a primeira forte, ou a primeira nota se não há forte. null num trecho sem nota (um silêncio).
no setter
hashCode → int
The hash code for this object.
no setterinherited
index → int
A posição do trecho na melodia, de 0.
final
measure → int
O compasso (base 0) em que o trecho começa.
final
notes → List<MelodyNote>
As notas que começam no trecho, em ordem.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → double
final
strong → List<MelodyNote>
As fortes do trecho, em ordem.
final

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