More stuff

This commit is contained in:
computermusik 2025-03-19 09:25:23 -07:00
parent aad60cf517
commit 6b801de593
2 changed files with 43 additions and 17 deletions

View File

@ -81,7 +81,7 @@
} }
, ,
"classnamespace" : "box", "classnamespace" : "box",
"rect" : [ 327.0, 106.0, 863.0, 942.0 ], "rect" : [ 327.0, 106.0, 908.0, 915.0 ],
"bglocked" : 0, "bglocked" : 0,
"openinpresentation" : 0, "openinpresentation" : 0,
"default_fontsize" : 12.0, "default_fontsize" : 12.0,
@ -110,6 +110,18 @@
"subpatcher_template" : "", "subpatcher_template" : "",
"assistshowspatchername" : 0, "assistshowspatchername" : 0,
"boxes" : [ { "boxes" : [ {
"box" : {
"id" : "obj-15",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 817.833333333333258, 363.0, 45.0, 22.0 ],
"text" : "oph $2"
}
}
, {
"box" : { "box" : {
"id" : "obj-31", "id" : "obj-31",
"maxclass" : "newobj", "maxclass" : "newobj",
@ -137,11 +149,11 @@
"box" : { "box" : {
"id" : "obj-28", "id" : "obj-28",
"maxclass" : "newobj", "maxclass" : "newobj",
"numinlets" : 6, "numinlets" : 7,
"numoutlets" : 6, "numoutlets" : 7,
"outlettype" : [ "", "", "", "", "", "" ], "outlettype" : [ "", "", "", "", "", "", "" ],
"patching_rect" : [ 527.0, 330.0, 284.0, 22.0 ], "patching_rect" : [ 527.0, 330.0, 368.0, 22.0 ],
"text" : "routepass playing_mode play duration silence gain" "text" : "routepass playing_mode play duration silence gain operating_hours"
} }
} }
@ -207,7 +219,7 @@
"numinlets" : 2, "numinlets" : 2,
"numoutlets" : 1, "numoutlets" : 1,
"outlettype" : [ "" ], "outlettype" : [ "" ],
"patching_rect" : [ 527.0, 405.0, 192.0, 22.0 ], "patching_rect" : [ 527.0, 443.0, 192.0, 22.0 ],
"text" : "clear, set player 0, set $1 $2, bang" "text" : "clear, set player 0, set $1 $2, bang"
} }
@ -219,7 +231,7 @@
"numinlets" : 2, "numinlets" : 2,
"numoutlets" : 5, "numoutlets" : 5,
"outlettype" : [ "dictionary", "", "", "", "" ], "outlettype" : [ "dictionary", "", "", "", "" ],
"patching_rect" : [ 527.0, 434.0, 61.0, 22.0 ], "patching_rect" : [ 527.0, 472.0, 61.0, 22.0 ],
"saved_object_attributes" : { "saved_object_attributes" : {
"embed" : 0, "embed" : 0,
"legacy" : 0, "legacy" : 0,
@ -238,7 +250,7 @@
"numinlets" : 1, "numinlets" : 1,
"numoutlets" : 1, "numoutlets" : 1,
"outlettype" : [ "" ], "outlettype" : [ "" ],
"patching_rect" : [ 527.0, 462.0, 90.0, 22.0 ], "patching_rect" : [ 527.0, 500.0, 90.0, 22.0 ],
"text" : "prepend param" "text" : "prepend param"
} }
@ -250,7 +262,7 @@
"numinlets" : 1, "numinlets" : 1,
"numoutlets" : 1, "numoutlets" : 1,
"outlettype" : [ "" ], "outlettype" : [ "" ],
"patching_rect" : [ 527.0, 492.0, 175.0, 22.0 ], "patching_rect" : [ 527.0, 530.0, 175.0, 22.0 ],
"text" : "pattrforward parent::webcontrol" "text" : "pattrforward parent::webcontrol"
} }
@ -683,6 +695,13 @@
"source" : [ "obj-14", 0 ] "source" : [ "obj-14", 0 ]
} }
}
, {
"patchline" : {
"destination" : [ "obj-18", 0 ],
"source" : [ "obj-15", 0 ]
}
} }
, { , {
"patchline" : { "patchline" : {
@ -785,6 +804,13 @@
"source" : [ "obj-27", 0 ] "source" : [ "obj-27", 0 ]
} }
}
, {
"patchline" : {
"destination" : [ "obj-15", 0 ],
"source" : [ "obj-28", 5 ]
}
} }
, { , {
"patchline" : { "patchline" : {
@ -1706,7 +1732,7 @@
"patching_rect" : [ 1878.0, 139.0, 61.5, 22.0 ], "patching_rect" : [ 1878.0, 139.0, 61.5, 22.0 ],
"presentation" : 1, "presentation" : 1,
"presentation_rect" : [ 397.0, 13.0, 55.0, 22.0 ], "presentation_rect" : [ 397.0, 13.0, 55.0, 22.0 ],
"text" : "19:47:57" "text" : "20:02:10"
} }
} }
@ -6998,8 +7024,6 @@
"args" : [ 2, 100, 50 ], "args" : [ 2, 100, 50 ],
"autostart" : 1, "autostart" : 1,
"defer" : 0, "defer" : 0,
"node_bin_path" : "",
"npm_bin_path" : "",
"watch" : 1 "watch" : 1
} }
, ,

