RhythmPattern class
A class representing a rhythm pattern.
Constructors
-
RhythmPattern(List<
double> durations) - Creates a new rhythm pattern.
Properties
-
durations
→ List<
double> -
The sequence of durations in the rhythm pattern.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalDuration → double
-
Calculates the total duration of the rhythm pattern.
no setter
Methods
-
normalize(
) → RhythmPattern - Normalizes the durations in the rhythm pattern so that they sum to 1.0.
-
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