aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BowelyzerOSCHub.sc17
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