Commit 3fdbca73 authored by maybites's avatar maybites
Browse files

fixed peer control over local device

parent 44feb4bc
......@@ -176,6 +176,8 @@ try {
maxApi.setDict('internalIPs', await Client.init());
bubbledUp("bus", ["peer", "id", Client.peerId]);
bubbledUp("bus", [ "ready"]);
}
......
This diff is collapsed.
This diff is collapsed.
......@@ -10,7 +10,7 @@
}
,
"classnamespace" : "box",
"rect" : [ 766.0, 257.0, 240.0, 555.0 ],
"rect" : [ 562.0, 232.0, 809.0, 555.0 ],
"bglocked" : 0,
"openinpresentation" : 1,
"default_fontsize" : 12.0,
......@@ -39,13 +39,73 @@
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-14",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 340.5, 360.0, 48.0, 22.0 ],
"text" : "pak 0 0"
}
}
, {
"box" : {
"id" : "obj-20",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 340.5, 415.0, 34.0, 22.0 ],
"text" : "sel 1"
}
}
, {
"box" : {
"id" : "obj-13",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 340.5, 387.0, 29.5, 22.0 ],
"text" : "*"
}
}
, {
"box" : {
"id" : "obj-12",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 340.5, 445.0, 54.0, 22.0 ],
"text" : "deferlow"
}
}
, {
"box" : {
"id" : "obj-8",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 369.5, 278.0, 95.0, 22.0 ],
"text" : "r #1_peerJoined"
}
}
, {
"box" : {
"id" : "obj-10",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 175.0, 213.0, 61.0, 22.0 ],
"patching_rect" : [ 277.0, 169.0, 61.0, 22.0 ],
"text" : "hidden $1"
}
......@@ -57,7 +117,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 492.0, 316.0, 63.0, 22.0 ],
"patching_rect" : [ 608.5, 380.0, 63.0, 22.0 ],
"text" : "closebang"
}
......@@ -69,7 +129,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 63.0, 263.0, 54.0, 22.0 ],
"patching_rect" : [ 63.0, 258.0, 54.0, 22.0 ],
"text" : "deferlow"
}
......@@ -80,7 +140,7 @@
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 492.0, 435.0, 147.0, 22.0 ],
"patching_rect" : [ 608.5, 493.0, 147.0, 22.0 ],
"text" : "s #1_channelUnsubscribe"
}
......@@ -91,7 +151,7 @@
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 331.5, 435.0, 133.0, 22.0 ],
"patching_rect" : [ 340.5, 516.0, 133.0, 22.0 ],
"text" : "s #1_channelSubscribe"
}
......@@ -126,9 +186,9 @@
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "bang", "bang", "bang" ],
"outlettype" : [ "bang", "int", "bang" ],
"patching_rect" : [ 63.0, 322.0, 42.0, 22.0 ],
"text" : "t b b b"
"text" : "t b 1 b"
}
}
......@@ -139,7 +199,7 @@
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 331.5, 401.0, 38.0, 22.0 ],
"patching_rect" : [ 340.5, 482.0, 38.0, 22.0 ],
"text" : "zl.reg"
}
......@@ -151,7 +211,7 @@
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 492.0, 401.0, 38.0, 22.0 ],
"patching_rect" : [ 608.5, 459.0, 38.0, 22.0 ],
"text" : "zl.reg"
}
......@@ -163,7 +223,7 @@
"numinlets" : 4,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 350.5, 316.0, 131.0, 22.0 ],
"patching_rect" : [ 470.0, 380.0, 131.0, 22.0 ],
"text" : "sprintf %s/%s/%s/%s/#"
}
......@@ -175,7 +235,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 350.5, 253.0, 58.0, 22.0 ],
"patching_rect" : [ 470.0, 317.0, 58.0, 22.0 ],
"text" : "loadbang"
}
......@@ -187,7 +247,7 @@
"numinlets" : 4,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 350.5, 284.0, 135.0, 22.0 ],
"patching_rect" : [ 470.0, 348.0, 135.0, 22.0 ],
"text" : "pack rack #5 #6 device"
}
......@@ -228,7 +288,7 @@
"numinlets" : 3,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 63.0, 295.0, 264.0, 22.0 ],
"patching_rect" : [ 63.0, 291.0, 264.0, 22.0 ],
"text" : "route 1 0"
}
......@@ -240,7 +300,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 208.5, 360.0, 111.0, 22.0 ],
"patching_rect" : [ 208.5, 440.0, 111.0, 22.0 ],
"text" : "script delete device"
}
......@@ -445,6 +505,34 @@
"source" : [ "obj-10", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-75", 0 ],
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"source" : [ "obj-13", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-13", 0 ],
"source" : [ "obj-14", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-12", 0 ],
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
......@@ -487,19 +575,10 @@
"source" : [ "obj-41", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"order" : 0,
"source" : [ "obj-43", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-41", 0 ],
"order" : 1,
"source" : [ "obj-43", 0 ]
}
......@@ -510,19 +589,10 @@
"source" : [ "obj-44", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"order" : 0,
"source" : [ "obj-45", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-41", 0 ],
"order" : 1,
"source" : [ "obj-45", 0 ]
}
......@@ -547,10 +617,19 @@
"source" : [ "obj-48", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"order" : 0,
"source" : [ "obj-5", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-48", 0 ],
"order" : 1,
"source" : [ "obj-5", 0 ]
}
......@@ -622,22 +701,22 @@
}
, {
"patchline" : {
"destination" : [ "obj-33", 0 ],
"source" : [ "obj-76", 0 ]
"destination" : [ "obj-14", 0 ],
"source" : [ "obj-76", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-44", 0 ],
"source" : [ "obj-76", 2 ]
"destination" : [ "obj-33", 0 ],
"source" : [ "obj-76", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-75", 0 ],
"source" : [ "obj-76", 1 ]
"destination" : [ "obj-44", 0 ],
"source" : [ "obj-76", 2 ]
}
}
......@@ -661,6 +740,13 @@
"source" : [ "obj-77", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-14", 1 ],
"source" : [ "obj-8", 0 ]
}
}
, {
"patchline" : {
......@@ -675,7 +761,8 @@
"styles" : [ {
"name" : "rnbodefault",
"default" : {
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
......@@ -687,11 +774,10 @@
}
,
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"fontsize" : [ 12.0 ],
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"fontname" : [ "Lato" ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ]
"fontsize" : [ 12.0 ],
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ]
}
,
"parentstyle" : "",
......@@ -700,8 +786,8 @@
, {
"name" : "rnbohighcontrast",
"default" : {
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"accentcolor" : [ 0.666666666666667, 0.666666666666667, 0.666666666666667, 1.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.0, 0.0, 0.0, 1.0 ],
......@@ -712,16 +798,16 @@
"autogradient" : 0.0
}
,
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"fontsize" : [ 13.0 ],
"accentcolor" : [ 0.666666666666667, 0.666666666666667, 0.666666666666667, 1.0 ],
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"elementcolor" : [ 0.223386004567146, 0.254748553037643, 0.998085916042328, 1.0 ],
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ]
"fontsize" : [ 13.0 ],
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ]
}
,
"parentstyle" : "",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment