RPE Chart Utils
    Preparing search index...

    Function addMoveXEvent

    • Add a moveX event to a specific event layer of a line.

      If the target layer index does not exist, intermediate layers are created automatically.

      Parameters

      • chart: RpeJson

        Chart (modified in place).

      • lineIndex: number

        Line index.

      • layerIndex: number

        Event layer index (0 = first layer).

      • startBeat: number

        Fractional beat where the event starts.

      • endBeat: number

        Fractional beat where the event ends.

      • startVal: number

        Line X at startBeat (chart space, ±675 is half-screen).

      • endVal: number

        Line 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

        RPE easing type 1–28 (default: 1 = linear).

      • options: EventOptions = {}

      Returns void

      // Slide from left edge to center with CubicOut over beats 0–4
      addMoveXEvent(chart, 0, 0, 0, 4, -675, 0, 8);