diff options
Diffstat (limited to 'Bowelyzer.sc')
-rw-r--r-- | Bowelyzer.sc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Bowelyzer.sc b/Bowelyzer.sc index 3e2be34..5708368 100644 --- a/Bowelyzer.sc +++ b/Bowelyzer.sc @@ -1,21 +1,21 @@ Bowelyzer{ - var gui, <>server, <>analyzer, <>config, <>hub; + var gui, <server, <analyzer, <config, <hub; *new{ - arg config; - ^super.new.init(config); + arg configFile; + ^super.new.init(configFile); } init{ //initialize with configuration, if available (else use default) - arg config; - this.config = BowelyzerConfig.new(config); - server = Server.new(\bowelyzer, BowelyzerOSCHub.getNetAddr(this.config.config.at("synthServerAddress"), this.config.config.at("synthServerPort"))); + arg configFile; + config = BowelyzerConfig.new(configFile); + server = Server.new(\bowelyzer, BowelyzerOSCHub.getNetAddr(config.config.at("synthServerAddress"), config.config.at("synthServerPort"))); Server.default = server; server.waitForBoot({ - analyzer = BowelyzerAnalyzer.new(this.config.config); - hub = BowelyzerOSCHub.new(this.config.config); + hub = BowelyzerOSCHub.new(config.config); + analyzer = BowelyzerAnalyzer.new(config.config); }, 5, {"scsynth failed to start!".postln}); @@ -27,4 +27,4 @@ Bowelyzer{ -}
\ No newline at end of file +} |