aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--classes/BowelyzerGUI.sc26
1 files changed, 26 insertions, 0 deletions
diff --git a/classes/BowelyzerGUI.sc b/classes/BowelyzerGUI.sc
index bc5cb0a..5fc0eda 100644
--- a/classes/BowelyzerGUI.sc
+++ b/classes/BowelyzerGUI.sc
@@ -209,6 +209,32 @@ BowelyzerGUI{
});
}
+ setChannelName{
+ arg name, update;
+ {
+ channels.do({|channel|
+ if(channel.name.asSymbol == name.asSymbol, {
+ ("Channel found: "++name).postln;
+ channel.children.do({|channelChild|
+ if(channelChild.name.asSymbol == \inputs, {
+ ("headView found").postln;
+ channelChild.children.do({|headView|
+ if(headView.name == "name", {
+ ("TextField for name found").postln;
+ headView.children.do({|nameView|
+ if(nameView.isKindOf(TextField), {
+ nameView.string_(("\""++update++"\"").asString);
+ });
+ });
+ });
+ });
+ });
+ });
+ });
+ });
+ }.defer;
+ }
+
// setup a single channel View by name
setupChannelView{
arg name, config;