Create a scalar variable event (keyframe for a uniform with a single numeric value).
Beat where the keyframe starts.
Beat where the keyframe ends.
Uniform value at startBeat.
startBeat
Uniform value at endBeat.
endBeat
RPE easing type (1–28) or name (e.g., 'cubicOut'). Default: 1 (linear).
A ScalarVariableEvent.
ScalarVariableEvent
// Fade 'power' from 0 to 0.05 over beats 0–4const kf = scalarEvent(0, 4, 0, 0.05); Copy
// Fade 'power' from 0 to 0.05 over beats 0–4const kf = scalarEvent(0, 4, 0, 0.05);
Create a scalar variable event (keyframe for a uniform with a single numeric value).