anticipation

fun anticipation(window: Float = 0.15f): Float

How close the next onset is, 1 right on it and 0 further away than window.

A drawing that swells over this is already moving when the beat arrives, the way a dancer is. Falls back to the beat the tempo tracker predicts when no queue is attached, and to nothing at all when there is no tempo either.