hasNotes property

bool get hasNotes

Check if this voice contains any notes (not just rests)

Implementation

bool get hasNotes {
  return elements.any((e) => e is Note || e is Chord);
}