RPE Chart Utils
    Preparing search index...

    Function removeNote

    • Remove a note from a line by index.

      line.numOfNotes is decremented automatically.

      Parameters

      • chart: RpeJson

        The RPE chart (modified in place).

      • lineIndex: number

        Index of the target line.

      • noteIndex: number

        Index within line.notes to remove.

      Returns Note | undefined

      The removed Note, or undefined if the index is out of range.

      const removed = removeNote(chart, 0, 3); // remove 4th note on line 0