RPE Chart Utils
    Preparing search index...

    Function clearNotes

    • Remove all notes from a line, returning them.

      Resets line.numOfNotes to 0.

      Parameters

      • chart: RpeJson

        The RPE chart (modified in place).

      • lineIndex: number

        Index of the target line.

      Returns Note[]

      Array of all removed notes (in original order).

      const saved = clearNotes(chart, 2); // wipe all notes on line 2