RPE Chart Utils
    Preparing search index...

    Function addNotes

    • Add multiple notes at once to a line.

      Each entry in beats can be either:

      • A plain beat number (uses sharedOptions for all fields)
      • A [beat, options] tuple (per-note options override sharedOptions)

      Parameters

      • chart: RpeJson

        The RPE chart (modified in place).

      • lineIndex: number

        Target line index.

      • beats: (number | [number, CreateNoteOptions])[]

        Array of beats or [beat, options] tuples.

      • sharedOptions: CreateNoteOptions = {}

        Options applied to all notes (overridden by per-note options).

      Returns number[]

      Array of note indices in insertion order.

      // Add 4 taps at beats 1, 2, 3, 4
      addNotes(chart, 0, [1, 2, 3, 4], { type: 1 });

      // Mix of taps and a flick
      addNotes(chart, 0, [
      [1, { type: 1, positionX: -200 }],
      [2, { type: 1, positionX: 200 }],
      [3, { type: 3 }],
      ]);