RPE Chart Utils
    Preparing search index...

    Function scalarEvent

    • Create a scalar variable event (keyframe for a uniform with a single numeric value).

      Parameters

      • startBeat: number

        Beat where the keyframe starts.

      • endBeat: number

        Beat where the keyframe ends.

      • startValue: number

        Uniform value at startBeat.

      • endValue: number

        Uniform value at endBeat.

      • easingType:
            | number
            | "linear"
            | "sineOut"
            | "sineIn"
            | "quadOut"
            | "quadIn"
            | "sineInOut"
            | "quadInOut"
            | "cubicOut"
            | "cubicIn"
            | "quartOut"
            | "quartIn"
            | "cubicInOut"
            | "quartInOut"
            | "quintOut"
            | "quintIn"
            | "expoOut"
            | "expoIn"
            | "circOut"
            | "circIn"
            | "backOut"
            | "backIn"
            | "circInOut"
            | "backInOut"
            | "elasticOut"
            | "elasticIn"
            | "bounceOut"
            | "bounceIn"
            | "bounceInOut" = 1

        RPE easing type (1–28) or name (e.g., 'cubicOut'). Default: 1 (linear).

      • options: VariableEventOptions = {}

      Returns ScalarVariableEvent

      A ScalarVariableEvent.

      // Fade 'power' from 0 to 0.05 over beats 0–4
      const kf = scalarEvent(0, 4, 0, 0.05);