RPE Chart Utils
    Preparing search index...

    Function addScaleXEvent

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

      scaleX controls the line's horizontal 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 X at startBeat (1 = no change, 2 = double-wide).

      • endValue: number

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

      // Widen the line from normal to 3× in 2 beats
      addScaleXEvent(chart, 0, 0, 2, 1, 3);