ScoreRoundRunner constructor

ScoreRoundRunner({
  1. required MidiInputService midiInput,
  2. required SoundEngine engine,
  3. required ScoreRenderer renderer,
  4. required AppClock clock,
  5. double inputLatencyMs = 0,
  6. double rhythmToleranceMs = kDefaultRhythmToleranceMs,
  7. Duration repeatNoticeDuration = kRepeatNoticeDuration,
  8. Color correctColor = kPracticeCorrectColor,
  9. Color wrongColor = kPracticeWrongColor,
  10. Color pendingColor = kPracticePendingColor,
  11. Color studentColor = kStudentPartColor,
  12. bool autoTick = true,
  13. void onWaitTarget(
    1. double? onMs
    )?,
  14. void onRewind(
    1. int measureIndex,
    2. double startMs
    )?,
  15. bool? metronomeOn,
  16. 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(),
});