MotionScript

@motion-script/core


@motion-script/core / lerpParam

Function: lerpParam()

lerpParam(from, to, t): Param

Defined in: attributes/audio/filters/curve.ts:253

Interpolate between two params at progress t. Two numbers lerp; if either is a curve, hard-cut at t=0.5 (curve↔curve interpolation is out of scope — this only affects crossfades between two different filter chains, which is rare).

Parameters

from

Param

to

Param

t

number

Returns

Param