advance

fun advance(deltaSeconds: Float, frame: SpectrumFrame, moodPaced: Float): Float

Follow an accepted pulse phase, with a two-second rate handover to/from free motion. The cycle origin is chosen locally; no bar or phrase is inferred from counted pulses.


fun advance(deltaSeconds: Float, bpm: Float, beatConfidence: Float, phrasePhase: Float, moodPaced: Float): Float

Deprecated

Use the SpectrumFrame overload for accepted rhythm evidence and unknown meter.

Moves the turn on by one frame and answers the new phase.

moodPaced is the speed used when no tempo is known, and it is scaled by the mood so a calm passage still turns slowly rather than at the same rate as a chorus.