beatToFrames method

int beatToFrames(
  1. double beat
)

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

Implementation

int beatToFrames(double beat) {
  // (min / b) * (ms) * (ms / min)
  final us = ((1 / tempo) * beat * (60000000)).round();

  return Sequence.globalState.usToFrames(us);
}