TimeSignature class
Representa a fórmula de measure.
Suporta:
- Fórmulas simples:
TimeSignature(numerator: 4, denominator: 4) - Fórmulas compostas:
TimeSignature(numerator: 6, denominator: 8) - Tempo livre:
TimeSignature.free() - Fórmulas aditivas:
TimeSignature.additive(groups: [3,2,2], denominator: 8)
- Inheritance
-
- Object
- MusicalElement
- TimeSignature
Constructors
-
TimeSignature({required int numerator, required int denominator, bool isFreeTime = false, List<
AdditiveMeterGroup> ? additiveGroups}) -
TimeSignature.additive({required List<
int> groups, required int denominator}) -
Creates a fórmula aditiva, e.g., (3+2+2)/8.
factory
- TimeSignature.free()
-
Creates a fórmula de tempo livre (senza misura).
factory
Properties
-
additiveGroups
→ List<
AdditiveMeterGroup> ? -
Grupos aditivos for fórmulas as (3+2+2)/8.
When not null, overrides numerator as the beat grouping.
Correspwhere a
<meterSigGrp>no MEI v5.final - denominator → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAdditive → bool
-
Checks if is a fórmula aditiva.
no setter
- isCompound → bool
-
Checks if is a tempo composto.
Examples: 6/8, 9/8, 12/8
no setter
- isFreeTime → bool
-
Indicates tempo livre (senza misura). When
true, a fórmula is displayed as "X" or omitida. Correspwhere to the ausência de<meterSig>no MEI v5.final - isSimple → bool
-
Checks if is a tempo simples.
Examples: 2/4, 3/4, 4/4, 5/4, 7/8
no setter
- measureValue → double
-
Calculates o value total permitido no measure.
Fórmula: numerator × (1 / denominator). Returns infinito for tempo livre.
no setter
- numerator → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- xmlId ↔ String?
-
Identificador único MEI (
xml:id). Opcional; required for elementos referenciados by other via atributos de ligação of the MEI v5.getter/setter pairinherited
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