notesPerMeasure method

int notesPerMeasure()

How many notes this note type occurs in a measure

Implementation

int notesPerMeasure() => switch (this) {
      NoteType.whole => 1,
      NoteType.half => 2,
      NoteType.quarter => 4,
      NoteType.eighth => 8,
      NoteType.sixteenth => 16
    };