From 9e1e9988c22a56526cc8d62305a1413fa53f76e5 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 24 Jul 2016 19:05:55 +0200 Subject: classes/BowelyzerConfig.sc: Adding freqRange with default values to he defaultControls. Adding freqRange to the class Arrays controlsWithRanger and hasToBeArray. Adding a ControlSpec for freqRange. Adding a return value in getControlValue for type Array (for now only with Float typ items). --- classes/BowelyzerConfig.sc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'classes') diff --git a/classes/BowelyzerConfig.sc b/classes/BowelyzerConfig.sc index f6f1aa3..47c9238 100644 --- a/classes/BowelyzerConfig.sc +++ b/classes/BowelyzerConfig.sc @@ -19,7 +19,7 @@ BowelyzerConfig{ \sendReplyFreq ]; const 0.01, \pitchPeakThreshold -> 0.5, \pitchDownSample -> 1, - \sendReplyFreq ->20 + \sendReplyFreq ->20, + \freqRange -> [20, 20000] ]); defaultConfig = Dictionary.with(*[ \inputs -> Dictionary.with(*[ @@ -360,6 +366,11 @@ BowelyzerConfig{ "false",{^false} ); }); + if(hasToBeArray.includes(control.asSymbol), { + ^value.collect({|item, i| + item.asFloat; + }); + }); },{ ^nil; }); -- cgit v1.2.3-70-g09d2