framesToBeat method

double framesToBeat(
  1. int frames
)

For internal use only. Converts sample frames to a beat.

Implementation

double framesToBeat(int frames) {
  final us = Sequence.globalState.framesToUs(frames);

  // (b / min) * us * (min / us)
  return tempo * us * (1 / 60000000);
}