RPE Chart Utils
    Preparing search index...

    Function addGifEvent

    • Add a GIF frame-animation event to a line's extended events.

      Used when the line's texture is an animated GIF; the event controls the current frame index over time.

      Parameters

      • chart: RpeJson

        The RPE chart (modified in place).

      • lineIndex: number

        Target line.

      • startBeat: number

        Start beat.

      • endBeat: number

        End beat.

      • startFrame: number

        Frame index at startBeat.

      • endFrame: number

        Frame index 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 / step through frames).

      • options: GifEventOptions = {}

      Returns void

      // Cycle frames 0–15 over 2 beats
      addGifEvent(chart, 2, 0, 2, 0, 15);