Commit of the day

This commit is contained in:
computermusik 2024-12-12 21:57:14 +01:00
parent 66a489d076
commit c7426c6d7a
6 changed files with 11343 additions and 4581 deletions

11269
HSS_NOT.json

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
00:00, 0.5 0.502041; 00:30, 0.539683 0.591837; 01:00, 0 0; 01:30, 0 0; 02:00, 0 0; 02:30, 0 0; 03:00, 0 0; 03:30, 0 0; 04:00, 0 0; 04:30, 0 0; 05:00, 0 0; 05:30, 0 0; 06:00, 0 0; 06:30, 0 0; 07:00, 0 0; 07:30, 0 0; 08:00, 0 0; 08:30, 0 0; 09:00, 0 0; 09:30, 0 0; 10:00, 0 0; 10:30, 0 0; 11:00, 0 0; 11:30, 0 0; 12:00, 0 0; 12:30, 0 0; 13:00, 0 0; 13:30, 0 0; 14:00, 0 0; 14:30, 0 0; 15:00, 0 0; 15:30, 0 0; 16:00, 0 0; 16:30, 0 0; 17:00, 0 0; 17:30, 0 0; 18:00, 0 0; 18:30, 0 0; 19:00, 0 0; 19:30, 0 0; 20:00, 0 0; 20:30, 0 0; 21:00, 0 0; 21:30, 0 0; 22:00, 0 0; 22:30, 0 0; 23:00, 0 0; 23:30, 0 0;

View File

