Implementation of NN training
This commit is contained in:
parent
89c6ceb0bf
commit
e274b86fa6
@ -10,7 +10,7 @@
|
||||
}
|
||||
,
|
||||
"classnamespace" : "box",
|
||||
"rect" : [ 441.0, 100.0, 1019.0, 510.0 ],
|
||||
"rect" : [ 34.0, 100.0, 1020.0, 510.0 ],
|
||||
"bglocked" : 1,
|
||||
"openinpresentation" : 1,
|
||||
"default_fontsize" : 12.0,
|
||||
@ -40,6 +40,200 @@
|
||||
"assistshowspatchername" : 0,
|
||||
"globalpatchername" : "server",
|
||||
"boxes" : [ {
|
||||
"box" : {
|
||||
"id" : "obj-83",
|
||||
"linecount" : 3,
|
||||
"maxclass" : "comment",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 0,
|
||||
"patching_rect" : [ 340.0, 83.0, 69.0, 47.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 322.5, 77.0, 105.0, 20.0 ],
|
||||
"saved_attribute_attributes" : {
|
||||
"textcolor" : {
|
||||
"expression" : "themecolor.theme_textcolor"
|
||||
}
|
||||
|
||||
}
|
||||
,
|
||||
"text" : "Dump weights for:"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"bubble" : 1,
|
||||
"fontname" : "Arial",
|
||||
"fontsize" : 11.0,
|
||||
"id" : "obj-82",
|
||||
"linecount" : 2,
|
||||
"maxclass" : "comment",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 0,
|
||||
"patching_rect" : [ 600.0, 244.0, 117.0, 35.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_linecount" : 3,
|
||||
"presentation_rect" : [ 402.0, 33.5, 100.0, 47.0 ],
|
||||
"text" : "Train after opening preset file"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-80",
|
||||
"maxclass" : "newobj",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1161.600017309188843, 4.0, 89.0, 22.0 ],
|
||||
"text" : "loadmess clear"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-78",
|
||||
"maxclass" : "comment",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 0,
|
||||
"patching_rect" : [ 600.0, 69.0, 69.0, 20.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 340.0, 19.0, 69.0, 20.0 ],
|
||||
"saved_attribute_attributes" : {
|
||||
"textcolor" : {
|
||||
"expression" : "themecolor.theme_textcolor"
|
||||
}
|
||||
|
||||
}
|
||||
,
|
||||
"text" : "Neural Net:"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-76",
|
||||
"maxclass" : "message",
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1245.49999874830246, 116.0, 205.0, 22.0 ],
|
||||
"text" : "get Hss-Chen-Preset-2::networkData"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"fontname" : "Arial",
|
||||
"fontsize" : 13.0,
|
||||
"id" : "obj-30",
|
||||
"maxclass" : "message",
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1161.600017309188843, 54.5, 177.0, 23.0 ],
|
||||
"text" : "clearchecks, checkitem $1 1"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-77",
|
||||
"maxclass" : "message",
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1114.0, 84.0, 45.0, 22.0 ],
|
||||
"text" : "setDict"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-74",
|
||||
"maxclass" : "message",
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1072.0, 84.0, 32.0, 22.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 359.0, 46.0, 32.0, 22.0 ],
|
||||
"text" : "train"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-73",
|
||||
"maxclass" : "newobj",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 0,
|
||||
"patching_rect" : [ 1227.200002014636993, 188.800002813339233, 105.0, 22.0 ],
|
||||
"text" : "print training_data"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-72",
|
||||
"maxclass" : "newobj",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1151.200017154216766, 411.200006127357483, 126.0, 22.0 ],
|
||||
"text" : "prepend setPresetFile"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-70",
|
||||
"maxclass" : "newobj",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 3,
|
||||
"outlettype" : [ "", "", "" ],
|
||||
"patching_rect" : [ 1151.200017154216766, 356.000005304813385, 40.0, 22.0 ],
|
||||
"text" : "t l l l"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-64",
|
||||
"maxclass" : "newobj",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1161.600017309188843, 384.800005733966827, 80.0, 22.0 ],
|
||||
"text" : "prepend read"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-60",
|
||||
"maxclass" : "newobj",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "bang" ],
|
||||
"patching_rect" : [ 1151.200017154216766, 300.000004470348358, 22.0, 22.0 ],
|
||||
"text" : "t b"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-55",
|
||||
"maxclass" : "newobj",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 2,
|
||||
"outlettype" : [ "", "bang" ],
|
||||
"patching_rect" : [ 1151.200017154216766, 328.800004899501801, 67.0, 22.0 ],
|
||||
"text" : "opendialog"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-69",
|
||||
"items" : [ 1, ",", 3, ",", 5 ],
|
||||
@ -48,7 +242,7 @@
|
||||
"numoutlets" : 3,
|
||||
"outlettype" : [ "int", "", "" ],
|
||||
"parameter_enable" : 0,
|
||||
"patching_rect" : [ 1337.0, 244.0, 32.0, 22.0 ],
|
||||
"patching_rect" : [ 1336.800019919872284, 223.200003325939178, 32.0, 22.0 ],
|
||||
"pattrmode" : 1,
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 734.0, 124.0, 32.0, 22.0 ]
|
||||
@ -62,7 +256,7 @@
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1337.0, 210.0, 70.0, 22.0 ],
|
||||
"patching_rect" : [ 1336.800019919872284, 188.800002813339233, 70.0, 22.0 ],
|
||||
"text" : "loadmess 0"
|
||||
}
|
||||
|
||||
@ -79,19 +273,6 @@
|
||||
"text" : "Output Mode:"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-66",
|
||||
"linecount" : 3,
|
||||
"maxclass" : "message",
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1117.0, 522.0, 50.0, 49.0 ],
|
||||
"text" : "read DJster.json 0"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
@ -112,7 +293,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1169.0, 377.0, 77.0, 22.0 ],
|
||||
"patching_rect" : [ 1245.49999874830246, 447.200006663799286, 77.0, 22.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 525.0, 98.0, 77.0, 22.0 ],
|
||||
"text" : "clientwindow"
|
||||
@ -215,7 +396,7 @@
|
||||
"numoutlets" : 2,
|
||||
"outlettype" : [ "", "bang" ],
|
||||
"parameter_enable" : 0,
|
||||
"patching_rect" : [ 1301.5, 467.0, 50.0, 22.0 ]
|
||||
"patching_rect" : [ 1302.400003135204315, 538.400000631809235, 50.0, 22.0 ]
|
||||
}
|
||||
|
||||
}
|
||||
@ -226,7 +407,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1301.5, 495.0, 107.0, 22.0 ],
|
||||
"patching_rect" : [ 1302.400003135204315, 566.400001049041748, 107.0, 22.0 ],
|
||||
"text" : "hub::global::dry $1"
|
||||
}
|
||||
|
||||
@ -254,7 +435,7 @@
|
||||
"parameter_enable" : 0,
|
||||
"patching_rect" : [ 7.5, 199.0, 100.0, 20.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 40.0, 87.0, 96.0, 27.0 ],
|
||||
"presentation_rect" : [ 28.0, 89.5, 96.0, 27.0 ],
|
||||
"text" : "Load Client",
|
||||
"textoncolor" : [ 1.0, 1.0, 1.0, 1.0 ]
|
||||
}
|
||||
@ -267,7 +448,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1151.0, 291.5, 33.0, 22.0 ],
|
||||
"patching_rect" : [ 1151.200017154216766, 270.400004029273987, 33.0, 22.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 525.0, 43.0, 33.0, 22.0 ],
|
||||
"text" : "read"
|
||||
@ -281,7 +462,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 2,
|
||||
"outlettype" : [ "", "" ],
|
||||
"patching_rect" : [ 1227.0, 499.0, 60.0, 22.0 ],
|
||||
"patching_rect" : [ 1227.200002014636993, 570.400001108646393, 60.0, 22.0 ],
|
||||
"text" : "zl.change"
|
||||
}
|
||||
|
||||
@ -293,7 +474,7 @@
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1288.0, 572.0, 134.0, 22.0 ],
|
||||
"patching_rect" : [ 1288.000002920627594, 643.200002193450928, 134.0, 22.0 ],
|
||||
"text" : "pattrforward webcontrol"
|
||||
}
|
||||
|
||||
@ -636,8 +817,8 @@
|
||||
"key" : "svg",
|
||||
"val" : {
|
||||
"id" : "src4",
|
||||
"cx" : 101,
|
||||
"cy" : 74
|
||||
"cx" : 136,
|
||||
"cy" : 102
|
||||
}
|
||||
|
||||
}
|
||||
@ -2014,7 +2195,7 @@
|
||||
]
|
||||
}
|
||||
,
|
||||
"patching_rect" : [ 1227.0, 536.0, 80.0, 22.0 ],
|
||||
"patching_rect" : [ 1227.200002014636993, 607.200001657009125, 80.0, 22.0 ],
|
||||
"saved_object_attributes" : {
|
||||
"description" : "",
|
||||
"digest" : "",
|
||||
@ -2033,7 +2214,7 @@
|
||||
"numinlets" : 5,
|
||||
"numoutlets" : 5,
|
||||
"outlettype" : [ "", "", "", "", "" ],
|
||||
"patching_rect" : [ 1092.0, 467.0, 154.0, 22.0 ],
|
||||
"patching_rect" : [ 1092.0, 538.400000631809235, 154.0, 22.0 ],
|
||||
"text" : "route save read store recall"
|
||||
}
|
||||
|
||||
@ -2045,7 +2226,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1361.0, 377.0, 39.0, 22.0 ],
|
||||
"patching_rect" : [ 1360.800020277500153, 356.000005304813385, 39.0, 22.0 ],
|
||||
"text" : "dump"
|
||||
}
|
||||
|
||||
@ -2057,7 +2238,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1253.0, 377.0, 89.0, 22.0 ],
|
||||
"patching_rect" : [ 1329.5, 447.200006663799286, 89.0, 22.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 525.0, 126.0, 89.0, 22.0 ],
|
||||
"text" : "storagewindow"
|
||||
@ -2071,7 +2252,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1105.25, 346.0, 29.5, 22.0 ],
|
||||
"patching_rect" : [ 1118.500016272068024, 328.800004899501801, 29.5, 22.0 ],
|
||||
"text" : "1"
|
||||
}
|
||||
|
||||
@ -2084,7 +2265,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1343.5, 328.0, 75.0, 35.0 ],
|
||||
"patching_rect" : [ 1343.200020015239716, 307.200004577636719, 75.0, 35.0 ],
|
||||
"text" : "outputmode $1"
|
||||
}
|
||||
|
||||
@ -2096,7 +2277,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1253.5, 328.0, 88.0, 22.0 ],
|
||||
"patching_rect" : [ 1253.600018680095673, 307.200004577636719, 88.0, 22.0 ],
|
||||
"text" : "changemode 1"
|
||||
}
|
||||
|
||||
@ -2108,7 +2289,7 @@
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 612.5, 109.0, 70.0, 22.0 ],
|
||||
"patching_rect" : [ 634.0, 109.0, 70.0, 22.0 ],
|
||||
"text" : "loadmess 0"
|
||||
}
|
||||
|
||||
@ -2120,8 +2301,8 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1245.5, 220.0, 82.0, 22.0 ],
|
||||
"text" : "getSection $1"
|
||||
"patching_rect" : [ 1215.100017309188843, 84.0, 81.0, 22.0 ],
|
||||
"text" : "setSection $1"
|
||||
}
|
||||
|
||||
}
|
||||
@ -2133,7 +2314,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1222.0, 96.0, 95.0, 35.0 ],
|
||||
"patching_rect" : [ 1048.0, 42.5, 100.000000655651093, 35.0 ],
|
||||
"text" : "readPiece HSSPieces.json"
|
||||
}
|
||||
|
||||
@ -2141,14 +2322,16 @@
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-200",
|
||||
"items" : "DefaultSetting",
|
||||
"items" : [ "Hss-Chen-Preset-2", ",", "hss-Xiao-2024-2" ],
|
||||
"maxclass" : "umenu",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 3,
|
||||
"outlettype" : [ "int", "", "" ],
|
||||
"parameter_enable" : 0,
|
||||
"patching_rect" : [ 1191.5, 188.0, 126.0, 22.0 ],
|
||||
"patching_rect" : [ 1161.600017309188843, 28.0, 126.0, 22.0 ],
|
||||
"pattrmode" : 1,
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 312.0, 106.5, 126.0, 22.0 ],
|
||||
"varname" : "currentPiece"
|
||||
}
|
||||
|
||||
@ -2186,7 +2369,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 612.5, 210.0, 89.0, 22.0 ],
|
||||
"patching_rect" : [ 634.0, 210.0, 89.0, 22.0 ],
|
||||
"text" : "displayknob $1"
|
||||
}
|
||||
|
||||
@ -2200,7 +2383,7 @@
|
||||
"numoutlets" : 3,
|
||||
"outlettype" : [ "int", "", "" ],
|
||||
"parameter_enable" : 0,
|
||||
"patching_rect" : [ 612.5, 146.0, 128.0, 22.0 ],
|
||||
"patching_rect" : [ 634.0, 146.0, 128.0, 22.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 642.0, 55.5, 124.0, 22.0 ]
|
||||
}
|
||||
@ -2209,6 +2392,7 @@
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-181",
|
||||
"int" : 1,
|
||||
"maxclass" : "gswitch2",
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 2,
|
||||
@ -2398,6 +2582,7 @@
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-165",
|
||||
"int" : 1,
|
||||
"maxclass" : "gswitch2",
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 2,
|
||||
@ -2849,6 +3034,7 @@
|
||||
"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 ],
|
||||
@ -2878,7 +3064,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1151.0, 96.0, 64.0, 22.0 ],
|
||||
"patching_rect" : [ 1032.0, 14.5, 64.0, 22.0 ],
|
||||
"text" : "writePiece"
|
||||
}
|
||||
|
||||
@ -2901,7 +3087,7 @@
|
||||
}
|
||||
,
|
||||
"classnamespace" : "box",
|
||||
"rect" : [ 170.0, 100.0, 1244.0, 670.0 ],
|
||||
"rect" : [ 142.0, 109.0, 1244.0, 670.0 ],
|
||||
"bglocked" : 0,
|
||||
"openinpresentation" : 0,
|
||||
"default_fontsize" : 12.0,
|
||||
@ -2930,6 +3116,24 @@
|
||||
"subpatcher_template" : "",
|
||||
"assistshowspatchername" : 0,
|
||||
"boxes" : [ {
|
||||
"box" : {
|
||||
"id" : "obj-1",
|
||||
"linecolor" : [ 0.882353, 0.882353, 0.882353, 1.0 ],
|
||||
"maxclass" : "live.line",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 0,
|
||||
"patching_rect" : [ 352.75, 421.0, 5.0, 100.0 ],
|
||||
"saved_attribute_attributes" : {
|
||||
"linecolor" : {
|
||||
"expression" : "themecolor.maxwindow_errortext"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-35",
|
||||
"maxclass" : "newobj",
|
||||
@ -3387,7 +3591,7 @@
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "bang" ],
|
||||
"patching_rect" : [ 1191.5, 256.0, 58.0, 22.0 ],
|
||||
"patching_rect" : [ 1191.200017750263214, 230.400003433227539, 58.0, 22.0 ],
|
||||
"text" : "loadbang"
|
||||
}
|
||||
|
||||
@ -3399,7 +3603,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 5,
|
||||
"outlettype" : [ "dictionary", "", "", "", "" ],
|
||||
"patching_rect" : [ 1220.5, 159.0, 91.0, 22.0 ],
|
||||
"patching_rect" : [ 1245.49999874830246, 147.0, 91.0, 22.0 ],
|
||||
"saved_object_attributes" : {
|
||||
"embed" : 0,
|
||||
"legacy" : 0,
|
||||
@ -3418,7 +3622,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 4,
|
||||
"outlettype" : [ "", "", "", "" ],
|
||||
"patching_rect" : [ 1028.0, 159.0, 153.0, 22.0 ],
|
||||
"patching_rect" : [ 1032.0, 146.0, 153.0, 22.0 ],
|
||||
"saved_object_attributes" : {
|
||||
"filename" : "hss.piecemaker.js",
|
||||
"parameter_enable" : 0
|
||||
@ -3427,17 +3631,6 @@
|
||||
"text" : "js hss.piecemaker.js"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-30",
|
||||
"maxclass" : "dropfile",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 2,
|
||||
"outlettype" : [ "", "" ],
|
||||
"patching_rect" : [ 1028.0, 18.0, 94.0, 79.0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
@ -3447,7 +3640,7 @@
|
||||
"numoutlets" : 0,
|
||||
"patching_rect" : [ 376.0, 198.0, 62.0, 20.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 374.0, 19.0, 62.0, 20.0 ],
|
||||
"presentation_rect" : [ 246.0, 19.0, 62.0, 20.0 ],
|
||||
"saved_attribute_attributes" : {
|
||||
"textcolor" : {
|
||||
"expression" : "themecolor.theme_textcolor"
|
||||
@ -3468,7 +3661,7 @@
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 440.0, 197.0, 33.0, 22.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 384.0, 46.0, 33.0, 22.0 ],
|
||||
"presentation_rect" : [ 256.0, 46.0, 33.0, 22.0 ],
|
||||
"text" : "read"
|
||||
}
|
||||
|
||||
@ -3719,7 +3912,7 @@
|
||||
"numoutlets" : 0,
|
||||
"patching_rect" : [ 1191.0, 678.0, 150.0, 20.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 221.0, 19.0, 75.0, 20.0 ],
|
||||
"presentation_rect" : [ 145.0, 19.0, 75.0, 20.0 ],
|
||||
"saved_attribute_attributes" : {
|
||||
"textcolor" : {
|
||||
"expression" : "themecolor.theme_textcolor"
|
||||
@ -3742,7 +3935,7 @@
|
||||
"parameter_enable" : 0,
|
||||
"patching_rect" : [ 48.0, 86.0, 100.0, 20.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 40.0, 41.0, 96.0, 27.0 ],
|
||||
"presentation_rect" : [ 28.0, 43.5, 96.0, 27.0 ],
|
||||
"text" : "Open Interface",
|
||||
"textoncolor" : [ 1.0, 1.0, 1.0, 1.0 ]
|
||||
}
|
||||
@ -3776,7 +3969,7 @@
|
||||
"numoutlets" : 0,
|
||||
"patching_rect" : [ 1191.0, 729.0, 150.0, 20.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 227.0, 107.0, 28.0, 20.0 ],
|
||||
"presentation_rect" : [ 151.0, 107.0, 28.0, 20.0 ],
|
||||
"saved_attribute_attributes" : {
|
||||
"textcolor" : {
|
||||
"expression" : "themecolor.theme_textcolor"
|
||||
@ -3810,7 +4003,7 @@
|
||||
"maxclass" : "comment",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 0,
|
||||
"patching_rect" : [ 1048.0, 251.5, 137.0, 38.0 ],
|
||||
"patching_rect" : [ 1048.000015616416931, 230.400003433227539, 137.0, 38.0 ],
|
||||
"text" : "Write presets to file"
|
||||
}
|
||||
|
||||
@ -3822,7 +4015,7 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1092.0, 291.5, 56.0, 22.0 ],
|
||||
"patching_rect" : [ 1092.000016272068024, 270.400004029273987, 56.0, 22.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 525.0, 70.0, 56.0, 22.0 ],
|
||||
"text" : "writejson"
|
||||
@ -3838,7 +4031,7 @@
|
||||
"outlettype" : [ "", "", "", "" ],
|
||||
"patching_rect" : [ 225.0, 65.0, 56.0, 22.0 ],
|
||||
"restore" : {
|
||||
"currentPiece" : [ "DefaultSetting" ],
|
||||
"currentPiece" : [ "hss-Xiao-2024-2" ],
|
||||
"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 ]
|
||||
}
|
||||
,
|
||||
@ -4470,10 +4663,10 @@
|
||||
"outlettype" : [ "", "", "", "" ],
|
||||
"patching_rect" : [ 83.0, 16.0, 56.0, 22.0 ],
|
||||
"restore" : {
|
||||
"instrument-1" : [ "Dreamers.instr" ],
|
||||
"instrument-1" : [ "Bell-1.instr" ],
|
||||
"instrument-2" : [ "Bell-1.instr" ],
|
||||
"instrument-3" : [ "Bell-1.instr" ],
|
||||
"instrument-4" : [ "Marimba.instr" ]
|
||||
"instrument-4" : [ "Bell-1.instr" ]
|
||||
}
|
||||
,
|
||||
"text" : "autopattr",
|
||||
@ -5463,7 +5656,7 @@
|
||||
"numoutlets" : 3,
|
||||
"outlettype" : [ "", "", "" ],
|
||||
"patching_rect" : [ 312.380992412567139, 308.571468114852905, 162.0, 22.0 ],
|
||||
"restore" : [ 5.2 ],
|
||||
"restore" : [ 0 ],
|
||||
"saved_object_attributes" : {
|
||||
"parameter_enable" : 0,
|
||||
"parameter_mappable" : 0
|
||||
@ -6379,7 +6572,7 @@
|
||||
"numoutlets" : 3,
|
||||
"outlettype" : [ "", "", "" ],
|
||||
"patching_rect" : [ 517.899999999999977, 790.0, 145.0, 22.0 ],
|
||||
"restore" : [ -39, 59 ],
|
||||
"restore" : [ 2.024865806102753, 30.961998119950294 ],
|
||||
"saved_object_attributes" : {
|
||||
"parameter_enable" : 0,
|
||||
"parameter_mappable" : 0
|
||||
@ -6398,7 +6591,7 @@
|
||||
"numoutlets" : 3,
|
||||
"outlettype" : [ "", "", "" ],
|
||||
"patching_rect" : [ 460.899999999999977, 903.0, 145.0, 22.0 ],
|
||||
"restore" : [ 65, 2 ],
|
||||
"restore" : [ 22.959049716591835, 6.39484778791666 ],
|
||||
"saved_object_attributes" : {
|
||||
"parameter_enable" : 0,
|
||||
"parameter_mappable" : 0
|
||||
@ -6417,7 +6610,7 @@
|
||||
"numoutlets" : 3,
|
||||
"outlettype" : [ "", "", "" ],
|
||||
"patching_rect" : [ 403.899999999999977, 847.0, 145.0, 22.0 ],
|
||||
"restore" : [ 132, 66 ],
|
||||
"restore" : [ 76.715596556663513, 34.234696477651596 ],
|
||||
"saved_object_attributes" : {
|
||||
"parameter_enable" : 0,
|
||||
"parameter_mappable" : 0
|
||||
@ -6436,7 +6629,7 @@
|
||||
"numoutlets" : 3,
|
||||
"outlettype" : [ "", "", "" ],
|
||||
"patching_rect" : [ 346.899999999999977, 790.0, 145.0, 22.0 ],
|
||||
"restore" : [ 66, 128 ],
|
||||
"restore" : [ 24.130949705839157, 52.310646951198578 ],
|
||||
"saved_object_attributes" : {
|
||||
"parameter_enable" : 0,
|
||||
"parameter_mappable" : 0
|
||||
@ -7956,17 +8149,24 @@
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"autorestore" : "hss-Xiao-2024-2.json",
|
||||
"id" : "obj-20",
|
||||
"maxclass" : "newobj",
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1092.0, 425.0, 173.0, 22.0 ],
|
||||
"patching_rect" : [ 1092.0, 496.0, 173.0, 22.0 ],
|
||||
"priority" : {
|
||||
"hub" : -1,
|
||||
"hub::instrument" : -1,
|
||||
"hub::instrument::bank" : -1
|
||||
}
|
||||
,
|
||||
"saved_object_attributes" : {
|
||||
"client_rect" : [ 4, 44, 358, 172 ],
|
||||
"client_rect" : [ 903, 252, 1512, 568 ],
|
||||
"parameter_enable" : 0,
|
||||
"parameter_mappable" : 0,
|
||||
"storage_rect" : [ 583, 69, 1034, 197 ]
|
||||
"storage_rect" : [ 780, 524, 1380, 824 ]
|
||||
}
|
||||
,
|
||||
"text" : "pattrstorage DJster @greedy 1",
|
||||
@ -8128,7 +8328,7 @@
|
||||
"parameter_enable" : 0,
|
||||
"patching_rect" : [ 169.0, 78.0, 24.0, 24.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 263.0, 104.0, 27.0, 27.0 ]
|
||||
"presentation_rect" : [ 187.0, 104.0, 27.0, 27.0 ]
|
||||
}
|
||||
|
||||
}
|
||||
@ -8159,7 +8359,7 @@
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 428.0, 116.0, 63.0, 22.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 227.0, 76.0, 63.0, 22.0 ],
|
||||
"presentation_rect" : [ 151.0, 76.0, 63.0, 22.0 ],
|
||||
"text" : "script stop"
|
||||
}
|
||||
|
||||
@ -8173,7 +8373,7 @@
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 362.0, 116.0, 64.0, 22.0 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 226.0, 46.0, 64.0, 22.0 ],
|
||||
"presentation_rect" : [ 150.0, 46.0, 64.0, 22.0 ],
|
||||
"text" : "script start"
|
||||
}
|
||||
|
||||
@ -8198,23 +8398,10 @@
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1191.5, 285.0, 231.0, 35.0 ],
|
||||
"patching_rect" : [ 1191.200017750263214, 264.000003933906555, 231.0, 35.0 ],
|
||||
"text" : "priority hub -1, priority hub::instrument -1, priority hub::instrument::bank -1"
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
"id" : "obj-95",
|
||||
"linecount" : 5,
|
||||
"maxclass" : "message",
|
||||
"numinlets" : 2,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "" ],
|
||||
"patching_rect" : [ 1151.0, 14.0, 135.0, 76.0 ],
|
||||
"text" : "\"Macintosh HD:/Users/Shared/Max 8/Library/healing-soundscapes/Presets/DefaultSetting.json\""
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"box" : {
|
||||
@ -8238,7 +8425,7 @@
|
||||
"numinlets" : 1,
|
||||
"numoutlets" : 1,
|
||||
"outlettype" : [ "jit_matrix" ],
|
||||
"patching_rect" : [ 1324.5, 32.673333333333346, 98.0, 98.326666666666668 ],
|
||||
"patching_rect" : [ 530.0, 107.836666666666673, 98.0, 98.326666666666668 ],
|
||||
"presentation" : 1,
|
||||
"presentation_rect" : [ 796.0, 8.0, 126.0, 126.420000000000016 ]
|
||||
}
|
||||
@ -8482,15 +8669,6 @@
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-58", 0 ],
|
||||
"order" : 1,
|
||||
"source" : [ "obj-20", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-66", 1 ],
|
||||
"order" : 0,
|
||||
"source" : [ "obj-20", 0 ]
|
||||
}
|
||||
|
||||
@ -8501,6 +8679,13 @@
|
||||
"source" : [ "obj-200", 1 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-30", 0 ],
|
||||
"source" : [ "obj-200", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
@ -8557,6 +8742,21 @@
|
||||
"source" : [ "obj-29", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-20", 0 ],
|
||||
"source" : [ "obj-29", 2 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-48", 1 ],
|
||||
"midpoints" : [ 1086.166666666666742, 203.0, 984.0, 203.0 ],
|
||||
"source" : [ "obj-29", 1 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
@ -8567,7 +8767,7 @@
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-29", 0 ],
|
||||
"destination" : [ "obj-200", 0 ],
|
||||
"source" : [ "obj-30", 0 ]
|
||||
}
|
||||
|
||||
@ -8636,6 +8836,14 @@
|
||||
"source" : [ "obj-44", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-29", 1 ],
|
||||
"midpoints" : [ 888.0, 315.0, 1225.75, 315.0, 1225.75, 135.0, 1175.5, 135.0 ],
|
||||
"source" : [ "obj-48", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
@ -8657,6 +8865,13 @@
|
||||
"source" : [ "obj-52", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-70", 0 ],
|
||||
"source" : [ "obj-55", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
@ -8678,6 +8893,13 @@
|
||||
"source" : [ "obj-58", 4 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-55", 0 ],
|
||||
"source" : [ "obj-60", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
@ -8699,6 +8921,13 @@
|
||||
"source" : [ "obj-63", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-20", 0 ],
|
||||
"source" : [ "obj-64", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
@ -8730,10 +8959,52 @@
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-20", 0 ],
|
||||
"destination" : [ "obj-64", 0 ],
|
||||
"source" : [ "obj-70", 1 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-72", 0 ],
|
||||
"source" : [ "obj-70", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-60", 0 ],
|
||||
"source" : [ "obj-71", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-29", 0 ],
|
||||
"source" : [ "obj-72", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-29", 0 ],
|
||||
"source" : [ "obj-74", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-27", 0 ],
|
||||
"source" : [ "obj-76", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-29", 0 ],
|
||||
"source" : [ "obj-77", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
@ -8742,6 +9013,13 @@
|
||||
"source" : [ "obj-8", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-200", 0 ],
|
||||
"source" : [ "obj-80", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
@ -8798,13 +9076,6 @@
|
||||
"source" : [ "obj-89", 3 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
"destination" : [ "obj-29", 0 ],
|
||||
"source" : [ "obj-95", 0 ]
|
||||
}
|
||||
|
||||
}
|
||||
, {
|
||||
"patchline" : {
|
||||
@ -8968,7 +9239,7 @@
|
||||
"parameter_overrides" : {
|
||||
"obj-15::obj-1" : {
|
||||
"parameter_longname" : "Outset Pulses[3]",
|
||||
"parameter_range" : [ 1, 32 ]
|
||||
"parameter_range" : [ 1, 4 ]
|
||||
}
|
||||
,
|
||||
"obj-15::obj-104" : {
|
||||
@ -9096,7 +9367,7 @@
|
||||
,
|
||||
"obj-26::obj-1" : {
|
||||
"parameter_longname" : "Outset Pulses",
|
||||
"parameter_range" : [ 1, 32 ]
|
||||
"parameter_range" : [ 1, 8 ]
|
||||
}
|
||||
,
|
||||
"obj-26::obj-104" : {
|
||||
@ -9230,7 +9501,7 @@
|
||||
,
|
||||
"obj-5::obj-1" : {
|
||||
"parameter_longname" : "Outset Pulses[1]",
|
||||
"parameter_range" : [ 1, 32 ]
|
||||
"parameter_range" : [ 1, 8 ]
|
||||
}
|
||||
,
|
||||
"obj-5::obj-104" : {
|
||||
@ -9360,7 +9631,7 @@
|
||||
,
|
||||
"obj-8::obj-1" : {
|
||||
"parameter_longname" : "Outset Pulses[2]",
|
||||
"parameter_range" : [ 1, 32 ]
|
||||
"parameter_range" : [ 1, 2 ]
|
||||
}
|
||||
,
|
||||
"obj-8::obj-104" : {
|
||||
@ -9652,6 +9923,13 @@
|
||||
"type" : "JSON",
|
||||
"implicit" : 1
|
||||
}
|
||||
, {
|
||||
"name" : "hss-Xiao-2024-2.json",
|
||||
"bootpath" : "/Users/Shared/Max 8/Library/healing-soundscapes/Presets",
|
||||
"patcherrelativepath" : "./Presets",
|
||||
"type" : "JSON",
|
||||
"implicit" : 1
|
||||
}
|
||||
, {
|
||||
"name" : "hss.piecemaker.js",
|
||||
"bootpath" : "/Users/Shared/Max 8/Library/healing-soundscapes",
|
||||
|
@ -3,6 +3,8 @@ outlets = 4;
|
||||
|
||||
var jpieces = {};
|
||||
var presets = [];
|
||||
var filename = "";
|
||||
var currentPiece = "";
|
||||
var hsspiece = {};
|
||||
var outdict = new Dict("HSSPieces");;
|
||||
var points = [[0.5, 0.5], [1., 0.], [1., 1.], [0., 1.], [0., 0.]];
|
||||
@ -38,6 +40,12 @@ function dictionary(d)
|
||||
net.name = d;
|
||||
hsspiece[title]["networkData"] = JSON.parse(net.stringify());
|
||||
outdict.parse(JSON.stringify(hsspiece));
|
||||
jpieces = JSON.parse(outdict.stringify());
|
||||
this.patcher.getnamed("currentPiece").message("clear");
|
||||
for (var i = 0; i < Object.keys(jpieces).length; i++) this.patcher.getnamed("currentPiece").message("append", Object.keys(jpieces)[i]);
|
||||
this.patcher.getnamed("currentPiece").message("set", Object.keys(jpieces).length - 1);
|
||||
this.patcher.getnamed("currentPiece").message("clearchecks");
|
||||
this.patcher.getnamed("currentPiece").message("checkitem", Object.keys(jpieces).length - 1, 1);
|
||||
//outlet(0, "dictionary", outdict.name);
|
||||
}
|
||||
|
||||
@ -52,13 +60,20 @@ function readPiece(path)
|
||||
outlet(0, 0.5, 0.5);
|
||||
}
|
||||
|
||||
function getSection(section)
|
||||
function setDict()
|
||||
{
|
||||
jpieces = JSON.parse(outdict.stringify());
|
||||
}
|
||||
|
||||
function setSection(section)
|
||||
{
|
||||
if (outdict.contains(section)) {
|
||||
outlet(1, outdict.get(section + "::1::networkData"));
|
||||
var networkData = outdict.get(section + "::networkData");
|
||||
outlet(1, "set_weights", "dictionary", networkData.name);
|
||||
outlet(1, "predict", 0.5, 0.5);
|
||||
outlet(0, 0.5, 0.5);
|
||||
}
|
||||
currentPiece = section;
|
||||
}
|
||||
|
||||
function writePiece()
|
||||
@ -66,6 +81,7 @@ function writePiece()
|
||||
outdict.export_json(this.patcher.filepath + "HSSPiece.json");
|
||||
}
|
||||
|
||||
/*
|
||||
function anything()
|
||||
{
|
||||
var filenames = arrayfromargs(messagename, arguments);
|
||||
@ -112,17 +128,68 @@ function anything()
|
||||
outlet(1, "train", 10000);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
function setPresetFile(f)
|
||||
{
|
||||
filename = f;
|
||||
currentPiece = filename.slice(filename.lastIndexOf("/") + 1, filename.lastIndexOf("."));
|
||||
}
|
||||
|
||||
function train()
|
||||
{
|
||||
presets = new Dict;
|
||||
presets.import_json(filename);
|
||||
title = currentPiece;
|
||||
hsspiece[title] = {};
|
||||
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] = {};
|
||||
var trainingData = [];
|
||||
var data = JSON.parse(presets.get("pattrstorage::slots::" + (j + 1) + "::data").stringify());
|
||||
for (var p = 0; p < 4; p++) {
|
||||
delete data["Djster.µbus[" + p + "]::scales"];
|
||||
delete data["Djster.µbus[" + p + "]::meters"];
|
||||
for (var param in DJsterParams) {
|
||||
var val = data["Djster.µbus[" + p + "]::" + param];
|
||||
switch (DJsterParams[param][2]) {
|
||||
case "linear" :
|
||||
trainingData.push(scale(val, DJsterParams[param][0], DJsterParams[param][1], 0., 1.));
|
||||
break;
|
||||
case "log" :
|
||||
trainingData.push(scale(val, DJsterParams[param][0], DJsterParams[param][1], 0., 1.));
|
||||
break;
|
||||
case "enum" :
|
||||
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;
|
||||
outlet(1, "data_point", points[j].concat(trainingData));
|
||||
}
|
||||
outlet(1, "train", 10000);
|
||||
}
|
||||
|
||||
|
||||
function list()
|
||||
{
|
||||
//post("jpieces", Object.keys(jpieces), "\n");
|
||||
var vector = arrayfromargs(arguments);
|
||||
var src = [];
|
||||
var currentPiece = this.patcher.getnamed("currentPiece").getvalueof();
|
||||
//currentPiece = this.patcher.getnamed("currentPiece").getvalueof();
|
||||
var keys = Object.keys(DJsterParams);
|
||||
for (var i = 0; i < 4; i++) {
|
||||
for (var j = 0; j < vector.length/4; j++) {
|
||||
var k = j + i * vector.length/4;
|
||||
//post("vector", j, "\n");
|
||||
switch (j) {
|
||||
case 3 : //log
|
||||
case 17 :
|
||||
|
Loading…
Reference in New Issue
Block a user