TupletNumber class

configuração of the number of the tuplet

Constructors

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

Properties

fontSize → double
Size of the fonte (default: 1.2 staff spaces)
final
gapLeft → double
Space to the left of the number (0.4 staff spaces)
final
gapRight → double
Space to the right of the number (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 as razão completa (ex: 3:2) in vez de only numerator (3)
final
showNoteValue → bool
Mostrar figure de note junto to the razão (ex: 3:2♩)
final

Methods

generateText(int numerator, int denominator, {bool forceRatio = false}) → String
Generates o text of the number
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
Checks if is a razão comum and inequívoca
isIrrational(int denominator) → bool
Checks if o denominator is irracional (not is potência de 2 or 3)
isPowerOf2(int n) → bool
Checks if n is potência de 2
isPowerOf3(int n) → bool
Checks if n is potência de 3
shouldShowRatio(int numerator, int denominator, TimeSignature? timeSig) → bool
Determina if must mostrar a razão completa