Funnily enough I tried your code from the first post Joule, but I don’t get any error reported. Renoise seems to just ignore ‘s_pos,e_pos’ and renders the full song…anyway no matter…
The proper way to initialize a renoise.SongPos() object seems to be:
local pos = renoise.SongPos(sequence_index, line_index)