@ -226,15 +226,19 @@ svg.push({
addSlider(i, "player" + i, "Attenuation", "attenuation", j++, [0, 100], 1, 15, "this.value", "this.value");
}
createSpatBox();
addSlider(-1, "roomDIV", "Gain (dB)", "gain", 2, [-70, 6], 1, -10, "this.value", "this.value");
addSlider(-1, "roomDIV", "Room Size", "roomsize", 3, [1, 300], 1, 75, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Rev. Time (ms)", "amount", 4, [0.5, 15], 0.1, 11, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Spread", "spread", 5, [0, 100], 1, 23, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Bandwidth", "bandwidth", 6, [0, 100], 1, 50, "this.value", "this.value"); //50
addSlider(-1, "roomDIV", "Damping", "damping", 7, [0, 100], 1, 70, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Early", "early", 8, [0, 100], 1, 25, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Tail", "tail", 9, [0, 100], 1, 25, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Dry", "dry", 10, [0, 100], 1, 100, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Level 1 (dB)", "level_1", 2, [-70, 6], 1, -10, "this.value", "this.value");
addSlider(-1, "roomDIV", "Level 2 (dB)", "level_2", 3, [-70, 6], 1, -10, "this.value", "this.value");
addSlider(-1, "roomDIV", "Level 3 (dB)", "level_3", 4, [-70, 6], 1, -10, "this.value", "this.value");
addSlider(-1, "roomDIV", "Level 4 (dB)", "level_4", 5, [-70, 6], 1, -10, "this.value", "this.value");
addSlider(-1, "roomDIV", "Gain (dB)", "gain", 6, [-70, 6], 1, -10, "this.value", "this.value");
addSlider(-1, "roomDIV", "Room Size", "roomsize", 7, [1, 300], 1, 75, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Rev. Time (ms)", "amount", 8, [0.5, 15], 0.1, 11, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Spread", "spread", 9, [0, 100], 1, 23, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Bandwidth", "bandwidth", 10, [0, 100], 1, 50, "this.value", "this.value"); //50
addSlider(-1, "roomDIV", "Damping", "damping", 11, [0, 100], 1, 70, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Early", "early", 12, [0, 100], 1, 25, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Tail", "tail", 13, [0, 100], 1, 25, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Dry", "dry", 14, [0, 100], 1, 100, "this.value", "this.value");//
elements.push(

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
}
,
"classnamespace" : "box",
"rect" : [ 34.0, 100.0, 1013.0, 533.0 ],
"rect" : [ 412.0, 106.0, 1019.0, 533.0 ],
"bglocked" : 1,
"openinpresentation" : 1,
"default_fontsize" : 12.0,
@ -71,8 +71,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 1694.0, 263.0, 149.0, 62.0 ],
"presentation_linecount" : 4,
"patching_rect" : [ 1694.0, 263.0, 150.0, 62.0 ],
"text" : "Djster.µbus[0]::instance 1, Djster.µbus[1]::instance 2, Djster.µbus[2]::instance 3, Djster.µbus[3]::instance 4"
}
@ -130,7 +129,7 @@
"patching_rect" : [ 2060.0, 207.0, 41.0, 22.0 ],
"presentation" : 1,
"presentation_rect" : [ 431.0, 41.0, 29.5, 22.0 ],
"text" : "218"
"text" : "261"
}
}
@ -154,7 +153,7 @@
"patching_rect" : [ 1882.75, 107.5, 61.5, 22.0 ],
"presentation" : 1,
"presentation_rect" : [ 400.5, 13.0, 61.5, 22.0 ],
"text" : "13:8:58"
"text" : "18:4:21"
}
}
@ -475,7 +474,6 @@
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 1423.0, 494.0, 34.0, 22.0 ],
"presentation_linecount" : 2,
"text" : "write"
}
@ -2468,8 +2466,8 @@
"key" : "svg",
"val" : {
"id" : "src4",
"cx" : 141,
"cy" : 101
"cx" : 153,
"cy" : 64
}
}
@ -3979,7 +3977,7 @@
"bgfillcolor_proportion" : 0.5,
"bgfillcolor_type" : "color",
"id" : "obj-200",
"items" : [ "hss-Xiao-2024-2", ",", "Hss-Chen-Preset-2" ],
"items" : "<empty>",
"maxclass" : "umenu",
"numinlets" : 1,
"numoutlets" : 3,
@ -4057,7 +4055,6 @@
, {
"box" : {
"id" : "obj-181",
"int" : 3,
"maxclass" : "gswitch2",
"numinlets" : 2,
"numoutlets" : 4,
@ -4248,7 +4245,6 @@
, {
"box" : {
"id" : "obj-165",
"int" : 1,
"maxclass" : "gswitch2",
"numinlets" : 2,
"numoutlets" : 2,
@ -4700,7 +4696,6 @@
"box" : {
"bgcolor" : [ 0.2, 0.2, 0.2, 0.0 ],
"clickmoveinactive" : 0,
"displayknob" : 1,
"filternodeschanges" : 1,
"id" : "obj-132",
"knobcolor" : [ 0.929411764705882, 0.341176470588235, 0.270588235294118, 1.0 ],
@ -5101,6 +5096,8 @@
"args" : [ 2, 100, 50 ],
"autostart" : 1,
"defer" : 0,
"node_bin_path" : "",
"npm_bin_path" : "",
"watch" : 1
}
,
@ -5766,7 +5763,7 @@
"mc.function" : [ "data", 0, 388, 86400.0, 0.0, 1.0, 0.0, 0.0, 0, 0.0, 0.0, 0.483333, 0, 0.0, 1800.0, 0.5, 0, 0.0, 1800.0, 0.5, 0, 0.0, 3600.0, 0.553333, 0, 0.0, 3600.0, 0.553333, 0, 0.0, 5400.0, 0.58, 0, 0.0, 5400.0, 0.58, 0, 0.0, 7200.0, 0.66, 0, 0.0, 7200.0, 0.66, 0, 0.0, 9000.0, 0.783333, 0, 0.0, 9000.0, 0.783333, 0, 0.0, 10800.0, 0.816667, 0, 0.0, 10800.0, 0.816667, 0, 0.0, 12600.0, 0.81, 0, 0.0, 12600.0, 0.81, 0, 0.0, 14400.0, 0.68, 0, 0.0, 14400.0, 0.68, 0, 0.0, 16200.0, 0.566667, 0, 0.0, 16200.0, 0.566667, 0, 0.0, 18000.0, 0.53, 0, 0.0, 18000.0, 0.53, 0, 0.0, 19800.0, 0.44, 0, 0.0, 19800.0, 0.44, 0, 0.0, 21600.0, 0.303333, 0, 0.0, 21600.0, 0.303333, 0, 0.0, 23400.0, 0.32, 0, 0.0, 23400.0, 0.32, 0, 0.0, 25200.0, 0.236667, 0, 0.0, 25200.0, 0.236667, 0, 0.0, 27000.0, 0.25, 0, 0.0, 27000.0, 0.25, 0, 0.0, 28800.0, 0.383333, 0, 0.0, 28800.0, 0.383333, 0, 0.0, 30600.0, 0.346667, 0, 0.0, 30600.0, 0.346667, 0, 0.0, 32400.0, 0.24, 0, 0.0, 32400.0, 0.24, 0, 0.0, 34200.0, 0.136667, 0, 0.0, 34200.0, 0.136667, 0, 0.0, 36000.0, 0.203333, 0, 0.0, 36000.0, 0.203333, 0, 0.0, 37800.0, 0.353333, 0, 0.0, 37800.0, 0.353333, 0, 0.0, 39600.0, 0.363333, 0, 0.0, 39600.0, 0.363333, 0, 0.0, 41400.0, 0.376667, 0, 0.0, 41400.0, 0.376667, 0, 0.0, 43200.0, 0.376667, 0, 0.0, 43200.0, 0.376667, 0, 0.0, 45000.0, 0.416667, 0, 0.0, 45000.0, 0.416667, 0, 0.0, 46800.0, 0.476667, 0, 0.0, 46800.0, 0.476667, 0, 0.0, 48600.0, 0.523333, 0, 0.0, 48600.0, 0.523333, 0, 0.0, 50400.0, 0.643333, 0, 0.0, 50400.0, 0.643333, 0, 0.0, 52200.0, 0.87, 0, 0.0, 52200.0, 0.87, 0, 0.0, 54000.0, 0.91, 0, 0.0, 54000.0, 0.91, 0, 0.0, 55800.0, 0.91, 0, 0.0, 55800.0, 0.91, 0, 0.0, 57600.0, 0.916667, 0, 0.0, 57600.0, 0.916667, 0, 0.0, 59400.0, 0.903333, 0, 0.0, 59400.0, 0.903333, 0, 0.0, 61200.0, 0.89, 0, 0.0, 61200.0, 0.89, 0, 0.0, 63000.0, 0.796667, 0, 0.0, 63000.0, 0.796667, 0, 0.0, 64800.0, 0.663333, 0, 0.0, 64800.0, 0.663333, 0, 0.0, 66600.0, 0.55, 0, 0.0, 66600.0, 0.55, 0, 0.0, 68400.0, 0.446667, 0, 0.0, 68400.0, 0.446667, 0, 0.0, 70200.0, 0.513333, 0, 0.0, 70200.0, 0.513333, 0, 0.0, 72000.0, 0.553333, 0, 0.0, 72000.0, 0.553333, 0, 0.0, 73800.0, 0.62, 0, 0.0, 73800.0, 0.62, 0, 0.0, 75600.0, 0.64, 0, 0.0, 75600.0, 0.64, 0, 0.0, 77400.0, 0.633333, 0, 0.0, 77400.0, 0.633333, 0, 0.0, 79200.0, 0.603333, 0, 0.0, 79200.0, 0.603333, 0, 0.0, 81000.0, 0.563333, 0, 0.0, 81000.0, 0.563333, 0, 0.0, 82800.0, 0.523333, 0, 0.0, 82800.0, 0.523333, 0, 0.0, 84600.0, 0.473333, 0, 0.0, 84600.0, 0.473333, 0, 0.0, "curve", "data", 1, 388, 86400.0, 0.0, 1.0, 0.0, 0.0, 0, 0.0, 0.0, 0.473333, 0, 0.0, 1800.0, 0.5, 0, 0.0, 1800.0, 0.5, 0, 0.0, 3600.0, 0.55, 0, 0.0, 3600.0, 0.55, 0, 0.0, 5400.0, 0.563333, 0, 0.0, 5400.0, 0.563333, 0, 0.0, 7200.0, 0.556667, 0, 0.0, 7200.0, 0.556667, 0, 0.0, 9000.0, 0.686667, 0, 0.0, 9000.0, 0.686667, 0, 0.0, 10800.0, 0.523333, 0, 0.0, 10800.0, 0.523333, 0, 0.0, 12600.0, 0.35, 0, 0.0, 12600.0, 0.35, 0, 0.0, 14400.0, 0.31, 0, 0.0, 14400.0, 0.31, 0, 0.0, 16200.0, 0.27, 0, 0.0, 16200.0, 0.27, 0, 0.0, 18000.0, 0.196667, 0, 0.0, 18000.0, 0.196667, 0, 0.0, 19800.0, 0.143333, 0, 0.0, 19800.0, 0.143333, 0, 0.0, 21600.0, 0.223333, 0, 0.0, 21600.0, 0.223333, 0, 0.0, 23400.0, 0.34, 0, 0.0, 23400.0, 0.34, 0, 0.0, 25200.0, 0.426667, 0, 0.0, 25200.0, 0.426667, 0, 0.0, 27000.0, 0.563333, 0, 0.0, 27000.0, 0.563333, 0, 0.0, 28800.0, 0.636667, 0, 0.0, 28800.0, 0.636667, 0, 0.0, 30600.0, 0.733333, 0, 0.0, 30600.0, 0.733333, 0, 0.0, 32400.0, 0.65, 0, 0.0, 32400.0, 0.65, 0, 0.0, 34200.0, 0.616667, 0, 0.0, 34200.0, 0.616667, 0, 0.0, 36000.0, 0.73, 0, 0.0, 36000.0, 0.73, 0, 0.0, 37800.0, 0.8, 0, 0.0, 37800.0, 0.8, 0, 0.0, 39600.0, 0.666667, 0, 0.0, 39600.0, 0.666667, 0, 0.0, 41400.0, 0.553333, 0, 0.0, 41400.0, 0.553333, 0, 0.0, 43200.0, 0.446667, 0, 0.0, 43200.0, 0.446667, 0, 0.0, 45000.0, 0.313333, 0, 0.0, 45000.0, 0.313333, 0, 0.0, 46800.0, 0.236667, 0, 0.0, 46800.0, 0.236667, 0, 0.0, 48600.0, 0.193333, 0, 0.0, 48600.0, 0.193333, 0, 0.0, 50400.0, 0.153333, 0, 0.0, 50400.0, 0.153333, 0, 0.0, 52200.0, 0.193333, 0, 0.0, 52200.0, 0.193333, 0, 0.0, 54000.0, 0.306667, 0, 0.0, 54000.0, 0.306667, 0, 0.0, 55800.0, 0.306667, 0, 0.0, 55800.0, 0.306667, 0, 0.0, 57600.0, 0.47, 0, 0.0, 57600.0, 0.47, 0, 0.0, 59400.0, 0.616667, 0, 0.0, 59400.0, 0.616667, 0, 0.0, 61200.0, 0.723333, 0, 0.0, 61200.0, 0.723333, 0, 0.0, 63000.0, 0.816667, 0, 0.0, 63000.0, 0.816667, 0, 0.0, 64800.0, 0.843333, 0, 0.0, 64800.0, 0.843333, 0, 0.0, 66600.0, 0.843333, 0, 0.0, 66600.0, 0.843333, 0, 0.0, 68400.0, 0.846667, 0, 0.0, 68400.0, 0.846667, 0, 0.0, 70200.0, 0.793333, 0, 0.0, 70200.0, 0.793333, 0, 0.0, 72000.0, 0.723333, 0, 0.0, 72000.0, 0.723333, 0, 0.0, 73800.0, 0.56, 0, 0.0, 73800.0, 0.56, 0, 0.0, 75600.0, 0.496667, 0, 0.0, 75600.0, 0.496667, 0, 0.0, 77400.0, 0.41, 0, 0.0, 77400.0, 0.41, 0, 0.0, 79200.0, 0.42, 0, 0.0, 79200.0, 0.42, 0, 0.0, 81000.0, 0.406667, 0, 0.0, 81000.0, 0.406667, 0, 0.0, 82800.0, 0.406667, 0, 0.0, 82800.0, 0.406667, 0, 0.0, 84600.0, 0.43, 0, 0.0, 84600.0, 0.43, 0, 0.0, "curve" ],
"nodes" : [ 0.5, 0.5, 0.1, 1, 0.1, 0.1, 0.1, 1, 0.9, 0.1, 0.1, 1, 0.9, 0.9, 0.1, 1, 0.1, 0.9, 0.1, 1 ],
"pause" : [ 10 ],
"start" : [ 1 ]
"start" : [ 0 ]
}
,
"text" : "autopattr",
@ -5853,7 +5850,7 @@
}
,
"classnamespace" : "box",
"rect" : [ 105.0, 209.0, 403.0, 673.0 ],
"rect" : [ 12.0, 389.0, 403.0, 673.0 ],
"bglocked" : 0,
"openinpresentation" : 1,
"default_fontsize" : 12.0,
@ -5881,6 +5878,7 @@
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"visible" : 1,
"boxes" : [ {
"box" : {
"fontname" : "Lato",
@ -6062,7 +6060,7 @@
}
,
"classnamespace" : "box",
"rect" : [ 307.0, 100.0, 876.0, 682.0 ],
"rect" : [ 554.0, 178.0, 876.0, 682.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
@ -7105,7 +7103,7 @@
}
,
"classnamespace" : "box",
"rect" : [ 371.0, 100.0, 1078.0, 763.0 ],
"rect" : [ 391.0, 106.0, 1254.0, 763.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
@ -7134,13 +7132,150 @@
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-55",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 779.0, 409.0, 131.0, 22.0 ],
"text" : "prepend levels::level_4"
}
}
, {
"box" : {
"id" : "obj-54",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 733.380956164428198, 379.0, 131.0, 22.0 ],
"text" : "prepend levels::level_3"
}
}
, {
"box" : {
"id" : "obj-53",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 687.880956164428198, 350.0, 131.0, 22.0 ],
"text" : "prepend levels::level_2"
}
}
, {
"box" : {
"id" : "obj-52",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 642.380956164428198, 321.0, 131.0, 22.0 ],
"text" : "prepend levels::level_1"
}
}
, {
"box" : {
"id" : "obj-51",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 778.880956164428198, 230.0, 224.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ -10 ],
"parameter_enable" : 0,
"parameter_mappable" : 0
}
,
"text" : "pattr level_3 @autorestore 1 @initial -10",
"varname" : "level_3[1]"
}
}
, {
"box" : {
"id" : "obj-50",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 733.380956164428198, 199.0, 224.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ -10 ],
"parameter_enable" : 0,
"parameter_mappable" : 0
}
,
"text" : "pattr level_3 @autorestore 1 @initial -10",
"varname" : "level_3"
}
}
, {
"box" : {
"id" : "obj-49",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 687.880956164428198, 172.0, 224.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ -10 ],
"parameter_enable" : 0,
"parameter_mappable" : 0
}
,
"text" : "pattr level_2 @autorestore 1 @initial -10",
"varname" : "level_2"
}
}
, {
"box" : {
"id" : "obj-48",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 642.380956164428198, 144.0, 224.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ -10 ],
"parameter_enable" : 0,
"parameter_mappable" : 0
}
,
"text" : "pattr level_1 @autorestore 1 @initial -10",
"varname" : "level_1"
}
}
, {
"box" : {
"id" : "obj-46",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 5,
"outlettype" : [ "", "", "", "", "" ],
"patching_rect" : [ 642.380956164428198, 110.0, 201.0, 22.0 ],
"text" : "route level_1 level_2 level_3 level_4",
"varname" : "dry[1]"
}
}
, {
"box" : {
"id" : "obj-12",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 453.333391427993774, 537.0, 39.0, 22.0 ],
"patching_rect" : [ 453.95238473585681, 544.0, 39.0, 22.0 ],
"text" : "/ 100."
}
@ -7152,7 +7287,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 67.619056284427643, 111.428585708141327, 42.0, 22.0 ],
"patching_rect" : [ 85.0, 31.619051158428192, 42.0, 22.0 ],
"text" : "dry 95"
}
@ -7164,7 +7299,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 596.190552592277527, 342.857186794281006, 39.0, 22.0 ],
"patching_rect" : [ 596.952384735856867, 350.0, 39.0, 22.0 ],
"text" : "/ 100."
}
@ -7176,7 +7311,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 548.571498870849609, 280.952416956424713, 39.0, 22.0 ],
"patching_rect" : [ 549.952384735856867, 288.0, 39.0, 22.0 ],
"text" : "/ 100."
}
@ -7188,7 +7323,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 500.000064074993134, 222.857171416282654, 39.0, 22.0 ],
"patching_rect" : [ 500.95238473585681, 230.0, 39.0, 22.0 ],
"text" : "/ 100."
}
@ -7200,7 +7335,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 405.714337706565857, 449.523867130279541, 39.0, 22.0 ],
"patching_rect" : [ 406.95238473585681, 457.0, 39.0, 22.0 ],
"text" : "/ 100."
}
@ -7212,7 +7347,7 @@
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 595.238171517848969, 280.952416956424713, 197.0, 22.0 ],
"patching_rect" : [ 595.952384735856867, 288.0, 197.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ 25 ],
"parameter_enable" : 0,
@ -7231,7 +7366,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 596.190552592277527, 372.381000101566315, 71.0, 22.0 ],
"patching_rect" : [ 596.952384735856867, 379.0, 71.0, 22.0 ],
"text" : "prepend tail"
}
@ -7243,7 +7378,7 @@
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 548.571498870849609, 222.857171416282654, 208.0, 22.0 ],
"patching_rect" : [ 549.952384735856867, 230.0, 208.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ 25 ],
"parameter_enable" : 0,
@ -7262,7 +7397,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 548.571498870849609, 308.571468114852905, 82.0, 22.0 ],
"patching_rect" : [ 549.952384735856867, 316.0, 82.0, 22.0 ],
"text" : "prepend early"
}
@ -7274,7 +7409,7 @@
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 500.000064074993134, 192.380977034568787, 205.0, 22.0 ],
"patching_rect" : [ 500.95238473585681, 199.0, 205.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ 100 ],
"parameter_enable" : 0,
@ -7293,7 +7428,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 500.000064074993134, 253.333365797996521, 73.0, 22.0 ],
"patching_rect" : [ 500.95238473585681, 260.0, 73.0, 22.0 ],
"text" : "prepend dry"
}
@ -7305,7 +7440,7 @@
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 453.333391427993774, 511.428636968135834, 228.0, 22.0 ],
"patching_rect" : [ 453.95238473585681, 518.0, 228.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ 70 ],
"parameter_enable" : 0,
@ -7324,7 +7459,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 453.333391427993774, 563.0, 102.0, 22.0 ],
"patching_rect" : [ 453.95238473585681, 570.0, 102.0, 22.0 ],
"text" : "prepend damping"
}
@ -7336,7 +7471,7 @@
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 405.714337706565857, 421.904815971851349, 236.0, 22.0 ],
"patching_rect" : [ 406.95238473585681, 429.0, 236.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ 50 ],
"parameter_enable" : 0,
@ -7355,7 +7490,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 405.714337706565857, 478.095299363136292, 111.0, 22.0 ],
"patching_rect" : [ 406.95238473585681, 485.0, 111.0, 22.0 ],
"text" : "prepend bandwidth"
}
@ -7367,7 +7502,7 @@
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 359.047665059566498, 363.80957043170929, 230.0, 22.0 ],
"patching_rect" : [ 359.95238473585681, 371.0, 230.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ 75 ],
"parameter_enable" : 0,
@ -7386,7 +7521,7 @@
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 312.380992412567139, 308.571468114852905, 162.0, 22.0 ],
"patching_rect" : [ 312.95238473585681, 316.0, 162.0, 22.0 ],
"restore" : [ 0 ],
"saved_object_attributes" : {
"parameter_enable" : 0,
@ -7405,7 +7540,7 @@
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 264.761938691139221, 253.333365797996521, 208.0, 22.0 ],
"patching_rect" : [ 265.95238473585681, 260.0, 208.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ -10 ],
"parameter_enable" : 0,
@ -7424,7 +7559,7 @@
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 218.095266044139862, 192.380977034568787, 218.0, 22.0 ],
"patching_rect" : [ 218.95238473585681, 199.0, 218.0, 22.0 ],
"saved_object_attributes" : {
"initial" : [ 23 ],
"parameter_enable" : 0,
@ -7455,7 +7590,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 359.047665059566498, 392.38100266456604, 105.0, 22.0 ],
"patching_rect" : [ 359.95238473585681, 399.0, 105.0, 22.0 ],
"text" : "prepend roomsize"
}
@ -7467,7 +7602,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 312.380992412567139, 335.238138198852539, 96.0, 22.0 ],
"patching_rect" : [ 312.95238473585681, 342.0, 96.0, 22.0 ],
"text" : "prepend amount"
}
@ -7479,7 +7614,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 218.095266044139862, 222.857171416282654, 93.0, 22.0 ],
"patching_rect" : [ 218.95238473585681, 230.0, 93.0, 22.0 ],
"text" : "prepend spread"
}
@ -7491,7 +7626,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 264.761938691139221, 280.952416956424713, 79.0, 22.0 ],
"patching_rect" : [ 265.95238473585681, 288.0, 79.0, 22.0 ],
"text" : "prepend gain"
}
@ -7503,7 +7638,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 899.047734260559082, 218.095266044139862, 55.0, 22.0 ],
"patching_rect" : [ 1125.0, 218.0, 55.0, 22.0 ],
"text" : "del 1000"
}
@ -7515,7 +7650,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 900.952496409416199, 274.285749435424805, 92.0, 22.0 ],
"patching_rect" : [ 1127.0, 274.0, 92.0, 22.0 ],
"text" : "use_transport 1"
}
@ -7527,7 +7662,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 900.952496409416199, 247.619079351425171, 54.0, 22.0 ],
"patching_rect" : [ 1127.0, 248.0, 54.0, 22.0 ],
"text" : "deferlow"
}
@ -7539,7 +7674,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 901.904877483844757, 335.238138198852539, 54.0, 22.0 ],
"patching_rect" : [ 1128.0, 335.0, 54.0, 22.0 ],
"text" : "deferlow"
}
@ -7551,7 +7686,7 @@
"numinlets" : 14,
"numoutlets" : 14,
"outlettype" : [ "", "", "", "", "", "", "", "", "", "", "", "", "", "" ],
"patching_rect" : [ 29.523813307285309, 161.904782652854919, 631.85714285714289, 22.0 ],
"patching_rect" : [ 29.523813307285309, 76.0, 631.85714285714289, 22.0 ],
"text" : "route piece mode duration silence spread gain amount roomsize bandwidth damping dry early tail"
}
@ -7563,7 +7698,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 901.904877483844757, 308.571468114852905, 110.0, 22.0 ],
"patching_rect" : [ 1128.0, 309.0, 110.0, 22.0 ],
"text" : "loadmess stream 1"
}
@ -7575,7 +7710,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 899.047734260559082, 188.571452736854553, 58.0, 22.0 ],
"patching_rect" : [ 1125.0, 189.0, 58.0, 22.0 ],
"text" : "loadbang"
}
@ -7587,7 +7722,7 @@
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 641.904844164848328, 398.09528911113739, 213.0, 22.0 ],
"patching_rect" : [ 824.380956164428198, 288.0, 213.0, 22.0 ],
"text" : "substitute play global_transport_active"
}
@ -7599,7 +7734,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 942.857263684272766, 421.904815971851349, 53.0, 22.0 ],
"patching_rect" : [ 1169.0, 422.0, 53.0, 22.0 ],
"text" : "scale $1"
}
@ -7611,7 +7746,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 709.52390044927597, 584.761979699134827, 236.0, 22.0 ],
"patching_rect" : [ 892.380956164428198, 565.0, 236.0, 22.0 ],
"text" : "sprintf send parent::parent::Djster.µbus[%i]"
}
@ -7623,7 +7758,7 @@
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 641.904844164848328, 584.761979699134827, 38.0, 22.0 ],
"patching_rect" : [ 824.380956164428198, 565.0, 38.0, 22.0 ],
"text" : "zl.reg"
}
@ -7635,7 +7770,7 @@
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 641.904844164848328, 500.000064074993134, 77.0, 22.0 ],
"patching_rect" : [ 824.380956164428198, 480.0, 77.0, 22.0 ],
"text" : "t b l"
}
@ -7647,7 +7782,7 @@
"numinlets" : 2,
"numoutlets" : 3,
"outlettype" : [ "bang", "bang", "int" ],
"patching_rect" : [ 641.904844164848328, 532.381020605564117, 86.5, 22.0 ],
"patching_rect" : [ 824.380956164428198, 512.0, 86.5, 22.0 ],
"text" : "uzi 4 0"
}
@ -7659,7 +7794,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 641.904844164848328, 635.238176643848419, 73.0, 22.0 ],
"patching_rect" : [ 824.380956164428198, 615.0, 73.0, 22.0 ],
"text" : "pattrforward"
}
@ -7681,7 +7816,7 @@
"numoutlets" : 3,
"outlettype" : [ "int", "", "" ],
"parameter_enable" : 1,
"patching_rect" : [ 901.904877483844757, 390.476240515708923, 100.0, 21.0 ],
"patching_rect" : [ 1128.0, 390.0, 100.0, 21.0 ],
"pattrmode" : 1,
"presentation" : 1,
"presentation_rect" : [ 47.0, 36.0, 77.0, 21.0 ],
@ -7802,7 +7937,7 @@
, {
"patchline" : {
"destination" : [ "obj-3", 0 ],
"midpoints" : [ 709.404844164848328, 569.952416956424713, 651.404844164848328, 569.952416956424713 ],
"midpoints" : [ 891.880956164428198, 549.95235288143158, 833.880956164428198, 549.95235288143158 ],
"source" : [ "obj-2", 1 ]
}
@ -7961,6 +8096,55 @@
"source" : [ "obj-45", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-48", 0 ],
"source" : [ "obj-46", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-49", 0 ],
"source" : [ "obj-46", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-50", 0 ],
"source" : [ "obj-46", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"source" : [ "obj-46", 3 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 0 ],
"source" : [ "obj-46", 4 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-52", 0 ],
"source" : [ "obj-48", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-53", 0 ],
"source" : [ "obj-49", 0 ]
}
}
, {
"patchline" : {
@ -7968,6 +8152,48 @@
"source" : [ "obj-5", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-54", 0 ],
"source" : [ "obj-50", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-55", 0 ],
"source" : [ "obj-51", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"source" : [ "obj-52", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"source" : [ "obj-53", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"source" : [ "obj-54", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"source" : [ "obj-55", 0 ]
}
}
, {
"patchline" : {
@ -8062,7 +8288,7 @@
}
, {
"patchline" : {
"destination" : [ "obj-7", 0 ],
"destination" : [ "obj-46", 0 ],
"source" : [ "obj-9", 13 ]
}
@ -8304,7 +8530,7 @@
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 517.899999999999977, 790.0, 145.0, 22.0 ],
"restore" : [ 8.047734118998051, 31.939411282539368 ],
"restore" : [ 21, 63 ],
"saved_object_attributes" : {
"parameter_enable" : 0,
"parameter_mappable" : 0
@ -8323,7 +8549,7 @@
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 460.899999999999977, 903.0, 145.0, 22.0 ],
"restore" : [ 26.924145400524139, 6.380843676626682 ],
"restore" : [ 63, 21 ],
"saved_object_attributes" : {
"parameter_enable" : 0,
"parameter_mappable" : 0
@ -8342,7 +8568,7 @@
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 403.899999999999977, 847.0, 145.0, 22.0 ],
"restore" : [ 49.802537113428116, 29.473510593175888 ],
"restore" : [ 109, 63 ],
"saved_object_attributes" : {
"parameter_enable" : 0,
"parameter_mappable" : 0
@ -8361,7 +8587,7 @@
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 346.899999999999977, 790.0, 145.0, 22.0 ],
"restore" : [ 35.432157754898071, 46.369709312915802 ],
"restore" : [ 66, 109 ],
"saved_object_attributes" : {
"parameter_enable" : 0,
"parameter_mappable" : 0
@ -9398,7 +9624,6 @@
, {
"box" : {
"id" : "obj-34",
"int" : 4,
"maxclass" : "gswitch2",
"numinlets" : 2,
"numoutlets" : 5,
@ -9881,7 +10106,7 @@
}
, {
"box" : {
"autorestore" : "Hss-Chen-Preset-2.json",
"autorestore" : "Loria_HSS_Composition.json",
"id" : "obj-20",
"maxclass" : "newobj",
"numinlets" : 1,
@ -10079,7 +10304,7 @@
"outlettype" : [ "", "" ],
"patching_rect" : [ 169.0, 116.0, 118.0, 22.0 ],
"saved_object_attributes" : {
"filename" : "djster_webcontrol",
"filename" : "djster_webcontrol.js",
"parameter_enable" : 0
}
,
@ -10578,7 +10803,7 @@
, {
"patchline" : {
"destination" : [ "obj-148", 0 ],
"order" : 0,
"order" : 1,
"source" : [ "obj-149", 0 ]
}
@ -11529,7 +11754,7 @@
"parameter_overrides" : {
"obj-15::obj-1" : {
"parameter_longname" : "Outset Pulses[3]",
"parameter_range" : [ 1, 6 ]
"parameter_range" : [ 1, 32 ]
}
,
"obj-15::obj-104" : {
@ -11545,10 +11770,10 @@
}
,
"obj-15::obj-110" : {
"parameter_initial" : 1000,
"parameter_initial" : 99,
"parameter_longname" : "Event Length Percent[3]",
"parameter_range" : [ 20.0, 20000.0 ],
"parameter_unitstyle" : 2
"parameter_range" : [ 1.0, 1000.0 ],
"parameter_unitstyle" : 5
}
,
"obj-15::obj-115" : {
@ -11657,7 +11882,7 @@
,
"obj-26::obj-1" : {
"parameter_longname" : "Outset Pulses",
"parameter_range" : [ 1, 12 ]
"parameter_range" : [ 1, 32 ]
}
,
"obj-26::obj-104" : {
@ -11673,10 +11898,10 @@
}
,
"obj-26::obj-110" : {
"parameter_initial" : 1000,
"parameter_initial" : 99,
"parameter_longname" : "Event Length Percent",
"parameter_range" : [ 20.0, 20000.0 ],
"parameter_unitstyle" : 2
"parameter_range" : [ 1.0, 1000.0 ],
"parameter_unitstyle" : 5
}
,
"obj-26::obj-115" : {
@ -11791,7 +12016,7 @@
,
"obj-5::obj-1" : {
"parameter_longname" : "Outset Pulses[1]",
"parameter_range" : [ 1, 12 ]
"parameter_range" : [ 1, 32 ]
}
,
"obj-5::obj-104" : {
@ -11807,10 +12032,10 @@
}
,
"obj-5::obj-110" : {
"parameter_initial" : 1000,
"parameter_initial" : 99,
"parameter_longname" : "Event Length Percent[1]",
"parameter_range" : [ 20.0, 20000.0 ],
"parameter_unitstyle" : 2
"parameter_range" : [ 1.0, 1000.0 ],
"parameter_unitstyle" : 5
}
,
"obj-5::obj-115" : {
@ -11921,7 +12146,7 @@
,
"obj-8::obj-1" : {
"parameter_longname" : "Outset Pulses[2]",
"parameter_range" : [ 1, 9 ]
"parameter_range" : [ 1, 32 ]
}
,
"obj-8::obj-104" : {
@ -11937,10 +12162,10 @@
}
,
"obj-8::obj-110" : {
"parameter_initial" : 1000,
"parameter_initial" : 99,
"parameter_longname" : "Event Length Percent[2]",
"parameter_range" : [ 20.0, 20000.0 ],
"parameter_unitstyle" : 2
"parameter_range" : [ 1.0, 1000.0 ],
"parameter_unitstyle" : 5
}
,
"obj-8::obj-115" : {
@ -12073,13 +12298,6 @@
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "Hss-Chen-Preset-2.json",
"bootpath" : "/Users/Shared/Max 8/Library/healing-soundscapes/Presets",
"patcherrelativepath" : "./Presets",
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "Inner-Equation.5.maxpat",
"bootpath" : "/Users/Shared/Max 8/Packages/MaxScore/patchers/DJster/dispenser",
@ -12094,6 +12312,13 @@
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "Loria_HSS_Composition.json",
"bootpath" : "/Users/Shared/Max 8/Library/healing-soundscapes/Presets",
"patcherrelativepath" : "./Presets",
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "Mod.2.maxpat",
"bootpath" : "/Users/Shared/Max 8/Packages/MaxScore/patchers/DJster/dispenser",
@ -12143,13 +12368,6 @@
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "TestTrajectory.txt",
"bootpath" : "/Users/Shared/Max 8/Library/healing-soundscapes/Trajectories",
"patcherrelativepath" : "./Trajectories",
"type" : "TEXT",
"implicit" : 1
}
, {
"name" : "Total-Internal-Equation.6.maxpat",
"bootpath" : "/Users/Shared/Max 8/Packages/MaxScore/patchers/DJster/dispenser",

View File

@ -10,7 +10,6 @@ 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;
var title;
var DJsterParams = {
"attenuation" : [0, 100, "linear"], //
"chordal_weight" : [1, 5, "linear"],//
@ -47,7 +46,7 @@ if (metaComposition != "") readPiece(path + metaComposition);
function dictionary(d)
{
net.name = d;
hsspiece[title]["networkData"] = JSON.parse(net.stringify());
hsspiece[currentPiece]["networkData"] = JSON.parse(net.stringify());
outdict.parse(JSON.stringify(hsspiece));
jpieces = JSON.parse(outdict.stringify());
setMenu();
@ -86,7 +85,8 @@ function setSection(section)
outlet(1, "set_weights", "dictionary", networkData.name);
outlet(1, "predict", 0.5, 0.5);
outlet(0, 0.5, 0.5);
this.patcher.getnamed("mc.function").setvalueof(outdict.get(section + "::breakpoints"));
if (outdict.contains(section + "::breakpoints")) this.patcher.getnamed("mc.function").setvalueof(outdict.get(section + "::breakpoints"));
if (outdict.contains(section + "::audiolevels")) for (var i = 0; i < 4; i++) this.patcher.getnamed("hub").subpatcher().getnamed("global").subpatcher().getnamed("level_" + (i + 1)).setvalueof(outdict.get(section + "::audiolevels")[i]);
}
currentPiece = section;
}
@ -145,18 +145,18 @@ function setPresetFile(f)
{
filename = f;
currentPiece = filename.slice(filename.lastIndexOf("/") + 1, filename.lastIndexOf("."));
post("currentPiece", currentPiece, "\n");
}
function train()
{
presets = new Dict;
presets.import_json(filename);
title = currentPiece;
hsspiece[title] = {};
hsspiece[currentPiece] = {};
var slots = presets.get("pattrstorage::slots").getkeys();//number of slots here
outlet(1, "clear_data");
for (var j = 0; j < slots.length; j++){
hsspiece[title][j + 1] = {};
hsspiece[currentPiece][j + 1] = {};
var trainingData = [];
var data = JSON.parse(presets.get("pattrstorage::slots::" + (j + 1) + "::data").stringify());
for (var p = 0; p < 4; p++) {
@ -175,16 +175,13 @@ function train()
trainingData.push(j/5);
break;
}
//post("param", param, trainingData, "\n");
}
//var val = data["hub::instrument::instrument-" + (p + 1)];
trainingData.push(j/5);
var val = data["hub::src::src" + (p + 1)];
trainingData.push(scale(val[0], 0, 127, 0., 1.));
trainingData.push(scale(val[1], 0, 127, 0., 1.));
}
//post("data", JSON.stringify(data), "\n");
hsspiece[title][j + 1] = data;
hsspiece[currentPiece][j + 1] = data;
outlet(1, "data_point", points[j].concat(trainingData));
}
outlet(1, "train", 10000);
@ -193,7 +190,6 @@ function train()
function list()
{
//post("jpieces", Object.keys(jpieces), "\n");
var vector = arrayfromargs(arguments);
var src = [];
//currentPiece = this.patcher.getnamed("currentPiece").getvalueof();
@ -249,12 +245,21 @@ function list()
function setBreakPoints()
{
hsspiece[title]["breakpoints"] = this.patcher.getnamed("mc.function").getvalueof();
hsspiece[currentPiece]["breakpoints"] = this.patcher.getnamed("mc.function").getvalueof();
outdict.parse(JSON.stringify(hsspiece));
jpieces = JSON.parse(outdict.stringify());
}
function setAudioLevels()
{
post("jpieces", currentPiece, "\n");
hsspiece[currentPiece]["audiolevels"] = [ this.patcher.getnamed("hub").subpatcher().getnamed("global").subpatcher().getnamed("level_1").getvalueof(), this.patcher.getnamed("hub").subpatcher().getnamed("global").subpatcher().getnamed("level_2").getvalueof(), this.patcher.getnamed("hub").subpatcher().getnamed("global").subpatcher().getnamed("level_3").getvalueof(), this.patcher.getnamed("hub").subpatcher().getnamed("global").subpatcher().getnamed("level_4").getvalueof() ];
outdict.parse(JSON.stringify(hsspiece));
jpieces = JSON.parse(outdict.stringify());
}
function scale(x, inputmin, inputmax, outputmin, outputmax)
{