centsDeviation property

double get centsDeviation

Returns the deviation in cents from the nearest tempered pitch.

Implementation

double get centsDeviation {
  final semitoneDeviation = effectiveAlter - effectiveAlter.round();
  return semitoneDeviation * 100.0; // 100 cents = 1 semitone
}