clear() a pattern line?

haha ignore this post, i realized my problem immediately after posting (typo “.” instead of “:”).

i can’t figure out how to delete the post so i’ll leave it here in case anyone has the same issue…

documentation suggests this should be possible:

-- Clear all note and effect columns.[].tracks[].lines[]:clear()

but if i try this code:[1].lines[1].clear()

it gives me this error:

*** No matching overload found, candidates:
*** void clear(PatternLine&)


possibly, you may want to use selected_pattern_track directly, also, I suggest you bind the and other things you’ll use often to a local variable e.g.

local sng =
local sel_pat_track = sng.selected_pattern_track

this will noticeably improve the speed of your script