diff options
author | David Runge <dave@sleepmap.de> | 2016-06-19 19:33:36 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-06-19 19:33:36 +0200 |
commit | 830f1d296e402a89c6146e4183e1a2490ca64406 (patch) | |
tree | 56ecef28182f57e5f3971fc06e2f9ab6a46efeb0 /BowelyzerOSCHub.sc | |
parent | 5b3f3167eaf5f4165ba471afc7b3894e1d81ce79 (diff) | |
download | bowelyzer-830f1d296e402a89c6146e4183e1a2490ca64406.tar.gz bowelyzer-830f1d296e402a89c6146e4183e1a2490ca64406.tar.bz2 bowelyzer-830f1d296e402a89c6146e4183e1a2490ca64406.tar.xz bowelyzer-830f1d296e402a89c6146e4183e1a2490ca64406.zip |
Bowelyzer.sc, BowelyzerAnalyzer.sc, BowelyzerConfig.sc, BowelyzerOSCHub.sc: Moving from String based identifiers to Symbols. Further refining the configuration parsing and validation process. darmstadt.json: Moving names into inputs Dictionary, holding channel number (offsets are not required/feasible) and name.
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; }); } |