aboutsummaryrefslogtreecommitdiffstats
path: root/classes/Bowelyzer.sc
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-07-09 18:49:29 +0200
committerDavid Runge <dave@sleepmap.de>2016-07-09 18:49:29 +0200
commit400e13a882ffa812387a35d91d7d39b90a16b4f8 (patch)
treea2718bc293f68d3a3314691d855bd6d1bc0697c3 /classes/Bowelyzer.sc
parentd42099fe9010c9f30faaa156235a021ad505d031 (diff)
downloadbowelyzer-400e13a882ffa812387a35d91d7d39b90a16b4f8.tar.gz
bowelyzer-400e13a882ffa812387a35d91d7d39b90a16b4f8.tar.bz2
bowelyzer-400e13a882ffa812387a35d91d7d39b90a16b4f8.tar.xz
bowelyzer-400e13a882ffa812387a35d91d7d39b90a16b4f8.zip
classes/Bowelyzer.sc: Moving the freeing of Synths up in the chain when calling freeChannel. Now using an ordered list of channel names, when freeing them.
Diffstat (limited to 'classes/Bowelyzer.sc')
-rw-r--r--classes/Bowelyzer.sc8
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/Bowelyzer.sc b/classes/Bowelyzer.sc
index 6c0d963..db6913d 100644
--- a/classes/Bowelyzer.sc
+++ b/classes/Bowelyzer.sc
@@ -206,8 +206,8 @@ Bowelyzer{
fileName = msg[1];
postln("Received: "++msg);
// free all channels
- config.config.at(\inputs).keysDo({ |name|
- this.freeChannel(name);
+ config.config.at(\inputs).order.do({ |name|
+ this.freeChannel(name.asSymbol);
});
// read the configuration file
if(config.readConfigurationFile(fileName),{
@@ -351,6 +351,8 @@ Bowelyzer{
freeChannel{
arg name;
("Removing channel: "++name).postln;
+ // free Synth
+ analyzer.freeAnalysisSynth(name);
// remove OSCdefs for the channel
OSCdef.all.pairsDo({|key, value|
if(key == name.asSymbol,{
@@ -362,8 +364,6 @@ Bowelyzer{
value.free;
});
});
- // free Synth
- analyzer.freeAnalysisSynth(name);
// remove configurations for the channel
config.config.at(\inputs).removeAt(name);
config.config.at(\controls).removeAt(name);