Okay I’m working on a script to do some sysex stuff, but when I change the function in the editor I can’t seem to get it to change in the terminal (running functions via the terminal to see what happens)… Is this a thing to avoid? Should I get to the gui stuff ASAP? Because it seems I can’t overwrite functions (or only a couple of times before they freeze in memory). Here’s the code I’m working on, maybe someone can spot a mistake?
[luabox]
MIDICHANNEL = 0x7F – ALL
MIDIIN = 4 – nio 2|4
MIDIOUT = 5 – nio 2|4
sysxDeviceInquiry = {0xF0,0x7E,MIDICHANNEL,0x06,0x01,0xF7}
sysxEvoSig = {0xF0,0x7E,MIDICHANNEL,0x06,0x02,0x01,0x20,0x00,0x00,0x00,0x00,0x03,0x04,0x03,0xF7}
sysxReqPrgDump = {0xF0,0x01,0x20,0x01,0x05,0x00,0x00,0xF7}
ClockDivide = { }
function testEvo()
local inputs = renoise.Midi.available_input_devices()
local outputs = renoise.Midi.available_output_devices()
local midi_input = nil
local midi_output = nil
if not table.is_empty(inputs) then
local device_name = inputs[MIDIIN]
local function midi_callback(message)
local n = 1
while (message[n]) do
if(message[n] == sysxEvoSig[n]) then print(“DSI Evolver sig”, n, message[n]) end
n = n + 1
end
end
midi_input = renoise.Midi.create_input_device(device_name, midi_callback, midi_callback)
end
if not table.is_empty(outputs) then
local device_name = outputs[MIDIOUT]
midi_output = renoise.Midi.create_output_device(device_name)
end
print(“sysx Device Inquiry”)
midi_output:send(sysxDeviceInquiry)
– print(“sysxReqPrgDump”)
– midi_output:send(sysxReqPrgDump)
print(“Close”)
midi_output:close()
print(“All Done”)
end
[/luabox]
the code works, but if I try and change it (by pressing execute, or reload tools), nothing changes. I have to close the editor and restart it.