aboutsummaryrefslogtreecommitdiffstats
path: root/BowelyzerOSCHub.sc
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-06-29 20:21:14 +0200
committerDavid Runge <dave@sleepmap.de>2016-06-29 20:21:14 +0200
commite0fc99f204bdd6fffef611b9a3b4290cb001971c (patch)
tree300ffad532d42d745b77954311ef5a6378c92137 /BowelyzerOSCHub.sc
parent0f883cd9df74327a904da5a98ca35d4e7b82a90d (diff)
downloadbowelyzer-e0fc99f204bdd6fffef611b9a3b4290cb001971c.tar.gz
bowelyzer-e0fc99f204bdd6fffef611b9a3b4290cb001971c.tar.bz2
bowelyzer-e0fc99f204bdd6fffef611b9a3b4290cb001971c.tar.xz
bowelyzer-e0fc99f204bdd6fffef611b9a3b4290cb001971c.zip
BowelyzerOSCHub.sc: Introducing a local NetAddr to send indicator messages to.
Diffstat (limited to 'BowelyzerOSCHub.sc')
-rw-r--r--BowelyzerOSCHub.sc8
1 files changed, 6 insertions, 2 deletions
diff --git a/BowelyzerOSCHub.sc b/BowelyzerOSCHub.sc
index 7de5b72..14ec940 100644
--- a/BowelyzerOSCHub.sc
+++ b/BowelyzerOSCHub.sc
@@ -1,5 +1,5 @@
BowelyzerOSCHub{
- var <hub, <forward, <synthServer;
+ var <hub, <forward, <synthServer, local;
*new{
arg config;
@@ -16,6 +16,7 @@ BowelyzerOSCHub{
arg config;
this.setupNetAddressesFromConfig(config);
this.setupSynthListenersFromConfig(config);
+ local = NetAddr.new("127.0.0.1", NetAddr.langPort);
}
setupNetAddressesFromConfig{
@@ -39,7 +40,10 @@ BowelyzerOSCHub{
arg name;
OSCdef.newMatching(
name,
- {|msg, time, addr, recvPort| this.forwardToNetAddress(msg, time)},
+ {|msg, time, addr, recvPort|
+ local.sendMsg("/indicate", msg[0].asString.replace("/","").asSymbol);
+ this.forwardToNetAddress(msg, time);
+ },
name,
synthServer,
hub.port