diff options
-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 |