PlayingTimeMeter class

Quanto tempo o aluno ficou tocando: a soma dos intervalos entre notas tocadas (note-on) que não passam de idleGap segundos. Uma pausa maior (o aluno parou para ler, por exemplo) não entra no total.

Constructors

PlayingTimeMeter({double idleGap = 30})

Properties

hashCode → int
The hash code for this object.
no setterinherited
idleGap → double
Segundos de silêncio que encerram um trecho de toque.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seconds → double
Segundos tocados até agora.
no setter

Methods

breakSegment() → void
Fecha o trecho atual: o próximo toque começa outro, sem contar a pausa.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start(Stream<PlayedNote> notes) → void
Escuta notes até stop.
stop() → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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