diff options
author | David Runge <dave@sleepmap.de> | 2016-07-09 17:57:47 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-07-09 17:57:47 +0200 |
commit | 32ab094864c3644093b5c765846a268d758f6614 (patch) | |
tree | bf9d54e1e9032ef710c605a2066bcb511688a688 | |
parent | 0f3042be76212505404e1860011e529b803b0e52 (diff) | |
download | bowelyzer-32ab094864c3644093b5c765846a268d758f6614.tar.gz bowelyzer-32ab094864c3644093b5c765846a268d758f6614.tar.bz2 bowelyzer-32ab094864c3644093b5c765846a268d758f6614.tar.xz bowelyzer-32ab094864c3644093b5c765846a268d758f6614.zip |
classes/BowelyzerAnalyzer.sc: Refactoring Routine with add and start of Synths into separate function, which is more convenient for outside calls.
-rw-r--r-- | classes/BowelyzerAnalyzer.sc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/classes/BowelyzerAnalyzer.sc b/classes/BowelyzerAnalyzer.sc index 39728bd..f0e984b 100644 --- a/classes/BowelyzerAnalyzer.sc +++ b/classes/BowelyzerAnalyzer.sc @@ -13,11 +13,7 @@ BowelyzerAnalyzer{ arg config; synths = Dictionary.new(config.at(\inputs).size); this.setupGroups; - this.addSynthsFromConfig(config); - Routine{ - 1.wait; - this.startSynthsFromConfig(config); - }.play; + this.setupSynthsFromConfig(config); } // setup a synth group for the analyzers @@ -28,6 +24,14 @@ BowelyzerAnalyzer{ NodeWatcher.register(monitoringGroup); } + setupSynthsFromConfig{ + arg config; + Routine{ + this.addSynthsFromConfig(config); + 1.wait; + this.startSynthsFromConfig(config); + }.play; + } // add synths for the defined channels addSynthsFromConfig{ arg config; |