@motion-script/core / sourceTimeAtSceneElapsed
Function: sourceTimeAtSceneElapsed()
sourceTimeAtSceneElapsed(
speed,sourceLength,sceneElapsed,step?):number
Defined in: attributes/audio/filters/curve.ts:309
Inverse of integrateSpeedToSceneTime: the source-time offset reached
after sceneElapsed seconds of scene time under the speed curve. This is what a
mid-clip seek needs to compute the correct buffer offset for a speed-curved clip.
The curve is always resolved against the full sourceLength.
Parameters
speed
sourceLength
number
sceneElapsed
number
step?
number = INTEGRATION_STEP
Returns
number