NoteDifficulty constructor

NoteDifficulty(
  1. SoundEvent event,
  2. int? measure,
  3. Map<DifficultyTerm, double> terms
)

Implementation

NoteDifficulty(this.event, this.measure, this.terms)
  : factor = kBaseFactor + terms.values.fold<double>(0, (s, v) => s + v);