diwali33
(diwali33)
March 24, 2022, 3:19pm
1
Hello
I want to usemy controler to increment or decrement the playhead position within the Edit window,
Ifound this topic :
I’ve decided fully Midi Map Renoise using my XioSynth, effectively using it as a master controller for it. I’ve found out how to change which column your in, but not Line Position. I’m basically trying to minimize the amount of times I need to use the mouse and keyboard. It would be neat to be able to control it almost entirely with the XioSynth. [:P]
It looks like I can get pretty close!
But it does not seem to work anymore ( attempt to call field ‘tool’ (a nil value))
Does anyone can help me ?
PS: i don’t find the option on the midimapping
1 Like
James_Britt
(James Britt / Neurogami)
March 24, 2022, 10:27pm
2
How did you attempt to run the code?
I think any reference to renoise:tool() has to happen in the context of a tool being installed.
The other code works fine in the dev editing window for me.
James_Britt
(James Britt / Neurogami)
March 25, 2022, 1:31am
3
I have this working.
1: Copy GlobalMidiActions.lua
to you scripts folder if it’s not already there
2. Add this code at the end:
add_action("Navigation: Increment edit pos",
function(message)
if message:is_trigger() then
local pos_queue = renoise.song().transport.edit_pos
pos_queue.line = pos_queue.line + 1
renoise.song().transport.edit_pos = pos_queue
end
end)
3: Start Renoise, hit ctrl+M (or option + M on mac, I think) to bring up the MIDI mapper.
4: Look under “Navigation” for “Increment edit pos” and map it to some MIDI command.
You can do the same to move the edit position the other way.
1 Like
diwali33
(diwali33)
March 25, 2022, 5:02pm
4
Ok thank you very much I’m tottaly new to Lua, and don’t understand a thing.
If i put it in the root of the script folder, it keep saying:
Script Error
GlobalMidiActions.lua:10: attempt to call field ‘tool’ (a nil value)
If i put it under Tools it don’t do anything
I use the last version of Renoise
James_Britt
(James Britt / Neurogami)
March 25, 2022, 5:30pm
5
Use the exact code I posted. This is not a tool, so the code can’t reference the tool API.
diwali33
(diwali33)
March 25, 2022, 5:38pm
6
Ok i understand, but where is this file
If i create only it with only your script addactionis not declared
I found it sorry
Thank you very much
diwali33
(diwali33)
March 25, 2022, 6:57pm
7
May be more, what about changing column position ( vol , pan , … )
I tried “pos_queue.column” but not working
James_Britt
(James Britt / Neurogami)
March 25, 2022, 8:35pm
8
Well this gets more complicated as you need to look at the Renoise scripting API, but I believe it’s all doable.