LeadSheetJudge constructor

LeadSheetJudge({
  1. required List<ChartSlot> slots,
  2. required ChartSession chords,
  3. required MelodyJudge? melody,
  4. required int split,
  5. required int bpm,
  6. required List<UnderChange> changes,
})

Implementation

LeadSheetJudge({
  required List<ChartSlot> slots,
  required ChartSession chords,
  required MelodyJudge? melody,
  required this.split,
  required this.bpm,
  required this.changes,
}) : _chords = chords,
     _base = HarmonizeJudge(
       chords: chords,
       melody: melody,
       split: split,
       slots: slots,
       choices: [
         for (final slot in slots) [HarmonyChord(slot.degree, slot.chord!)],
       ],
     ) {
  _subscriptions.add(_base.verdicts.listen(_verdicts.add));
}