diff options
author | David Runge <dave@sleepmap.de> | 2016-05-29 20:45:16 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-05-29 20:45:16 +0200 |
commit | 318e600239121c18359a612602c99964e6b03301 (patch) | |
tree | b4e08ab59453af5c6225d23d92c2c5eca377c629 | |
parent | 9b7d0ee23c6a56df6e30be12b5b1e0b06972a896 (diff) | |
download | bowelyzer-318e600239121c18359a612602c99964e6b03301.tar.gz bowelyzer-318e600239121c18359a612602c99964e6b03301.tar.bz2 bowelyzer-318e600239121c18359a612602c99964e6b03301.tar.xz bowelyzer-318e600239121c18359a612602c99964e6b03301.zip |
BowelyzerOSCHub.sc: Externalizing the local NetAddresses' generation to a function. Making a local copy of the config obsolete. Clarifying TODO.
-rw-r--r-- | BowelyzerOSCHub.sc | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/BowelyzerOSCHub.sc b/BowelyzerOSCHub.sc index 028de55..a2ec888 100644 --- a/BowelyzerOSCHub.sc +++ b/BowelyzerOSCHub.sc @@ -1,5 +1,5 @@ BowelyzerOSCHub{ - var <>config, <hub, <forward, <synthServer, <synthServerListener; + var <hub, <forward, <synthServer, <synthServerListener; *new{ arg config; @@ -14,16 +14,20 @@ BowelyzerOSCHub{ init{ arg config; - this.config = config; + this.setupNetAddressesFromConfig(config); + this.addAnalysisListener(config); + } + + 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")); - this.addAnalysisListener; } - // setup a new listener for SynthServerAddress:SynthServerPort addAnalysisListener{ + arg config; // listen for individual SendReply messages config.at("names").do({|name| postln("Listening for messages called '/"++name++"' coming from scsynth."); @@ -42,6 +46,7 @@ BowelyzerOSCHub{ }); } - //TODO: add functions to set arguments for analyzer synths generically + //TODO: add functions to modify OSC listener behavior + +} -}
\ No newline at end of file |