diff options
Diffstat (limited to 'BowelyzerOSCHub.sc')
-rw-r--r-- | BowelyzerOSCHub.sc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/BowelyzerOSCHub.sc b/BowelyzerOSCHub.sc index b73e201..4a7db26 100644 --- a/BowelyzerOSCHub.sc +++ b/BowelyzerOSCHub.sc @@ -20,25 +20,25 @@ BowelyzerOSCHub{ setupNetAddressesFromConfig{ arg config; - forward = BowelyzerOSCHub.getNetAddr(config.at("forwardAddress"), config.at("forwardPort")); - hub = BowelyzerOSCHub.getNetAddr(config.at("hubAddress"), config.at("hubPort")); - synthServer = BowelyzerOSCHub.getNetAddr(config.at("synthServerAddress"), config.at("synthServerPort")); + forward = BowelyzerOSCHub.getNetAddr(config.at(\forwardAddress), config.at(\forwardPort)); + hub = BowelyzerOSCHub.getNetAddr(config.at(\hubAddress), config.at(\hubPort)); + synthServer = BowelyzerOSCHub.getNetAddr(config.at(\synthServerAddress), config.at(\synthServerPort)); } // setup OSCdef for SynthServerAddress:SynthServerPort setupSynthListener{ arg config; // listen for individual SendReply messages - config.at("names").do({|name| + config.at(\inputs).keysValuesDo({|name, input| postln("Listening for messages called '/"++name++"' coming from scsynth at "++synthServer.ip++":"++synthServer.port++"."); OSCdef.newMatching( - name.asSymbol, + name, {|msg, time, addr, recvPort| this.forwardToNetAddress(msg, time)}, - '/'++name.asSymbol, + name, synthServer, hub.port ); - OSCdef(name.asSymbol).enable; + OSCdef(name).enable; }); } |