diff options
author | David Runge <dave@sleepmap.de> | 2016-05-29 20:27:47 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-05-29 20:27:47 +0200 |
commit | b0bb16fd10d5e2a3b751cda88eed8211b8ef510b (patch) | |
tree | 612fc6a5abbda0c0c93097a8032079581205e212 /Bowelyzer.sc | |
parent | 74bb3e3290d8f4ea82b2caf79f4b96bb7991faad (diff) | |
download | bowelyzer-b0bb16fd10d5e2a3b751cda88eed8211b8ef510b.tar.gz bowelyzer-b0bb16fd10d5e2a3b751cda88eed8211b8ef510b.tar.bz2 bowelyzer-b0bb16fd10d5e2a3b751cda88eed8211b8ef510b.tar.xz bowelyzer-b0bb16fd10d5e2a3b751cda88eed8211b8ef510b.zip |
Bowelyzer.sc: Variables do not have to be settable. Renaming constructor parameter to have less confusion and naming conflicts with the global config object.
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 +} |