More Scheduling Tool and GUI refinements

This commit is contained in:
computermusik 2024-12-02 22:04:19 +01:00
parent 9926a64ec3
commit 2c2b5dc851
6 changed files with 6387 additions and 15861 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

6142
HSS_NOT.json Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +0,0 @@
{
}

View File

@ -6,6 +6,7 @@ var presets = [];
var filename = ""; var filename = "";
var currentPiece = ""; var currentPiece = "";
var hsspiece = {}; var hsspiece = {};
var metaComposition = "";
var outdict = new Dict("HSSPieces");; var outdict = new Dict("HSSPieces");;
var points = [[0.5, 0.5], [0., 1.], [1., 1.], [1., 0.], [0., 0.]]; var points = [[0.5, 0.5], [0., 1.], [1., 1.], [1., 0.], [0., 0.]];
var net = new Dict; var net = new Dict;
@ -35,6 +36,13 @@ var DJsterParams = {
"tonic_pitch" : [12, 108, "enum"],// "tonic_pitch" : [12, 108, "enum"],//
}; };
if(jsarguments.length>1) // argument 0 is the name of the js file
{
metaComposition = jsarguments[1];
}
var path = this.patcher.filepath.slice(0, this.patcher.filepath.lastIndexOf("/") + 1);
if (metaComposition != "") readPiece(path + metaComposition);
// //
function dictionary(d) function dictionary(d)
{ {
@ -54,11 +62,18 @@ function readPiece(path)
{ {
outdict.import_json(path); outdict.import_json(path);
jpieces = JSON.parse(outdict.stringify()); jpieces = JSON.parse(outdict.stringify());
/*
var keys = outdict.getkeys(); var keys = outdict.getkeys();
for (var i = 0; i < keys.length; i++) outlet(3, keys[i]); for (var i = 0; i < keys.length; i++) outlet(3, keys[i]);
outlet(1, outdict.get("DefaultSetting::1::networkData")); outlet(1, outdict.get("DefaultSetting::1::networkData"));
outlet(1, "predict", 0.5, 0.5); outlet(1, "predict", 0.5, 0.5);
outlet(0, 0.5, 0.5); outlet(0, 0.5, 0.5);
*/
}
function writePiece()
{
if (metaComposition != "") outdict.export_json(path + metaComposition);
} }
function setDict() function setDict()
@ -78,10 +93,6 @@ function setSection(section)
currentPiece = section; currentPiece = section;
} }
function writePiece()
{
outdict.export_json(this.patcher.filepath + "HSSPiece.json");
}
/* /*
function anything() function anything()