diff options
author | David Runge <dave@sleepmap.de> | 2016-06-29 20:21:14 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-06-29 20:21:14 +0200 |
commit | e0fc99f204bdd6fffef611b9a3b4290cb001971c (patch) | |
tree | 300ffad532d42d745b77954311ef5a6378c92137 | |
parent | 0f883cd9df74327a904da5a98ca35d4e7b82a90d (diff) | |
download | bowelyzer-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.
-rw-r--r-- | BowelyzerOSCHub.sc | 8 |
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 |