toSixteenthNth method

int toSixteenthNth()

Resolves the Timing.nth value as a NoteType.sixteenth note

Implementation

int toSixteenthNth() {
  if (nth == 1) {
    return 1;
  } else {
    return (16 ~/ type.notesPerMeasure()) * (nth - 1) + 1;
  }
}