RPE Chart Utils
    Preparing search index...

    Function addTextEvent

    • Add a text-display event to a line's extended events.

      The text is rendered on the line at the given beat range. Transitions between different strings are instantaneous (easing is effectively ignored for string interpolation).

      Parameters

      • chart: RpeJson

        The RPE chart (modified in place).

      • lineIndex: number

        Target line.

      • startBeat: number

        Beat at which this text becomes active.

      • endBeat: number

        Beat at which this text is removed.

      • startText: string

        Text string at startBeat.

      • endText: string

        Text string at endBeat (can equal startText for a constant value).

      • 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; mostly unused for strings).

      • options: EventOptions = {}

      Returns void

      // Show "READY" on a line for beats 0–2
      addTextEvent(chart, 0, 0, 2, 'READY', 'READY');