RPE Chart Utils
    Preparing search index...

    Function addMoveYEvent

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

      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 Y at startBeat (chart space, ±450 is half-screen height).

      • endVal: number

        Line 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

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

      • options: EventOptions = {}

      Returns void

      // Drop the line from top to center
      addMoveYEvent(chart, 0, 0, 0, 4, 450, 0, 4);