KeySignature class

Representa a armadura de clef.

count Uses convenção MEI: positivo = sharps, negativo = bemóis. mode correspwhere to the atributo @mode de <staffDef> no MEI v5.

Inheritance

Constructors

KeySignature(int count, {int? previousCount, KeyMode? mode})

Properties

count int
Number de sharps (positivo) or bemóis (negativo).
final
hashCode int
The hash code for this object.
no setterinherited
mode KeyMode?
Modo tonal associado to the armadura (MEI @mode). null equivale a KeyMode.none.
final
previousCount int?
Contagem of the armadura previous (for renderizar naturais de cancelamento). Positivo = sharps previouses, negativo = bemóis previouses. null = nenhum cancelamento required.
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

alterFor(String step) double
The chromatic alteration this key applies to the diatonic step, as a Pitch.alter value: 1.0 for a sharp, -1.0 for a flat, 0.0 for a step the key leaves alone.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pitch(String step, int octave) Pitch
A Pitch on step/octave spelled as this key signature implies.
toString() String
A string representation of this object.
inherited

Operators

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