Remove all notes from a line, returning them.
Resets line.numOfNotes to 0.
line.numOfNotes
The RPE chart (modified in place).
Index of the target line.
Array of all removed notes (in original order).
const saved = clearNotes(chart, 2); // wipe all notes on line 2 Copy
const saved = clearNotes(chart, 2); // wipe all notes on line 2
Remove all notes from a line, returning them.
Resets
line.numOfNotesto 0.