Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
telemersion
Telemersive Gateway
Commits
67fbf8a0
Commit
67fbf8a0
authored
Apr 25, 2021
by
maybites
Browse files
heaps of little bugfixes and improovments
parent
7bd6f1cc
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
code/peerList.js
View file @
67fbf8a0
...
...
@@ -4,6 +4,7 @@ var mySlotSize = 45;
var
myval
=
0
;
var
myPeerList
=
new
Dict
(
"
remotePeerList
"
);;
var
slots
=
[];
var
isJoined
=
0
;
var
myRoomName
=
"
unkown
"
;
var
myRoomID
=
0
;
...
...
@@ -15,16 +16,14 @@ function dpost(_post){
post
(
"
peerList:
"
+
_post
+
"
\n
"
);
}
function
bang
()
{
outlet
(
0
,
"
myvalue
"
,
"
is
"
,
myval
);
}
function
joined
(
_joined
){
if
(
_joined
==
0
){
dpost
(
"
local peer left room. cleaning up list of remote peers..
"
);
//clear();
//done();
if
(
isJoined
!==
_joined
){
isJoined
=
_joined
;
if
(
_joined
==
0
){
dpost
(
"
local peer left room. cleaning up list of remote peers..
"
);
//clear();
//done();
}
}
}
...
...
@@ -121,6 +120,14 @@ function done()
// update Slots with new peer
slots
.
forEach
(
update
);
if
(
isJoined
===
1
){
outlet
(
0
,
"
peerList
"
,
"
uptodate
"
);
}
else
{
if
(
myPeerList
.
getkeys
()
===
null
){
outlet
(
0
,
"
peerList
"
,
"
clear
"
);
}
}
}
function
update
(
_peerID
,
_index
)
{
...
...
@@ -180,8 +187,8 @@ function removePeer(_peerID){
function
anything
()
{
var
a
=
arrayfromargs
(
messagename
,
arguments
);
post
(
"
received message
"
+
a
+
"
\n
"
);
myval
=
a
;
bang
();
//
var a = arrayfromargs(messagename, arguments);
//
post("received message " + a + "\n");
//
myval = a;
//
bang();
}
code/peerLogic.js
View file @
67fbf8a0
...
...
@@ -98,14 +98,14 @@ function slot(_index){
dpost
(
"
start creation animation...
"
);
// start creation animation
taskMover
=
new
Task
(
creaMover
,
this
,
720
,
0
,
20
);
taskMover
.
interval
=
33
;
//
6
0fps
taskMover
.
interval
=
33
;
//
3
0fps
taskMover
.
repeat
(
21
);
}
if
(
mySlotIndex
!=
_index
){
dpost
(
"
start reshuffle animation...
"
);
// start reshuflle animation
taskMover
=
new
Task
(
shuffleMover
,
this
,
mySlotIndex
,
_index
,
20
);
taskMover
.
interval
=
33
;
//
6
0fps
taskMover
.
interval
=
33
;
//
3
0fps
taskMover
.
repeat
(
21
);
mySlotIndex
=
_index
;
}
...
...
@@ -115,9 +115,9 @@ function remove(){
dpost
(
"
start remove animation...
\n
"
);
// remove abstraction
outlet
(
0
,
"
peerJoined
"
,
0
);
taskMover
=
new
Task
(
reMover
,
this
,
0
,
720
,
2
0
);
taskMover
.
interval
=
33
;
//
6
0fps
taskMover
.
repeat
(
2
1
);
taskMover
=
new
Task
(
reMover
,
this
,
0
,
720
,
1
0
);
taskMover
.
interval
=
50
;
//
2
0fps
taskMover
.
repeat
(
1
1
);
}
function
shuffleMover
(
_indxStart
,
_indxTarget
,
_maxStep
)
...
...
@@ -128,7 +128,6 @@ function shuffleMover(_indxStart, _indxTarget, _maxStep)
}
else
{
arguments
.
callee
.
task
.
cancel
();
dpost
(
"
... reshuffle animation done.
"
);
messnamed
(
"
peerManager
"
,
"
done
"
);
}
}
...
...
node_content/package.json
View file @
67fbf8a0
...
...
@@ -7,7 +7,7 @@
"rsync"
:
"^0.6.1"
,
"sha1"
:
"^1.1.1"
,
"superagent"
:
"^6.1.0"
,
"telemersive-bus"
:
"0.0.2
6
"
"telemersive-bus"
:
"0.0.2
7
"
},
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
...
...
patchers/TelemersiveGateway.maxpat
View file @
67fbf8a0
This diff is collapsed.
Click to expand it.
patchers/devices/deviceMC_view.maxpat
View file @
67fbf8a0
This diff is collapsed.
Click to expand it.
patchers/devices/deviceOSC_view.maxpat
View file @
67fbf8a0
...
...
@@ -39,6 +39,18 @@
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-20",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "int", "int" ],
"patching_rect" : [ 217.0, 49.0, 48.0, 22.0 ],
"text" : "change"
}
}
, {
"box" : {
"args" : [ "many2manyBi", "osc", "#2", "#4" ],
"bgmode" : 0,
...
...
@@ -337,7 +349,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 217.0,
61
.0, 61.0, 22.0 ],
"patching_rect" : [ 217.0,
82
.0, 61.0, 22.0 ],
"text" : "pipe 1000"
}
...
...
@@ -1333,6 +1345,30 @@
"source" : [ "obj-19", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-28", 0 ],
"order" : 1,
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-39", 0 ],
"order" : 2,
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"order" : 0,
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
...
...
@@ -1378,24 +1414,7 @@
}
, {
"patchline" : {
"destination" : [ "obj-28", 0 ],
"order" : 1,
"source" : [ "obj-32", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-39", 0 ],
"order" : 2,
"source" : [ "obj-32", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"order" : 0,
"destination" : [ "obj-20", 0 ],
"source" : [ "obj-32", 0 ]
}
...
...
@@ -1596,8 +1615,13 @@
, {
"name" : "rnbodefault",
"default" : {
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"fontsize" : [ 12.0 ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"fontname" : [ "Lato" ],
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
...
...
@@ -1607,12 +1631,7 @@
"proportion" : 0.39,
"autogradient" : 0.0
}
,
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"fontsize" : [ 12.0 ],
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"fontname" : [ "Lato" ]
}
,
"parentstyle" : "",
...
...
@@ -1621,9 +1640,18 @@
, {
"name" : "rnbohighcontrast",
"default" : {
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"accentcolor" : [ 0.666666666666667, 0.666666666666667, 0.666666666666667, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"elementcolor" : [ 0.223386004567146, 0.254748553037643, 0.998085916042328, 1.0 ],
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"fontsize" : [ 13.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ],
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.0, 0.0, 0.0, 1.0 ],
...
...
@@ -1633,16 +1661,7 @@
"proportion" : 0.5,
"autogradient" : 0.0
}
,
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"accentcolor" : [ 0.666666666666667, 0.666666666666667, 0.666666666666667, 1.0 ],
"fontsize" : [ 13.0 ],
"elementcolor" : [ 0.223386004567146, 0.254748553037643, 0.998085916042328, 1.0 ],
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ]
}
,
"parentstyle" : "",
...
...
patchers/devices/deviceSYNC_view.maxpat
View file @
67fbf8a0
...
...
@@ -39,6 +39,18 @@
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-7",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "int", "int" ],
"patching_rect" : [ 217.0, 46.0, 48.0, 22.0 ],
"text" : "change"
}
}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "newobj",
...
...
@@ -253,7 +265,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 217.0,
61
.0, 61.0, 22.0 ],
"patching_rect" : [ 217.0,
79
.0, 61.0, 22.0 ],
"text" : "pipe 1000"
}
...
...
@@ -769,24 +781,7 @@
}
, {
"patchline" : {
"destination" : [ "obj-28", 0 ],
"order" : 1,
"source" : [ "obj-32", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-39", 0 ],
"order" : 2,
"source" : [ "obj-32", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"order" : 0,
"destination" : [ "obj-7", 0 ],
"source" : [ "obj-32", 0 ]
}
...
...
@@ -855,6 +850,30 @@
"source" : [ "obj-60", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-28", 0 ],
"order" : 1,
"source" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-39", 0 ],
"order" : 2,
"source" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"order" : 0,
"source" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
...
...
@@ -936,8 +955,11 @@
, {
"name" : "rnbodefault",
"default" : {
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"fontsize" : [ 12.0 ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"fontname" : [ "Lato" ],
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"bgfillcolor" : {
...
...
@@ -949,10 +971,7 @@
"proportion" : 0.39,
"autogradient" : 0.0
}
,
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"fontsize" : [ 12.0 ]
}
,
"parentstyle" : "",
...
...
@@ -961,14 +980,18 @@
, {
"name" : "rnbohighcontrast",
"default" : {
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"accentcolor" : [ 0.666666666666667, 0.666666666666667, 0.666666666666667, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"elementcolor" : [ 0.223386004567146, 0.254748553037643, 0.998085916042328, 1.0 ],
"bgcolor" : [ 0.
0, 0.0, 0.0
, 1.0 ],
"
locked_
bgcolor" : [ 0.
258823529411765, 0.258823529411765, 0.258823529411765
, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"fontsize" : [ 13.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ],
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.0, 0.0, 0.0, 1.0 ],
...
...
@@ -978,11 +1001,7 @@
"proportion" : 0.5,
"autogradient" : 0.0
}
,
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"accentcolor" : [ 0.666666666666667, 0.666666666666667, 0.666666666666667, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"fontsize" : [ 13.0 ]
}
,
"parentstyle" : "",
...
...
patchers/devices/deviceUG_view.maxpat
View file @
67fbf8a0
...
...
@@ -39,6 +39,18 @@
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-42",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "int", "int" ],
"patching_rect" : [ 173.5, 100.0, 48.0, 22.0 ],
"text" : "change"
}
}
, {
"box" : {
"id" : "obj-57",
"maxclass" : "newobj",
...
...
@@ -1012,7 +1024,7 @@
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 108.0, 221.0, 103.0, 22.0 ],
"text" : "
50954
_cche"
"text" : "
86925
_cche"
}
}
...
...
@@ -7306,6 +7318,10 @@
"numoutlets" : 4,
"outlettype" : [ "", "", "", "" ],
"patching_rect" : [ 197.0, 46.0, 56.0, 22.0 ],
"restore" : {
"select" : [ 0 ]
}
,
"text" : "autopattr",
"varname" : "u043011126"
}
...
...
@@ -9142,16 +9158,7 @@
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"order" : 0,
"source" : [ "obj-26", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-28", 0 ],
"order" : 1,
"destination" : [ "obj-42", 0 ],
"source" : [ "obj-26", 0 ]
}
...
...
@@ -9335,6 +9342,22 @@
"source" : [ "obj-40", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"order" : 0,
"source" : [ "obj-42", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-28", 0 ],
"order" : 1,
"source" : [ "obj-42", 0 ]
}
}
, {
"patchline" : {
...
...
patchers/peer/Peer.maxpat
View file @
67fbf8a0
...
...
@@ -1820,12 +1820,12 @@
, {
"box" : {
"id" : "obj-35",
"linecount" :
4
,
"linecount" :
5
,
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 38.0, 385.0, 14
8
.0, 6
2
.0 ],
"patching_rect" : [ 38.0, 385.0, 14
3
.0,
7
6.0 ],
"saved_object_attributes" : {
"client_rect" : [ 4, 44, 358, 172 ],
"parameter_enable" : 0,
...
...
@@ -1833,7 +1833,7 @@
"storage_rect" : [ 583, 69, 1034, 197 ]
}
,
"text" : "pattrstorage localPeer @outputmode 4 @autorestore 0 @savemode 0",
"text" : "pattrstorage localPeer @outputmode 4 @autorestore 0 @savemode 0
@changemode 1
",
"varname" : "localPeer"
}
...
...
@@ -3251,7 +3251,7 @@
, {
"patchline" : {
"destination" : [ "obj-34", 1 ],
"midpoints" : [ 47.5, 4
60
.0, 200.75, 4
60
.0, 200.75, 339.0, 145.5, 339.0 ],
"midpoints" : [ 47.5, 4
71
.0, 200.75, 4
71
.0, 200.75, 339.0, 145.5, 339.0 ],
"source" : [ "obj-35", 0 ]
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment