SightEvent class

Uma nota escrita da frase: a pauta, a voz (0 é a principal), o compasso (base 0) e a posição, em tiques desde o começo do exercício. ids são as notas escritas que ela representa (uma, ou mais quando uma ligadura ou a mudança juntou figuras). A posição e a duração são fracionárias só nas notas de um grupo irregular (SightTuplet.groupTicks).

Constructors

SightEvent({required int staff, int voice = 0, required int measure, required double start, required double ticks, required SightTone tone, required int midi, required List<String> ids, bool inChord = false, bool extra = false, bool grace = false, bool locked = false, SightOrnament? ornament, int tremolo = 0})
const

Properties

extra → bool
Se é uma das notas de cima de um acorde, não a de baixo.
final
grace → bool
Se é uma apojatura breve, que não é pergunta no ditado.
final
hashCode → int
The hash code for this object.
no setterinherited
ids → List<String>
final
inChord → bool
Se a nota é de um acorde (a de baixo ou uma das de cima).
final
locked → bool
Se a nota é ligada, de quiáltera, de ornamento ou de apojatura longa: a mudança não mexe nela.
final
measure → int
final
midi → int
final
ornament → SightOrnament?
O ornamento escrito na nota (sightTimedNotes o faz soar).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staff → int
final
start → double
final
ticks → double
final
tone → SightTone
A altura escrita, para fazer a conta de uma mudança.
final
tremolo → int
As barras do trêmolo escrito da nota (SightNote.tremolo); 0, nenhum.
final
voice → int
final

Methods

copyWith({double? start, double? ticks, SightTone? tone, int? midi, List<String>? ids, bool? locked}) → SightEvent
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