aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-07-02 02:31:46 +0200
committerDavid Runge <dave@sleepmap.de>2016-07-02 02:31:46 +0200
commit1457dffcf11574f6464cb8f808ad32c4d408f570 (patch)
treef4a5f4004583cba841c796a8a802b69a6b25794e
parentba3aa2a417c6de50428e9a30b6b73d930e99b9d4 (diff)
downloadbowelyzer-1457dffcf11574f6464cb8f808ad32c4d408f570.tar.gz
bowelyzer-1457dffcf11574f6464cb8f808ad32c4d408f570.tar.bz2
bowelyzer-1457dffcf11574f6464cb8f808ad32c4d408f570.tar.xz
bowelyzer-1457dffcf11574f6464cb8f808ad32c4d408f570.zip
Unifying port and address messages to only need one OSCdef on the receiving side each.
-rw-r--r--BowelyzerGUI.sc18
1 files changed, 10 insertions, 8 deletions
diff --git a/BowelyzerGUI.sc b/BowelyzerGUI.sc
index 0e12738..3459557 100644
--- a/BowelyzerGUI.sc
+++ b/BowelyzerGUI.sc
@@ -37,7 +37,7 @@ BowelyzerGUI{
settingsView.layout.spacing = 0;
settingsView.layout.margins = [0,0,0,0];
//settingsView.maxSize_(510@64);
-
+
//config
configView = View(settingsView.asView);
configView.asView.background = Color.fromHexString("#DDDDEF");
@@ -252,7 +252,7 @@ BowelyzerGUI{
.maxSize_(40@20)
;
}
-
+
// create a save button, that launches a FileDialog on press
setupSaveButton{
arg parent;
@@ -322,9 +322,10 @@ BowelyzerGUI{
controlName = controlUnit.labelView.string.asSymbol,
controlValue = controlUnit.value;
if((type == "/synthServer") || (type == "/hub") || (type == "/forward"), {
- type = type++"Address";
- postln("Sending: "++"["++type++", "++controlValue++"]");
- address.sendMsg(type, controlValue);
+ type = (type++"Address").replace("/","").asSymbol;
+ name = "/"++controlName;
+ postln("Sending: "++"["++name++", "++type++", "++controlValue++"]");
+ address.sendMsg(name, type, controlValue);
},{
postln("Sending: "++"["++type++", "++name++", "++controlName++", "++controlValue++"]");
address.sendMsg(type, name, controlName, controlValue);
@@ -364,9 +365,10 @@ BowelyzerGUI{
controlName = controlUnit.labelView.string.asSymbol,
controlValue = controlUnit.value;
if((type == "/synthServer") || (type == "/hub") || (type == "/forward"), {
- type = type++"Port";
- postln("Sending: "++"["++type++", "++controlValue++"]");
- address.sendMsg(type, controlValue);
+ type = (type++"Port").replace("/", "").asSymbol;
+ name = "/"++controlName;
+ postln("Sending: "++"["++name++", "++type++", "++controlValue++"]");
+ address.sendMsg(name, type, controlValue);
},{
postln("Sending: "++"["++type++", "++name++", "++controlName++", "++controlValue++"]");
address.sendMsg(type, name, controlName, controlValue);