ScoreRoundRunner constructor
ScoreRoundRunner({ - required MidiInputService midiInput,
- required SoundEngine engine,
- required ScoreRenderer renderer,
- required AppClock clock,
- double inputLatencyMs = 0,
- double rhythmToleranceMs = kDefaultRhythmToleranceMs,
- Duration repeatNoticeDuration = kRepeatNoticeDuration,
- Color correctColor = kPracticeCorrectColor,
- Color wrongColor = kPracticeWrongColor,
- Color pendingColor = kPracticePendingColor,
- Color studentColor = kStudentPartColor,
- bool autoTick = true,
- void onWaitTarget(
- double? onMs
)?,
- void onRewind(
- int measureIndex,
- double startMs
)?,
- bool? metronomeOn,
- PassCriteria pass = const PassCriteria(),
})
Implementation
ScoreRoundRunner({
required this.midiInput,
required this.engine,
required this.renderer,
required this.clock,
this.inputLatencyMs = 0,
this.rhythmToleranceMs = kDefaultRhythmToleranceMs,
this.repeatNoticeDuration = kRepeatNoticeDuration,
this.correctColor = kPracticeCorrectColor,
this.wrongColor = kPracticeWrongColor,
this.pendingColor = kPracticePendingColor,
this.studentColor = kStudentPartColor,
this.autoTick = true,
this.onWaitTarget,
this.onRewind,
this.metronomeOn,
this.pass = const PassCriteria(),
});