[solved] renoise.song():render broken? (3.1)

*** std::logic_error: ‘invalid ‘song_start’ or ‘song_end’ render option. expected start_pos < end_pos.’

What’s going on here?

local filename = os.tmpname("wav")

local s_pos = renoise.SongPos()
local e_pos = renoise.SongPos()
s_pos.sequence = 1
s_pos.line = 1
e_pos.sequence = 2
e_pos.line = 5

renoise.song():render({ s_pos, e_pos }, filename, function() print("Done!") end)
-- renoise.song():render({ start_pos = s_pos, end_pos = e_pos }, filename, function() print("done") end) -- doesn't work either

Fixed. The proper way to initialize a renoise.SongPos() object seems to be:

local pos = renoise.SongPos(sequence_index, line_index)

Kind of tricky to expect…

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)

Kind of tricky to expect…

I feel your pain sir :smiley: