OSC only sending on Renoise startup

Hey everyone,

I am trying to get OSC messages sending from a lua script tool in Renoise. For now I just am using the OSC send example script from the renoise scripting webiste:

Blockquote

– create some shortcuts
local OscMessage = renoise.Osc.Message
local OscBundle = renoise.Osc.Bundle

– open a socket connection to the server
local client, socket_error = renoise.Socket.create_client(
“localhost”, 8000, renoise.Socket.PROTOCOL_UDP)

if (socket_error) then
renoise.app():show_warning(("Failed to start the " …
“OSC client. Error: ‘%s’”):format(socket_error))
return
end

– construct and send messages
client:send(
OscMessage(“/someone/transport/start”)
)

client:send(
OscMessage(“/someone/transport/bpm”, {
{tag=“f”, value=127.5}
})
)

– construct and send bundles
client:send(
OscBundle(os.clock(), OscMessage(“/someone/transport/start”))
)

local message1 = OscMessage(“/some/message”)

local message2 = OscMessage(“/another/one”, {
{tag=“b”, value=“with some blob data”},
{tag=“s”, value=“and a string”}
})

client:send(
OscBundle(os.clock(), {message1, message2})
)

Blockquote

I have my OSC monitor running (Protokol) and oddly this script will only send OSC messages right when Renoise is started. When I press execute or use the Reload All Tools option in the menu nothing is sent. I also tried some other scripts and I can’t seem to ever get OSC messages sent outside of startup. Anyone know how to get around this?

To be clear, my ports are forwarded and I am able to send OSC messages via python just fine, so I don’t think it’s a port issue.

Nevermind, I found the issue. The Renoise OSC server in the settings cannot be the same port as the one you are sending it too.

1 Like