remainingValue property

double get remainingValue

Returns how much rhythmic time remains in the measure.

Computed from the fullest voice: capacity - currentMusicalValue. Use ts.measureValue - musicalValueOfVoice(n) for the room left in a specific voice.

Implementation

double get remainingValue {
  final ts = timeSignature;
  if (ts == null) return double.infinity;
  return ts.measureValue - currentMusicalValue;
}