currentMusicalValue property

double get currentMusicalValue

The current rhythmic value of the measure.

Voices sound simultaneously, so this is the largest per-voice sum (see musicalValueByVoice) and not the total of every element. For a single-voice measure both definitions coincide.

Implementation

double get currentMusicalValue {
  double maxValue = 0.0;
  for (final value in musicalValueByVoice.values) {
    if (value > maxValue) maxValue = value;
  }
  return maxValue;
}