sightSpanOf function

int sightSpanOf(
  1. Iterable<SightNote> notes
)

O tempo que as figuras de notes ocupam juntas, em tiques. Num compasso bem formado, é o compasso.

Implementation

int sightSpanOf(Iterable<SightNote> notes) {
  var sum = 0.0;
  for (final n in notes) {
    sum += n.span;
  }
  return sum.round();
}