aboutsummaryrefslogtreecommitdiffstats
path: root/Bowelyzer.sc
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-06-29 21:42:26 +0200
committerDavid Runge <dave@sleepmap.de>2016-06-29 21:42:26 +0200
commit9b6f50d1f32064f1f5ee74b2281e3313e81de7a4 (patch)
tree58fa264d6b0d5b6b8f653f729ab726687a1dd85c /Bowelyzer.sc
parentfa90a9232880c77ecc759751ce9828878cab243d (diff)
downloadbowelyzer-9b6f50d1f32064f1f5ee74b2281e3313e81de7a4.tar.gz
bowelyzer-9b6f50d1f32064f1f5ee74b2281e3313e81de7a4.tar.bz2
bowelyzer-9b6f50d1f32064f1f5ee74b2281e3313e81de7a4.tar.xz
bowelyzer-9b6f50d1f32064f1f5ee74b2281e3313e81de7a4.zip
Bowelyzer.sc: Removing useless conditional as range and type are clear anyways.
Diffstat (limited to 'Bowelyzer.sc')
-rw-r--r--Bowelyzer.sc10
1 files changed, 4 insertions, 6 deletions
diff --git a/Bowelyzer.sc b/Bowelyzer.sc
index d9a1426..84ba4da 100644
--- a/Bowelyzer.sc
+++ b/Bowelyzer.sc
@@ -98,12 +98,10 @@ Bowelyzer{
});
},
\input,{
- // if the input name exists and the new is an Integer and greater/equal 0
- if(((update.isInteger) && (update.asInteger >= 0)),{
- // change the input in configuration
- config.config.at(\inputs).put(name, update.asInteger);
- analyzer.setSynthControl(name.asSymbol, \inputChannel, update.asInteger);
- });
+ // change the input in configuration
+ config.config.at(\inputs).put(name, update.asInteger);
+ // change the input in the Synth
+ analyzer.setSynthControl(name.asSymbol, \inputChannel, update.asInteger);
}
);
});