diff --git a/djster_webcontrol.js b/djster_webcontrol.js index 7c4241a..58f4dac 100644 --- a/djster_webcontrol.js +++ b/djster_webcontrol.js @@ -49,6 +49,7 @@ var background = "ivory"; function setInstruments() { instruments = arrayfromargs(arguments); + post("instruments", instruments, "\n"); bang(); } @@ -175,7 +176,7 @@ svg.push({ addMenu(-1, "basicDIV", "Piece", "piece", 36, 0, pieces, "wide"); addMenu(-1, "basicDIV", "Playing Mode", "mode", 66, 0, modes, "wide"); addCheckbox(-1, "basicDIV", "Play", "play", 96, 0, "left"); - addSlider(-1, "basicDIV", "Tempo", "tempo", 0, [20, 160], 1, 60, "this.value", "this.value"); + addSlider(-1, "basicDIV", "Tempo", "tempo", 0, [10, 160], 1, 60, "this.value", "this.value"); addSlider(-1, "basicDIV", "Duration", "duration", 1, [0, 100], 1, 100, "this.value", "this.value"); addSlider(-1, "basicDIV", "Silence", "silence", 2, [0, 100], 1, 100, "this.value", "this.value"); @@ -190,7 +191,7 @@ svg.push({ addCheckbox(i, "player" + i, "Overlap", "overlap", 96, 0, "right"); addSlider(i, "player" + i, "Outset Pulses", "outset_pulses", j++, [1, 16], 1, 1, "this.value", "this.value"); addSlider(i, "player" + i, "Eventfulness", "eventfulness", j++, [0, 100], 1, 100, "this.value", "this.value"); - addSlider(i, "player" + i, "Event Length", "event_length", j++, [5, 100], 1, 100, "this.value", "this.value"); + addSlider(i, "player" + i, "Event Length", "event_length", j++, [5, 650], 1, 100, "this.value", "this.value"); addSlider(i, "player" + i, "Metriclarity", "metriclarity", j++, [0, 100], 1, 100, "this.value", "this.value"); addSlider(i, "player" + i, "Harmoniclarity", "harmoniclarity", j++, [0, 100], 1, 50, "this.value", "this.value"); addSlider(i, "player" + i, "Chordal Weight", "chordal_weight", j++, [1, 5], 1, 1, "this.value", "this.value"); diff --git a/hss-distributed-server.maxpat b/hss-distributed-server.maxpat index fee52f5..283cbda 100644 --- a/hss-distributed-server.maxpat +++ b/hss-distributed-server.maxpat @@ -4,13 +4,13 @@ "appversion" : { "major" : 8, "minor" : 6, - "revision" : 2, + "revision" : 4, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 29.0, 100.0, 1429.0, 813.0 ], + "rect" : [ 34.0, 100.0, 1429.0, 813.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -39,17 +39,6 @@ "subpatcher_template" : "", "assistshowspatchername" : 0, "boxes" : [ { - "box" : { - "id" : "obj-47", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 914.0, 294.0, 32.0, 22.0 ], - "text" : "print" - } - - } -, { "box" : { "id" : "obj-23", "maxclass" : "message", @@ -57,7 +46,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 1215.5, 220.0, 82.0, 22.0 ], - "presentation_linecount" : 2, "text" : "getSection $1" } @@ -71,7 +59,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 1222.0, 96.0, 95.0, 35.0 ], - "presentation_linecount" : 3, "text" : "readPiece HSSPieces.json" } @@ -163,7 +150,7 @@ "appversion" : { "major" : 8, "minor" : 6, - "revision" : 2, + "revision" : 4, "architecture" : "x64", "modernui" : 1 } @@ -365,7 +352,7 @@ "appversion" : { "major" : 8, "minor" : 6, - "revision" : 2, + "revision" : 4, "architecture" : "x64", "modernui" : 1 } @@ -826,7 +813,7 @@ "appversion" : { "major" : 8, "minor" : 6, - "revision" : 2, + "revision" : 4, "architecture" : "x64", "modernui" : 1 } @@ -916,7 +903,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 267.75, 163.0, 107.0, 22.0 ], - "presentation_linecount" : 2, "text" : "script start 2 96 48" } @@ -1359,9 +1345,9 @@ "box" : { "id" : "obj-29", "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 4, - "outlettype" : [ "", "", "", "" ], + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], "patching_rect" : [ 1028.0, 159.0, 153.0, 22.0 ], "saved_object_attributes" : { "filename" : "hss.piecemaker.js", @@ -1469,7 +1455,7 @@ "appversion" : { "major" : 8, "minor" : 6, - "revision" : 2, + "revision" : 4, "architecture" : "x64", "modernui" : 1 } @@ -1903,13 +1889,13 @@ "appversion" : { "major" : 8, "minor" : 6, - "revision" : 2, + "revision" : 4, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 283.0, 57.0, 403.0, 673.0 ], + "rect" : [ 59.0, 241.0, 403.0, 673.0 ], "bglocked" : 0, "openinpresentation" : 1, "default_fontsize" : 12.0, @@ -2112,7 +2098,7 @@ "appversion" : { "major" : 8, "minor" : 6, - "revision" : 2, + "revision" : 4, "architecture" : "x64", "modernui" : 1 } @@ -2225,20 +2211,20 @@ "id" : "obj-7", "maxclass" : "newobj", "numinlets" : 3, - "numoutlets" : 1, - "outlettype" : [ "" ], + "numoutlets" : 2, + "outlettype" : [ "", "" ], "patcher" : { "fileversion" : 1, "appversion" : { "major" : 8, "minor" : 6, - "revision" : 2, + "revision" : 4, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 293.0, 100.0, 850.0, 795.0 ], + "rect" : [ 414.0, 100.0, 850.0, 795.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -2267,6 +2253,30 @@ "subpatcher_template" : "", "assistshowspatchername" : 0, "boxes" : [ { + "box" : { + "id" : "obj-33", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 455.0, 147.0, 29.5, 22.0 ], + "text" : "-" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-10", + "index" : 2, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 598.5, 755.0, 30.0, 30.0 ] + } + + } +, { "box" : { "id" : "obj-8", "maxclass" : "newobj", @@ -2285,7 +2295,7 @@ "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 383.5, 147.0, 60.0, 22.0 ], + "patching_rect" : [ 393.0, 147.0, 60.0, 22.0 ], "text" : "zl.change" } @@ -2352,20 +2362,8 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 598.5, 487.0, 135.0, 22.0 ], - "text" : "prepend setInstruments" - } - - } -, { - "box" : { - "id" : "obj-27", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 598.5, 515.0, 215.0, 22.0 ], - "text" : "pattrforward parent::parent::webcontrol" + "patching_rect" : [ 598.5, 487.0, 165.0, 22.0 ], + "text" : "prepend setInstruments none" } } @@ -2426,9 +2424,9 @@ "outlettype" : [ "", "", "", "" ], "patching_rect" : [ 12.0, 260.0, 56.0, 22.0 ], "restore" : { - "instrument-1" : [ "Bell-2.instr" ], - "instrument-2" : [ "Bell-2.instr" ], - "instrument-3" : [ "Bell-2.instr" ], + "instrument-1" : [ "Bell-1.instr" ], + "instrument-2" : [ "Bell-1.instr" ], + "instrument-3" : [ "Bell-1.instr" ], "instrument-4" : [ "Bell-1.instr" ] } , @@ -2492,7 +2490,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 562.5, 288.0, 55.0, 22.0 ], + "patching_rect" : [ 562.5, 281.0, 55.0, 22.0 ], "text" : "$3 $1 $2" } @@ -2516,7 +2514,7 @@ "numinlets" : 2, "numoutlets" : 5, "outlettype" : [ "dictionary", "", "", "", "" ], - "patching_rect" : [ 383.5, 256.0, 198.0, 22.0 ], + "patching_rect" : [ 383.5, 251.0, 198.0, 22.0 ], "saved_object_attributes" : { "embed" : 0, "legacy" : 0, @@ -2968,14 +2966,14 @@ } , { "patchline" : { - "destination" : [ "obj-27", 0 ], + "destination" : [ "obj-10", 0 ], "source" : [ "obj-28", 0 ] } } , { "patchline" : { - "destination" : [ "obj-34", 0 ], + "destination" : [ "obj-31", 0 ], "source" : [ "obj-29", 0 ] } @@ -3007,6 +3005,13 @@ "source" : [ "obj-32", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-34", 1 ], + "source" : [ "obj-33", 0 ] + } + } , { "patchline" : { @@ -3107,7 +3112,7 @@ "appversion" : { "major" : 8, "minor" : 6, - "revision" : 2, + "revision" : 4, "architecture" : "x64", "modernui" : 1 } @@ -3144,13 +3149,13 @@ "boxes" : [ { "box" : { "id" : "obj-22", - "linecount" : 2, + "linecount" : 3, "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 51.0, 29.0, 50.0, 35.0 ], - "text" : "amount 1.1" + "text" : "event_length 112" } } @@ -3365,7 +3370,7 @@ "numoutlets" : 3, "outlettype" : [ "", "", "" ], "patching_rect" : [ 343.0, 265.0, 171.0, 22.0 ], - "restore" : [ 17 ], + "restore" : [ 0 ], "saved_object_attributes" : { "parameter_enable" : 0, "parameter_mappable" : 0 @@ -3384,7 +3389,7 @@ "numoutlets" : 3, "outlettype" : [ "", "", "" ], "patching_rect" : [ 295.75, 209.0, 162.0, 22.0 ], - "restore" : [ 1.1 ], + "restore" : [ 0 ], "saved_object_attributes" : { "parameter_enable" : 0, "parameter_mappable" : 0 @@ -4142,7 +4147,7 @@ "appversion" : { "major" : 8, "minor" : 6, - "revision" : 2, + "revision" : 4, "architecture" : "x64", "modernui" : 1 } @@ -4296,7 +4301,7 @@ "numoutlets" : 3, "outlettype" : [ "", "", "" ], "patching_rect" : [ 517.899999999999977, 790.0, 145.0, 22.0 ], - "restore" : [ 8, 64 ], + "restore" : [ 21, 63 ], "saved_object_attributes" : { "parameter_enable" : 0, "parameter_mappable" : 0 @@ -4315,7 +4320,7 @@ "numoutlets" : 3, "outlettype" : [ "", "", "" ], "patching_rect" : [ 460.899999999999977, 903.0, 145.0, 22.0 ], - "restore" : [ 67, 11 ], + "restore" : [ 63, 21 ], "saved_object_attributes" : { "parameter_enable" : 0, "parameter_mappable" : 0 @@ -4334,7 +4339,7 @@ "numoutlets" : 3, "outlettype" : [ "", "", "" ], "patching_rect" : [ 403.899999999999977, 847.0, 145.0, 22.0 ], - "restore" : [ 125, 58 ], + "restore" : [ 109, 63 ], "saved_object_attributes" : { "parameter_enable" : 0, "parameter_mappable" : 0 @@ -4353,7 +4358,7 @@ "numoutlets" : 3, "outlettype" : [ "", "", "" ], "patching_rect" : [ 346.899999999999977, 790.0, 145.0, 22.0 ], - "restore" : [ 64, 112 ], + "restore" : [ 66, 109 ], "saved_object_attributes" : { "parameter_enable" : 0, "parameter_mappable" : 0 @@ -5390,7 +5395,7 @@ , { "box" : { "id" : "obj-34", - "int" : 4, + "int" : 1, "maxclass" : "gswitch2", "numinlets" : 2, "numoutlets" : 5, @@ -5808,6 +5813,14 @@ "source" : [ "obj-7", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-86", 0 ], + "midpoints" : [ 695.5, 569.0, 727.5, 569.0 ], + "source" : [ "obj-7", 1 ] + } + } , { "patchline" : { @@ -5870,8 +5883,12 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 1117.333333333333258, 358.0, 265.0, 35.0 ], + "priority" : { + "hub::instrument::bank" : -1 + } +, "saved_object_attributes" : { - "client_rect" : [ 1049, 490, 1658, 806 ], + "client_rect" : [ 903, 252, 1512, 568 ], "parameter_enable" : 0, "parameter_mappable" : 0, "storage_rect" : [ 780, 524, 1380, 824 ] @@ -6119,7 +6136,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 1151.0, 14.0, 135.0, 76.0 ], - "presentation_linecount" : 5, "text" : "\"Macintosh HD:/Users/Shared/Max 8/Library/healing-soundscapes/Presets/DefaultSetting.json\"" } @@ -6366,37 +6382,6 @@ "source" : [ "obj-29", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-20", 0 ], - "order" : 0, - "source" : [ "obj-29", 2 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-200", 0 ], - "source" : [ "obj-29", 3 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-47", 0 ], - "order" : 1, - "source" : [ "obj-29", 2 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-48", 1 ], - "midpoints" : [ 1082.166666666666742, 205.5, 984.0, 205.5 ], - "source" : [ "obj-29", 1 ] - } - } , { "patchline" : { @@ -6427,14 +6412,6 @@ "source" : [ "obj-39", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-29", 1 ], - "midpoints" : [ 888.0, 259.0, 1307.5, 259.0, 1307.5, 151.0, 1171.5, 151.0 ], - "source" : [ "obj-48", 0 ] - } - } , { "patchline" : {