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.
renoise.song().patterns[].tracks[].lines[]:clear()

but if i try this code:

renoise.song().selected_pattern.tracks[1].lines[1].clear()

it gives me this error:

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

sh

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

local sng = renoise.song()
local sel_pat_track = sng.selected_pattern_track

this will noticeably improve the speed of your script