More Scheduling Tool and GUI refinements
This commit is contained in:
8260
HSSPieces.json
8260
HSSPieces.json
File diff suppressed because it is too large
Load Diff
7182
HSSPiecesNN.json
7182
HSSPiecesNN.json
File diff suppressed because it is too large
Load Diff
6142
HSS_NOT.json
Normal file
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
@@ -1,3 +0,0 @@
|
||||
{
|
||||
|
||||
}
|
||||
@@ -6,6 +6,7 @@ var presets = [];
|
||||
var filename = "";
|
||||
var currentPiece = "";
|
||||
var hsspiece = {};
|
||||
var metaComposition = "";
|
||||
var outdict = new Dict("HSSPieces");;
|
||||
var points = [[0.5, 0.5], [0., 1.], [1., 1.], [1., 0.], [0., 0.]];
|
||||
var net = new Dict;
|
||||
@@ -35,6 +36,13 @@ var DJsterParams = {
|
||||
"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)
|
||||
{
|
||||
@@ -54,11 +62,18 @@ function readPiece(path)
|
||||
{
|
||||
outdict.import_json(path);
|
||||
jpieces = JSON.parse(outdict.stringify());
|
||||
/*
|
||||
var keys = outdict.getkeys();
|
||||
for (var i = 0; i < keys.length; i++) outlet(3, keys[i]);
|
||||
outlet(1, outdict.get("DefaultSetting::1::networkData"));
|
||||
outlet(1, "predict", 0.5, 0.5);
|
||||
outlet(0, 0.5, 0.5);
|
||||
*/
|
||||
}
|
||||
|
||||
function writePiece()
|
||||
{
|
||||
if (metaComposition != "") outdict.export_json(path + metaComposition);
|
||||
}
|
||||
|
||||
function setDict()
|
||||
@@ -78,10 +93,6 @@ function setSection(section)
|
||||
currentPiece = section;
|
||||
}
|
||||
|
||||
function writePiece()
|
||||
{
|
||||
outdict.export_json(this.patcher.filepath + "HSSPiece.json");
|
||||
}
|
||||
|
||||
/*
|
||||
function anything()
|
||||
|
||||
Reference in New Issue
Block a user