aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2015-01-02 14:13:59 +0100
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2015-01-02 14:13:59 +0100
commit00c51645b36509ce4dc5385a291ebdb986bb18b1 (patch)
treef0ec7b358cf7f3aeaaccbd707b6195cc323b0e30
parentf5ef4656d0849452707b32e069d941c4556cc47f (diff)
downloadchimaera_xrnx-00c51645b36509ce4dc5385a291ebdb986bb18b1.zip
chimaera_xrnx-00c51645b36509ce4dc5385a291ebdb986bb18b1.tar.gz
chimaera_xrnx-00c51645b36509ce4dc5385a291ebdb986bb18b1.tar.bz2
chimaera_xrnx-00c51645b36509ce4dc5385a291ebdb986bb18b1.tar.xz
update to new config infra
-rw-r--r--chimaera_osc-midi_bridge/chimaera_osc-midi_bridge-custom.lua25
-rw-r--r--chimaera_osc-midi_bridge/chimaera_osc-midi_bridge-oscmidi.lua25
2 files changed, 30 insertions, 20 deletions
diff --git a/chimaera_osc-midi_bridge/chimaera_osc-midi_bridge-custom.lua b/chimaera_osc-midi_bridge/chimaera_osc-midi_bridge-custom.lua
index 49e7a7a..f9be20e 100644
--- a/chimaera_osc-midi_bridge/chimaera_osc-midi_bridge-custom.lua
+++ b/chimaera_osc-midi_bridge/chimaera_osc-midi_bridge-custom.lua
@@ -1,5 +1,5 @@
--[[
--- Copyright (c) 2014 Hanspeter Portner (dev@open-music-kontrollers.ch)
+-- Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
@@ -25,7 +25,19 @@
OscMessage = renoise.Osc.Message
-- open a socket connection to the server
-conf_server, err = renoise.Socket.create_server(4444, renoise.Socket.PROTOCOL_UDP)
+conf_client, err = renoise.Socket.create_client('chimaera.local', 4444, renoise.Socket.PROTOCOL_UDP)
+if err then
+ renoise.app():show_warning(('Failed to start the OSC client. Error: %s'):format(err))
+ return
+end
+
+print(conf_client.local_address)
+print(conf_client.local_port)
+print(conf_client.peer_address)
+print(conf_client.peer_port)
+
+-- open a socket connection to the server
+conf_server, err = renoise.Socket.create_server(conf_client.local_port, renoise.Socket.PROTOCOL_UDP)
if err then
renoise.app():show_warning(('Failed to start the OSC server. Error: %s'):format(err))
return
@@ -60,16 +72,9 @@ conf_server:run({
else
print(('Got invalid OSC data, or data which is not OSC data at all. Error: %s'):format(err))
end
- end
+ end
})
--- open a socket connection to the server
-conf_client, err = renoise.Socket.create_client( 'chimaera.local', 4444, renoise.Socket.PROTOCOL_UDP)
-if err then
- renoise.app():show_warning(('Failed to start the OSC client. Error: %s'):format(err))
- return
-end
-
oscarg = {}
setmetatable(oscarg, {
__index = function(self, k)
diff --git a/chimaera_osc-midi_bridge/chimaera_osc-midi_bridge-oscmidi.lua b/chimaera_osc-midi_bridge/chimaera_osc-midi_bridge-oscmidi.lua
index 246f9e7..5e64da0 100644
--- a/chimaera_osc-midi_bridge/chimaera_osc-midi_bridge-oscmidi.lua
+++ b/chimaera_osc-midi_bridge/chimaera_osc-midi_bridge-oscmidi.lua
@@ -1,5 +1,5 @@
--[[
--- Copyright (c) 2014 Hanspeter Portner (dev@open-music-kontrollers.ch)
+-- Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
@@ -25,7 +25,19 @@
OscMessage = renoise.Osc.Message
-- open a socket connection to the server
-conf_server, err = renoise.Socket.create_server(4444, renoise.Socket.PROTOCOL_UDP)
+conf_client, err = renoise.Socket.create_client('chimaera.local', 4444, renoise.Socket.PROTOCOL_UDP)
+if err then
+ renoise.app():show_warning(('Failed to start the OSC client. Error: %s'):format(err))
+ return
+end
+
+print(conf_client.local_address)
+print(conf_client.local_port)
+print(conf_client.peer_address)
+print(conf_client.peer_port)
+
+-- open a socket connection to the server
+conf_server, err = renoise.Socket.create_server(conf_client.local_port, renoise.Socket.PROTOCOL_UDP)
if err then
renoise.app():show_warning(('Failed to start the OSC server. Error: %s'):format(err))
return
@@ -60,16 +72,9 @@ conf_server:run({
else
print(('Got invalid OSC data, or data which is not OSC data at all. Error: %s'):format(err))
end
- end
+ end
})
--- open a socket connection to the server
-conf_client, err = renoise.Socket.create_client( 'chimaera.local', 4444, renoise.Socket.PROTOCOL_UDP)
-if err then
- renoise.app():show_warning(('Failed to start the OSC client. Error: %s'):format(err))
- return
-end
-
oscarg = {}
setmetatable(oscarg, {
__index = function(self, k)