auto-load server

This commit is contained in:
computermusik 2025-04-06 15:10:20 +02:00
parent 0a2443a4f6
commit 5f80662030
6 changed files with 27400 additions and 2948 deletions

View File

@ -18459,7 +18459,7 @@
}
,
"breakpoints" : [ "data", 0, 196, 86400, 0, 1, 0, 0.884921, 0, 0, 1800, 0.318122, 0, 0, 3600, 0.261432, 0, 0, 5400, 0.190571, 0, 0, 7200, 0.117347, 0, 0, 9000, 0.047619, 0, 0, 10800, 0.089002, 0, 0, 12600, 0.133881, 0, 0, 14400, 0.188209, 0, 0, 16200, 0.242536, 0, 0, 18000, 0.285053, 0, 0, 19800, 0.33938, 0, 0, 21600, 0.405518, 0, 0, 23400, 0.507937, 0, 0, 25200, 0.405518, 0, 0, 27000, 0.353552, 0, 0, 28800, 0.296863, 0, 0, 30600, 0.24726, 0, 0, 32400, 0.195295, 0, 0, 34200, 0.152778, 0, 0, 36000, 0.114985, 0, 0, 37800, 0.071429, 0, 0, 39600, 0.126795, 0, 0, 41400, 0.240174, 0, 0, 43200, 0.355915, 0, 0, 45000, 0.507937, 0, 0, 46800, 0.639361, 0, 0, 48600, 0.736206, 0, 0, 50400, 0.85667, 0, 0, 52200, 0.928571, 0, 0, 54000, 0.939342, 0, 0, 55800, 0.934618, 0, 0, 57600, 0.929894, 0, 0, 59400, 0.934618, 0, 0, 61200, 0.941704, 0, 0, 63000, 0.920635, 0, 0, 64800, 0.934618, 0, 0, 66600, 0.932256, 0, 0, 68400, 0.934618, 0, 0, 70200, 0.939342, 0, 0, 72000, 0.934618, 0, 0, 73800, 0.944444, 0, 0, 75600, 0.889739, 0, 0, 77400, 0.82124, 0, 0, 79200, 0.748016, 0, 0, 81000, 0.698413, 0, 0, 82800, 0.627551, 0, 0, 84600, 0.5, 0, 0, "curve", "data", 1, 196, 86400, 0, 1, 0, 0.122449, 0, 0, 1800, 0.065112, 0, 0, 3600, 0.060253, 0, 0, 5400, 0.065112, 0, 0, 7200, 0.057823, 0, 0, 9000, 0.044898, 0, 0, 10800, 0.079689, 0, 0, 12600, 0.133139, 0, 0, 14400, 0.18173, 0, 0, 16200, 0.23518, 0, 0, 18000, 0.283771, 0, 0, 19800, 0.344509, 0, 0, 21600, 0.407677, 0, 0, 23400, 0.493878, 0, 0, 25200, 0.6069, 0, 0, 27000, 0.65792, 0, 0, 28800, 0.701652, 0, 0, 30600, 0.752673, 0, 0, 32400, 0.803693, 0, 0, 34200, 0.847425, 0, 0, 36000, 0.891156, 0, 0, 37800, 0.95102, 0, 0, 39600, 0.954325, 0, 0, 41400, 0.944606, 0, 0, 43200, 0.942177, 0, 0, 45000, 0.934694, 0, 0, 46800, 0.944606, 0, 0, 48600, 0.951895, 0, 0, 50400, 0.947036, 0, 0, 52200, 0.942857, 0, 0, 54000, 0.886297, 0, 0, 55800, 0.815841, 0, 0, 57600, 0.752673, 0, 0, 59400, 0.614189, 0, 0, 61200, 0.570457, 0, 0, 63000, 0.510204, 0, 0, 64800, 0.390671, 0, 0, 66600, 0.291059, 0, 0, 68400, 0.244898, 0, 0, 70200, 0.189018, 0, 0, 72000, 0.12828, 0, 0, 73800, 0.053061, 0, 0, 75600, 0.060253, 0, 0, 77400, 0.060253, 0, 0, 79200, 0.062682, 0, 0, 81000, 0.065112, 0, 0, 82800, 0.060253, 0, 0, 84600, 0.069388, 0, 0, "curve" ],
"audiolevels" : [ -10, -10, -10, -10 ]
"audiolevels" : [ -10, -10, -7, -10 ]
}
,
"The Subtle Glow of the Delighted Being" : {

View File

@ -1,9 +1,26 @@
{
"environment" : "HSS_NOT.json",
"soundbank" : "HSS_Samples.json",
"order" : {
"0" : "Aurora",
"1" : "The soft sparks of the blue mind",
"2" : "Echoes in the Dreamscape",
"3" : "Blue",
"4" : "First Calling",
"5" : "Hypnagogia",
"6" : "The warm winds of the aurora borealis",
"7" : "Luz",
"8" : "The Subtle Glow of the Delighted Being"
}
,
"current_piece" : "Luz",
"operating_hours" : "0-24",
"operation_mode" : "Start Piece",
"playing_mode" : "Playlist",
"play" : 0,
"web_control" : "fullscreen",
"play" : 1,
"duration" : 300,
"silence" : 20,
"gain" : -10,
"current_piece" : "Luz"
"channels" : 4
}

8061
hss-client.maxpat Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

17441
hss-server.maxpat Normal file

File diff suppressed because one or more lines are too long

View File

@ -37,26 +37,32 @@ var DJsterParams = {
if(jsarguments.length>1) // argument 0 is the name of the js file
{
metaComposition = jsarguments[1];
//metaComposition = jsarguments[1];
}
var path = this.patcher.filepath.slice(0, this.patcher.filepath.lastIndexOf("/") + 1);
function environment(e)
{
post("loading environment", e, path, "\n");
metaComposition = e;
bang();
}
/*
function loadbang()
{
bang();
post("currentPiece", path, "\n");
}
*/
function bang()
{
if (metaComposition != "") {
readPiece(path + metaComposition);
readSettings(path + "HSS_settings.json");
//readSettings(path + "HSS_settings.json");
}
}
//
function dictionary(d)
{
net.name = d;
@ -73,6 +79,7 @@ function readPiece(path)
setMenu();
}
/*
function readSettings(path)
{
settings.import_json(path);
@ -81,14 +88,12 @@ function readSettings(path)
var paramName = "";
//post(JSON.stringify(_settings), "\n");
for (key in _settings) {
/*
param.clear();
param.set("player", 0);
if (key == "playing_mode") paramName = "mode";
else if (key == "operating_hours") paramName = "oph";
else paramName = key;
param.set(paramName, _settings[key]);
*/
switch (key) {
case "playing_mode" :
//this.patcher.getnamed("webcontrol").message("param", "dictionary", param.name);
@ -114,6 +119,7 @@ function readSettings(path)
}
}
}
*/
function setPresetFile(f)
{