RPE Chart Utils
    Preparing search index...

    Function addScaleYEvent

    • Add a vertical scale event to a line's extended events.

      scaleY controls the line's vertical stretch factor (1 = normal).

      Parameters

      • chart: RpeJson

        The RPE chart (modified in place).

      • lineIndex: number

        Target line.

      • startBeat: number

        Start beat.

      • endBeat: number

        End beat.

      • startValue: number

        Scale Y at startBeat (1 = no change).

      • endValue: number

        Scale Y 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

        Easing type (default: 1 = linear).

      • options: EventOptions = {}

      Returns void

      // Pulse vertical scale: 1 → 2 → 1 across 2 beats
      addScaleYEvent(chart, 0, 0, 1, 1, 2);
      addScaleYEvent(chart, 0, 1, 2, 2, 1);