View File

@ -81,22 +81,24 @@ function readSettings(path)
var paramName = ""; var paramName = "";
//post(JSON.stringify(_settings), "\n"); //post(JSON.stringify(_settings), "\n");
for (key in _settings) { for (key in _settings) {
/*
param.clear(); param.clear();
param.set("player", 0); param.set("player", 0);
if (key == "playing_mode") paramName = "mode"; if (key == "playing_mode") paramName = "mode";
else if (key == "operating_hours") paramName = "oph"; else if (key == "operating_hours") paramName = "oph";
else paramName = key; else paramName = key;
param.set(paramName, _settings[key]); param.set(paramName, _settings[key]);
*/
switch (key) { switch (key) {
case "playing_mode" : case "playing_mode" :
this.patcher.getnamed("webcontrol").message("param", "dictionary", param.name); //this.patcher.getnamed("webcontrol").message("param", "dictionary", param.name);
this.patcher.getnamed("oph").subpatcher().getnamed("mode").message((_settings[key] == "Playlist") ? 1 : 0); this.patcher.getnamed("oph").subpatcher().getnamed("mode").message((_settings[key] == "Playlist") ? 1 : 0);
break; break;
case "operating_hours" : case "operating_hours" :
this.patcher.getnamed("webcontrol").message("param", "dictionary", param.name); //this.patcher.getnamed("webcontrol").message("param", "dictionary", param.name);
break; break;
case "play" : case "play" :
this.patcher.getnamed("webcontrol").message("param", "dictionary", param.name); //this.patcher.getnamed("webcontrol").message("param", "dictionary", param.name);
this.patcher.getnamed("hub").subpatcher().getnamed("global").subpatcher().getnamed("play").message(_settings[key]); this.patcher.getnamed("hub").subpatcher().getnamed("global").subpatcher().getnamed("play").message(_settings[key]);
break; break;
case "duration" : case "duration" :
@ -106,7 +108,7 @@ function readSettings(path)
this.patcher.getnamed("pause").message(_settings[key]); this.patcher.getnamed("pause").message(_settings[key]);
break; break;
case "gain" : case "gain" :
this.patcher.getnamed("webcontrol").message("param", "dictionary", param.name); //this.patcher.getnamed("webcontrol").message("param", "dictionary", param.name);
this.patcher.getnamed("hub").subpatcher().getnamed("global").subpatcher().getnamed("gain").message(_settings[key]); this.patcher.getnamed("hub").subpatcher().getnamed("global").subpatcher().getnamed("gain").message(_settings[key]);
break; break;
} }