RPE Chart Utils
    Preparing search index...

    Function addInclineEvent

    • Add an incline (shear / perspective tilt) event to a line's extended events.

      The incline value tilts the line's note highway in 3-D perspective. A value of 0 is flat; positive values tilt the far end upward.

      Parameters

      • chart: RpeJson

        The RPE chart (modified in place).

      • lineIndex: number

        Target line.

      • startBeat: number

        Start beat.

      • endBeat: number

        End beat.

      • startValue: number

        Incline angle at startBeat (degrees).

      • endValue: number

        Incline angle at endBeat (degrees).

      • 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

      // Tilt from 0° to 30° over beats 0–4
      addInclineEvent(chart, 0, 0, 4, 0, 30);