getBeat method

double getBeat([
  1. bool estimateFramesSinceLastRender = true
])

Gets the current beat. Returns a value based on the number of frames rendered and the time elapsed since the last render callback. To omit the time elapsed since the last render callback, pass false.

Implementation

double getBeat([bool estimateFramesSinceLastRender = true]) {
  return framesToBeat(_getFrame(estimateFramesSinceLastRender));
}