ScoreDefinition class
Definição global de partitura, correspondendo ao elemento <scoreDef>
do MEI v5.
<scoreDef> centraliza informações que se aplicam a toda a partitura
no início de um <section> ou após uma mudança global, evitando repetir
as mesmas definições em cada <staffDef>.
ScoreDefinition(
clef: Clef(clefType: ClefType.treble),
keySignature: KeySignature(0),
timeSignature: TimeSignature(numerator: 4, denominator: 4),
tempo: TempoMark(beatUnit: DurationType.quarter, bpm: 120, text: 'Allegro'),
)
Constructors
- ScoreDefinition({Clef? clef, KeySignature? keySignature, TimeSignature? timeSignature, TempoMark? tempo, Dynamic? dynamic, int defaultStaffLines = 5, bool accidentalsAbove = true, String? xmlId})
-
const
Properties
- accidentalsAbove → bool
-
Direção padrão dos acidentes acima da pauta.
final
- clef → Clef?
-
Clave padrão para todas as pautas (pode ser sobreposta por
<staffDef>).final - defaultStaffLines → int
-
Número de linhas padrão para todas as pautas (normalmente 5).
Corresponde a
@linesem<staffDef>.final - dynamic → Dynamic?
-
Dinâmica inicial.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keySignature → KeySignature?
-
Armadura de clave global.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tempo → TempoMark?
-
Indicação de tempo (andamento).
final
- timeSignature → TimeSignature?
-
Fórmula de compasso global.
final
- xmlId → String?
-
Identificador único MEI (
xml:id).final
Methods
-
copyWith(
{Clef? clef, KeySignature? keySignature, TimeSignature? timeSignature, TempoMark? tempo, Dynamic? dynamic, int? defaultStaffLines, bool? accidentalsAbove, String? xmlId}) → ScoreDefinition -
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