From 830f1d296e402a89c6146e4183e1a2490ca64406 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 19 Jun 2016 19:33:36 +0200 Subject: 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. --- BowelyzerOSCHub.sc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'BowelyzerOSCHub.sc') 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; }); } -- cgit v1.2.3-54-g00ecf