I am getting error can't add child . but am not sure why. the code works but it generates thousands of the same error.
# This file ModeDisplay.gd
var note= load("res://noteVew.tscn")
func _process(delta):
genButtons()
func genButtons():
for i in numberOfNotesInDisplay:
modeNotes.append(note.instance())
modeNotes[i].text = str(modText[MOD][i])
add_child(modeNotes[i]
ERROR 0:00:02.814 add_child: Can't add child 'noteVew' to 'ModeDisplay', already has a parent 'ModeDisplay'.
<C++ Error> Condition "p_child->data.parent" is true.
<C++ Source> scene/main/node.cpp:1282 @ add_child()
<Stack Trace> ModeDisplay.gd:153 @ genButtons()
ModeDisplay.gd:123 @ _process()