song_pos is an object and the foul part about this is in a general script you need to transfer the object to a self-made variable, then change the values in that variable and then transfer the variable back to the object.
So it should be something like (this is quickly from the back of my head!):
handler = function(
local my_songpos = renoise.song().song_pos
my_songpos.line = number
renoise.song().song_pos = my_songpos
)
But i think you get the raw idea of what i do above.
Then what I intended was to be able to set the line while
playing the pattern. When I see all these amazing tweaks
people script in LUA I’m sure that what I want to do is
really simple but I almost got a brain stroke from trying
to get it done. But I’m learning at least.
I’m spending already lots of time building a homemade DAW
for live performance, I want to extend the basic osc communication
with a few things like the one mentionned above.
I’d really need a “tutorial” example of how to create a new control
over Renoise’s API to get started, I bet then I could fully understand
the scripting concept.