aboutsummaryrefslogtreecommitdiffstats
path: root/BowelyzerConfig.sc
diff options
context:
space:
mode:
Diffstat (limited to 'BowelyzerConfig.sc')
-rw-r--r--BowelyzerConfig.sc19
1 files changed, 19 insertions, 0 deletions
diff --git a/BowelyzerConfig.sc b/BowelyzerConfig.sc
index 4af229d..6f35500 100644
--- a/BowelyzerConfig.sc
+++ b/BowelyzerConfig.sc
@@ -225,5 +225,24 @@ BowelyzerConfig{
};
}
+ getSynthControl{
+ arg name, control;
+ if(config.at("controls").includesKey(name) && config.at("controls").at(name).includes(control),{
+ ^config.at("controls").at(name).at(control);
+ },{
+ ^false;
+ });
+ }
+
+ // sets a control to a value for a synth
+ setSynthControl{
+ arg name, control;
+ if(config.at("controls").includesKey(name) && config.at("controls").at(name).includes(control[0]),{
+ config.at("controls").at(name).put(control[0], control[1]);
+ ^true;
+ },{
+ ^false;
+ });
+ }
}