Commit 7f1407be authored by maybites's avatar maybites
Browse files

added restart-proxy functionality

changed code to start ultragrid process outside of shell object
changed peer - pattrstorage to @outputmode 6 -> should reduce unnecessary double messages
parent d30644ec
......@@ -8,6 +8,9 @@ var myWinTask = null;
var myOS = null;
var myTitle = null;
var myPortNumber = null;
var OSXProcessID = null;
var copyFeedback = false;
var runningFeedback = false;
......@@ -43,7 +46,11 @@ function pkill(){
outlet(1, 'pkill');
if(myOS === 'windows'){
outlet(1, 'taskkill', '/FI', 'WINDOWTITLE eq '+ myTitle, '/T', '/F');
}
} else {
if(OSXProcessID != null){
outlet(1, 'kill', OSXProcessID);
}
}
isRunning = false;
}
}
......@@ -57,13 +64,33 @@ function execute(){
if(myOS === 'windows'){
outlet(0, 'start', myTitle, '/min', myCommands);
} else {
outlet(0, myCommands);
var myCom = new Array();
for(var i = 1; i < myCommands.length; i++){
myCom.push(myCommands[i]);
}
//myCom += '\"';
outlet(1, "open", "-g", "-a", myCommands[0], "--args", myCom);
outlet(0, "ps", "aux", "|", "grep", "uv", "|", "grep", "-v", "awk", "|", "awk", '\'/'+ myPortNumber +'/', '{print', "pid ", '\\$2}\'');
//outlet(0, myCommands);
}
isRunning = true;
}
function pid(_processID){
post("processID = " + _processID + "\n");
OSXProcessID = _processID;
}
function start(){
myCommands = arrayfromargs(arguments);
for(var i = 1; i < myCommands.length; i++){
if((typeof myCommands[i]) === 'string'){
if(myCommands[i].indexOf("-P") == 0){
myPortNumber = myCommands[i];
}
}
}
myPath = myCommands[0];
......
......@@ -2,6 +2,9 @@ let APPVERSION = "TeGateway_v1"; // use simple numbering
// only apps with the same version as the first peer that opens the room
// will be accepted - all other will be declined by the manager
// used for switchboard hack:
const superagent = require('superagent');
let maxApi = require("max-api");
let telemersion, BusClient, Client;
......@@ -17,6 +20,10 @@ let peerName = "..";
let verbose_out = false;
let verbose_in = false;
// needed for switchboard hack
let proxyHost = null;
let proxyRoom = null;
// overwrite console.log function, if second value is provided,
// the log will not be print out on the console, but only stored to the file
console.log = function(d, v) { //
......@@ -60,9 +67,11 @@ const handlers = {
await Client.disconnectServer();
},
configure: (_serverHost, _serverPort, _serverUser, _serverPwd, _localIP) => {
Client.configureServer(_serverHost, _serverPort, _serverUser, _serverPwd, _localIP);
proxyHost = _serverHost;
Client.configureServer('mqtt://'+_serverHost, _serverPort, _serverUser, _serverPwd, _localIP);
},
join: async (_peerName, _roomName, _roomPwd) => {
proxyRoom = _roomName;
peerName = _peerName;
await Client.join(_peerName, _roomName, _roomPwd);
},
......@@ -114,6 +123,32 @@ const handlers = {
error: async () => {
let obj = [{name: "Frank"}];
console.log(obj[1].name);
},
// switchboard hack. Remove once switchboard works fine again.
restartProxy: async (_port, _type, _description) => {
if(proxyHost !== null && proxyRoom !== null){
console.log('Atempting to restart proxy: ' + _port + ' at ' + proxyHost + ' in ' + proxyRoom);
try {
const resDel = await superagent.delete('http://'+proxyHost+':3591/proxies/' + _port);
let reply = JSON.parse(resDel["text"]);
console.log(reply["msg"]);
// current date
let date = new Date();
let timestamp = "| restarted by " + peerName + " at " + monthNames[date.getMonth()] + " " + zeroPad(date.getDate(),2) + " " + zeroPad(date.getHours(),2) + ":"+ zeroPad(date.getMinutes(),2) + ":"+ zeroPad(date.getSeconds(),2) + "."+ zeroPad(date.getMilliseconds(),3);
let payload = { room: proxyRoom, port: _port, type: _type, description: _description + timestamp };
const resAdd = await superagent.post('http://'+proxyHost+':3591/proxies/').send(payload);
reply = JSON.parse(resAdd["text"]);
console.log(reply["msg"]);
} catch (err) {
let reply = JSON.parse(err.response["text"]);
console.error(reply["msg"]);
}
} else {
console.log('Unable to restart proxy. Not yet connected');
}
}
};
......@@ -139,3 +174,4 @@ try {
} catch (err) {
bubbledUp("bus", [ 'error', 'script', "Required libraries not installed. Please check [config] > debug and install libraries."])
}
This diff is collapsed.
This diff is collapsed.
......@@ -10,7 +10,7 @@
}
,
"classnamespace" : "box",
"rect" : [ 382.0, 376.0, 428.0, 146.0 ],
"rect" : [ 325.0, 162.0, 428.0, 145.0 ],
"bglocked" : 0,
"openinpresentation" : 1,
"default_fontsize" : 12.0,
......@@ -39,6 +39,28 @@
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"args" : [ "many2manyBi", "osc", "#2" ],
"bgmode" : 0,
"border" : 0,
"clickthrough" : 0,
"enablehscroll" : 0,
"enablevscroll" : 0,
"id" : "obj-16",
"lockeddragscroll" : 0,
"maxclass" : "bpatcher",
"name" : "restartProxy.maxpat",
"numinlets" : 1,
"numoutlets" : 0,
"offset" : [ 0.0, 0.0 ],
"patching_rect" : [ 472.333333333333314, 83.0, 58.333333333333428, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 6.0, 107.0, 54.333333333333371, 19.0 ],
"viewvisibility" : 1
}
}
, {
"box" : {
"id" : "obj-10",
"maxclass" : "newobj",
......@@ -1435,10 +1457,19 @@
"source" : [ "obj-41", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"order" : 1,
"source" : [ "obj-42", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-35", 2 ],
"order" : 0,
"source" : [ "obj-42", 0 ]
}
......@@ -1516,6 +1547,13 @@
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "restartProxy.maxpat",
"bootpath" : "~/Arbeiten/01_projekte/181111_IASpace/01_projekte/20xx_Telematik/01_dev/telemersive-gateway/patchers/utils",
"patcherrelativepath" : "../utils",
"type" : "JSON",
"implicit" : 1
}
],
"autosave" : 0,
"styles" : [ {
......@@ -1558,10 +1596,6 @@
, {
"name" : "rnbodefault",
"default" : {
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 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 ],
......@@ -1573,8 +1607,12 @@
}
,
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"fontsize" : [ 12.0 ],
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"fontsize" : [ 12.0 ]
"fontname" : [ "Lato" ]
}
,
"parentstyle" : "",
......@@ -1583,14 +1621,6 @@
, {
"name" : "rnbohighcontrast",
"default" : {
"elementcolor" : [ 0.223386004567146, 0.254748553037643, 0.998085916042328, 1.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"editing_bgcolor" : [ 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 ],
......@@ -1601,10 +1631,18 @@
"autogradient" : 0.0
}
,
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"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 ],
"fontsize" : [ 13.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 ],
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"fontsize" : [ 13.0 ]
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
}
,
"parentstyle" : "",
......
This diff is collapsed.
......@@ -403,8 +403,6 @@
"styles" : [ {
"name" : "rnbodefault",
"default" : {
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"fontsize" : [ 12.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
......@@ -415,11 +413,13 @@
"autogradient" : 0.0
}
,
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"fontname" : [ "Lato" ],
"fontsize" : [ 12.0 ],
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ]
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"fontname" : [ "Lato" ]
}
,
"parentstyle" : "",
......@@ -428,10 +428,6 @@
, {
"name" : "rnbohighcontrast",
"default" : {
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"fontsize" : [ 13.0 ],
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.0, 0.0, 0.0, 1.0 ],
......@@ -442,14 +438,18 @@
"autogradient" : 0.0
}
,
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"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 ],
"fontsize" : [ 13.0 ],
"elementcolor" : [ 0.223386004567146, 0.254748553037643, 0.998085916042328, 1.0 ],
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ]
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
}
,
"parentstyle" : "",
......@@ -860,8 +860,6 @@
"styles" : [ {
"name" : "rnbodefault",
"default" : {
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"fontsize" : [ 12.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
......@@ -872,11 +870,13 @@
"autogradient" : 0.0
}
,
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"fontname" : [ "Lato" ],
"fontsize" : [ 12.0 ],
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ]
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"fontname" : [ "Lato" ]
}
,
"parentstyle" : "",
......@@ -885,10 +885,6 @@
, {
"name" : "rnbohighcontrast",
"default" : {
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"fontsize" : [ 13.0 ],
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.0, 0.0, 0.0, 1.0 ],
......@@ -899,14 +895,18 @@
"autogradient" : 0.0
}
,
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"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 ],
"fontsize" : [ 13.0 ],
"elementcolor" : [ 0.223386004567146, 0.254748553037643, 0.998085916042328, 1.0 ],
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ]
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
}
,
"parentstyle" : "",
......@@ -1766,8 +1766,6 @@
"styles" : [ {
"name" : "rnbodefault",
"default" : {
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"fontsize" : [ 12.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
......@@ -1778,11 +1776,13 @@
"autogradient" : 0.0
}
,
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"fontname" : [ "Lato" ],
"fontsize" : [ 12.0 ],
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ]
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"fontname" : [ "Lato" ]
}
,
"parentstyle" : "",
......@@ -1791,10 +1791,6 @@
, {
"name" : "rnbohighcontrast",
"default" : {
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"fontsize" : [ 13.0 ],
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.0, 0.0, 0.0, 1.0 ],
......@@ -1805,14 +1801,18 @@
"autogradient" : 0.0
}
,
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"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 ],
"fontsize" : [ 13.0 ],
"elementcolor" : [ 0.223386004567146, 0.254748553037643, 0.998085916042328, 1.0 ],
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ]
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
}
,
"parentstyle" : "",
......@@ -1878,7 +1878,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 38.0, 385.0, 144.0, 62.0 ],
"patching_rect" : [ 38.0, 385.0, 127.0, 62.0 ],
"saved_object_attributes" : {
"client_rect" : [ 4, 44, 358, 172 ],
"parameter_enable" : 0,
......@@ -1886,7 +1886,7 @@
"storage_rect" : [ 583, 69, 1034, 197 ]
}
,
"text" : "pattrstorage localPeer @outputmode 4 @autorestore 0 @savemode 0",
"text" : "pattrstorage localPeer @outputmode 6 @autorestore 0 @savemode 0",
"varname" : "localPeer"
}
......@@ -2904,8 +2904,6 @@
"styles" : [ {
"name" : "rnbodefault",
"default" : {
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"fontsize" : [ 12.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
......@@ -2916,11 +2914,13 @@
"autogradient" : 0.0
}
,
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"fontname" : [ "Lato" ],
"fontsize" : [ 12.0 ],
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ]
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"fontname" : [ "Lato" ]
}
,
"parentstyle" : "",
......@@ -2929,10 +2929,6 @@
, {
"name" : "rnbohighcontrast",
"default" : {
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"fontsize" : [ 13.0 ],
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.0, 0.0, 0.0, 1.0 ],
......@@ -2943,14 +2939,18 @@
"autogradient" : 0.0
}
,
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"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 ],
"fontsize" : [ 13.0 ],
"elementcolor" : [ 0.223386004567146, 0.254748553037643, 0.998085916042328, 1.0 ],
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ]
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
}
,
"parentstyle" : "",
......@@ -3082,7 +3082,7 @@
"name" : "Rack.maxpat",
"numinlets" : 2,
"numoutlets" : 0,
"offset" : [ 0.0, 0.0 ],
"offset" : [ 0.0, -40.0 ],
"patching_rect" : [ 92.25, 289.0, 520.0, 42.0 ],
"presentation" : 1,
"presentation_rect" : [ 200.0, 2.0, 500.0, 40.0 ],
......@@ -3381,8 +3381,6 @@
"styles" : [ {
"name" : "rnbodefault",
"default" : {
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"fontsize" : [ 12.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
......@@ -3393,11 +3391,13 @@
"autogradient" : 0.0
}
,
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"fontname" : [ "Lato" ],
"fontsize" : [ 12.0 ],
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ]
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ],
"fontname" : [ "Lato" ]
}
,
"parentstyle" : "",
......@@ -3406,10 +3406,6 @@
, {
"name" : "rnbohighcontrast",
"default" : {
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"fontsize" : [ 13.0 ],
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.0, 0.0, 0.0, 1.0 ],
......@@ -3420,14 +3416,18 @@
"autogradient" : 0.0
}
,
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"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 ],
"fontsize" : [ 13.0 ],
"elementcolor" : [ 0.223386004567146, 0.254748553037643, 0.998085916042328, 1.0 ],
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ]
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
}
,
"parentstyle" : "",
......
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 2,
"revision" : 0,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 527.0, 108.0, 448.0, 493.0 ],
"bglocked" : 0,
"openinpresentation" : 1,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-18",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 358.0, 98.0, 61.0, 20.0 ],
"text" : "channel #"
}
}
, {