aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-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);