TupletNumber class

Configuração do número da quiáltera

Constructors

TupletNumber({double fontSize = 1.2, double gapLeft = 0.4, double gapRight = 0.5, bool showAsRatio = false, bool showNoteValue = false})
const

Properties

fontSize double
Tamanho da fonte (padrão: 1.2 staff spaces)
final
gapLeft double
Espaço à esquerda do número (0.4 staff spaces)
final
gapRight double
Espaço à direita do número (0.5 staff spaces)
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showAsRatio bool
Mostrar como razão completa (ex: 3:2) em vez de apenas numerador (3)
final
showNoteValue bool
Mostrar figura de nota junto à razão (ex: 3:2♩)
final

Methods

generateText(int numerator, int denominator, {bool forceRatio = false}) String
Gera o texto do número
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

Static Methods

isCommonRatio(int numerator, int denominator, TimeSignature? timeSig) bool
Verifica se é uma razão comum e inequívoca
isIrrational(int denominator) bool
Verifica se o denominador é irracional (não é potência de 2 ou 3)
isPowerOf2(int n) bool
Verifica se n é potência de 2
isPowerOf3(int n) bool
Verifica se n é potência de 3
shouldShowRatio(int numerator, int denominator, TimeSignature? timeSig) bool
Determina se deve mostrar a razão completa