From 0711e5d5c1d6777679246433562be10eec4ebb10 Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Wed, 14 May 2025 13:41:06 -0700 Subject: [PATCH] made the module stereo --- engine_voice.noisewash~.maxpat | 797 ++++++++------------------------- 1 file changed, 188 insertions(+), 609 deletions(-) diff --git a/engine_voice.noisewash~.maxpat b/engine_voice.noisewash~.maxpat index a744dc9..e58a462 100644 --- a/engine_voice.noisewash~.maxpat +++ b/engine_voice.noisewash~.maxpat @@ -19,587 +19,100 @@ "subpatcher_template" : "Untitled5_template", "boxes" : [ { "box" : { - "id" : "obj-6", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 9, - "minor" : 0, - "revision" : 6, - "architecture" : "x64", - "modernui" : 1 - } -, - "classnamespace" : "box", - "rect" : [ 327.0, 270.0, 453.0, 410.0 ], - "gridsize" : [ 15.0, 15.0 ], - "subpatcher_template" : "Untitled5_template", - "boxes" : [ { - "box" : { - "id" : "obj-4", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 120.0, 230.0, 187.0, 22.0 ], - "text" : "o.gather /choice /numfiles /variety" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-2", - "index" : 1, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 41.0, 329.0, 30.0, 30.0 ] - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-1", - "index" : 1, - "maxclass" : "inlet", - "numinlets" : 0, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 41.0, 35.0, 30.0, 30.0 ] - } - - } -, { - "box" : { - "id" : "obj-3", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 9, - "minor" : 0, - "revision" : 6, - "architecture" : "x64", - "modernui" : 1 - } -, - "classnamespace" : "box", - "rect" : [ 34.0, 87.0, 670.0, 779.0 ], - "gridsize" : [ 15.0, 15.0 ], - "subpatcher_template" : "Untitled5_template", - "boxes" : [ { - "box" : { - "id" : "obj-4", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 31.0, 92.0, 35.0, 22.0 ], - "text" : "o.var" - } - - } -, { - "box" : { - "id" : "obj-3", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "" ], - "patching_rect" : [ 31.0, 205.0, 589.0, 22.0 ], - "text" : "t l l" - } - - } -, { - "box" : { - "id" : "obj-12", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 31.0, 236.0, 295.0, 22.0 ], - "text" : "o.if exists(/choice)" - } - - } -, { - "box" : { - "fontface" : 0, - "id" : "obj-1", - "maxclass" : "o.expr.codebox", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 31.0, 163.0, 110.0, 31.0 ], - "text" : "/variety ??= 1." - } - - } -, { - "box" : { - "id" : "obj-9", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 31.0, 131.0, 132.0, 22.0 ], - "text" : "o.union" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-6", - "index" : 2, - "maxclass" : "inlet", - "numinlets" : 0, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 144.0, 39.0, 30.0, 30.0 ] - } - - } -, { - "box" : { - "fontface" : 0, - "id" : "obj-28", - "linecount" : 14, - "maxclass" : "o.expr.codebox", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 115.0, 572.0, 355.0, 198.0 ], - "text" : "/last ??= 0, \n/choice ??= 0,\n\nif(/numfiles == 1, \n /buffer/name = /pbname + \".\" + 1,\n if(/rpercent < /variety,\n progn(\n /buffer/name = /pbname + \".\" + (/choice + 1), \n /last = /choice\n ),\n /buffer/name = /pbname + \".\" + (/last + 1)\n )\n), \ndelete(/choice)" - } - - } -, { - "box" : { - "id" : "obj-10", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 115.0, 540.0, 505.0, 22.0 ], - "text" : "o.union" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-5", - "index" : 1, - "maxclass" : "inlet", - "numinlets" : 0, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 31.0, 41.0, 30.0, 30.0 ] - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-8", - "index" : 1, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 115.0, 795.0, 30.0, 30.0 ] - } - - } -, { - "box" : { - "id" : "obj-2", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "float" ], - "patching_rect" : [ 31.0, 367.0, 39.0, 22.0 ], - "text" : "/ 999." - } - - } -, { - "box" : { - "id" : "obj-7", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 2, - "outlettype" : [ "", "" ], - "patching_rect" : [ 115.0, 435.0, 140.0, 22.0 ], - "text" : "gate 2" - } - - } -, { - "box" : { - "id" : "obj-11", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 236.0, 471.0, 136.0, 22.0 ], - "text" : "o.pack /rpercent /choice" - } - - } -, { - "box" : { - "id" : "obj-17", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 4, - "outlettype" : [ "bang", "bang", "", "int" ], - "patching_rect" : [ 307.0, 273.0, 50.5, 22.0 ], - "text" : "t b b l 2" - } - - } -, { - "box" : { - "id" : "obj-13", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "bang", "", "int" ], - "patching_rect" : [ 31.0, 273.0, 103.0, 22.0 ], - "text" : "t b l 1" - } - - } -, { - "box" : { - "id" : "obj-14", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 115.0, 471.0, 95.0, 22.0 ], - "text" : "o.pack /rpercent" - } - - } -, { - "box" : { - "id" : "obj-25", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 370.0, 404.0, 41.0, 22.0 ], - "text" : "set $1" - } - - } -, { - "box" : { - "id" : "obj-16", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 4, - "outlettype" : [ "", "", "", "FullPacket" ], - "patching_rect" : [ 407.0, 366.0, 181.0, 22.0 ], - "text" : "o.route /numfiles /variety /choice" - } - - } -, { - "box" : { - "id" : "obj-43", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 31.0, 329.0, 79.0, 22.0 ], - "text" : "random 1000" - } - - } -, { - "box" : { - "id" : "obj-18", - "maxclass" : "newobj", - "numinlets" : 3, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 353.0, 435.0, 127.0, 22.0 ], - "text" : "drunk 100 3" - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-3", 0 ], - "source" : [ "obj-1", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-28", 0 ], - "source" : [ "obj-10", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-10", 0 ], - "source" : [ "obj-11", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-13", 0 ], - "source" : [ "obj-12", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-17", 0 ], - "source" : [ "obj-12", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-16", 0 ], - "source" : [ "obj-13", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-13", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-7", 0 ], - "source" : [ "obj-13", 2 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-10", 0 ], - "source" : [ "obj-14", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-18", 1 ], - "source" : [ "obj-16", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-25", 0 ], - "source" : [ "obj-16", 2 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-16", 0 ], - "source" : [ "obj-17", 2 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-18", 0 ], - "source" : [ "obj-17", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-17", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-7", 0 ], - "source" : [ "obj-17", 3 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-11", 1 ], - "source" : [ "obj-18", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-7", 1 ], - "source" : [ "obj-2", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-18", 0 ], - "source" : [ "obj-25", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-8", 0 ], - "source" : [ "obj-28", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-10", 1 ], - "source" : [ "obj-3", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-12", 0 ], - "source" : [ "obj-3", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-9", 0 ], - "source" : [ "obj-4", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-2", 0 ], - "source" : [ "obj-43", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-4", 0 ], - "source" : [ "obj-5", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-9", 1 ], - "source" : [ "obj-6", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-11", 0 ], - "source" : [ "obj-7", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-14", 0 ], - "source" : [ "obj-7", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "source" : [ "obj-9", 0 ] - } - - } - ] - } -, - "patching_rect" : [ 41.0, 110.0, 98.0, 22.0 ], - "text" : "p handle_variety" - } - - } -, { - "box" : { - "id" : "obj-16", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "" ], - "patching_rect" : [ 41.0, 146.0, 98.0, 22.0 ], - "text" : "t l l" - } + "fontsize" : 12.0, + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "signal" ], + "patching_rect" : [ 472.0, 554.0, 40.0, 22.0 ], + "text" : "*~ 0.5" + } - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-3", 0 ], - "source" : [ "obj-1", 0 ] - } + } +, { + "box" : { + "id" : "obj-18", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 932.0, 675.0, 72.0, 22.0 ], + "text" : "prepend set" + } - } -, { - "patchline" : { - "destination" : [ "obj-2", 0 ], - "source" : [ "obj-16", 0 ] - } + } +, { + "box" : { + "id" : "obj-22", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 847.0, 675.0, 72.0, 22.0 ], + "text" : "prepend set" + } - } -, { - "patchline" : { - "destination" : [ "obj-4", 0 ], - "source" : [ "obj-16", 1 ] - } + } +, { + "box" : { + "fontsize" : 12.0, + "id" : "obj-25", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "FullPacket" ], + "patching_rect" : [ 847.0, 635.0, 66.0, 22.0 ], + "text" : "o.route /l /r" + } - } -, { - "patchline" : { - "destination" : [ "obj-16", 0 ], - "source" : [ "obj-3", 0 ] - } + } +, { + "box" : { + "id" : "obj-28", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 593.0, 779.0, 64.0, 22.0 ], + "text" : "send~ ch2" + } - } -, { - "patchline" : { - "destination" : [ "obj-3", 1 ], - "midpoints" : [ 129.5, 262.0, 324.373687744140625, 262.0, 324.373687744140625, 100.0, 129.5, 100.0 ], - "source" : [ "obj-4", 0 ] - } + } +, { + "box" : { + "id" : "obj-29", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 508.0, 779.0, 64.0, 22.0 ], + "text" : "send~ ch1" + } - } - ] + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 449.0, 779.0, 42.0, 22.0 ], + "saved_object_attributes" : { + "attr_comment" : "" } , - "patching_rect" : [ 549.0, 85.0, 89.0, 22.0 ], - "text" : "p initial_bundle" + "text" : "out~ 2" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-15", + "index" : 0, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 392.0, 779.0, 24.0, 24.0 ] } } @@ -611,7 +124,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 503.0, 239.0, 89.0, 22.0 ], + "patching_rect" : [ 506.0, 261.0, 89.0, 22.0 ], "text" : "o.route /dur/ms" } @@ -645,10 +158,10 @@ "id" : "obj-4", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 4, - "outlettype" : [ "", "", "", "FullPacket" ], - "patching_rect" : [ 472.0, 332.5, 161.0, 22.0 ], - "text" : "o.route /gain /ramp /auxsend" + "numoutlets" : 5, + "outlettype" : [ "", "", "", "", "FullPacket" ], + "patching_rect" : [ 428.0, 332.5, 177.0, 22.0 ], + "text" : "o.route /gain /ramp /auxsend /st" } } @@ -719,7 +232,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 1006.0, 773.0, 36.0, 36.0 ] + "patching_rect" : [ 1066.0, 779.0, 24.0, 24.0 ] } } @@ -837,7 +350,7 @@ ] } , - "patching_rect" : [ 366.0, 618.0, 45.0, 22.0 ], + "patching_rect" : [ 357.0, 533.0, 45.0, 22.0 ], "text" : "p edge" } @@ -885,7 +398,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 883.0, 786.0, 81.0, 20.0 ], + "patching_rect" : [ 969.0, 781.0, 81.0, 20.0 ], "text" : "for [busymap]" } @@ -896,7 +409,11 @@ "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 836.0, 785.0, 35.0, 22.0 ], + "patching_rect" : [ 922.0, 780.0, 35.0, 22.0 ], + "saved_object_attributes" : { + "attr_comment" : "" + } +, "text" : "out 1" } @@ -1013,7 +530,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 330.0, 153.0, 192.0, 22.0 ], + "patching_rect" : [ 330.0, 147.0, 195.0, 22.0 ], "text" : "o.select /stop" } @@ -1095,11 +612,7 @@ "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 529.0, 785.0, 52.0, 22.0 ], - "saved_object_attributes" : { - "attr_comment" : "" - } -, + "patching_rect" : [ 307.0, 779.0, 52.0, 22.0 ], "text" : "out~ 1" } @@ -1112,10 +625,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 428.0, 42.0, 38.0, 22.0 ], - "saved_object_attributes" : { - "attr_comment" : "" - } -, "text" : "in 1" } @@ -1128,7 +637,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "stop" ], - "patching_rect" : [ 503.0, 178.0, 181.0, 22.0 ], + "patching_rect" : [ 506.0, 200.0, 181.0, 22.0 ], "text" : "t l stop" } @@ -1446,7 +955,7 @@ ] } , - "patching_rect" : [ 503.0, 206.0, 113.0, 22.0 ], + "patching_rect" : [ 506.0, 228.0, 113.0, 22.0 ], "text" : "p process_bundle" } @@ -1472,7 +981,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 472.0, 780.0, 36.0, 36.0 ] + "patching_rect" : [ 250.0, 779.0, 24.0, 24.0 ] } } @@ -1485,7 +994,7 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 330.0, 34.0, 38.0, 38.0 ] + "patching_rect" : [ 330.0, 34.0, 26.0, 26.0 ] } } @@ -1510,6 +1019,13 @@ "source" : [ "obj-17", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "source" : [ "obj-18", 0 ] + } + } , { "patchline" : { @@ -1565,25 +1081,29 @@ } , { "patchline" : { - "destination" : [ "obj-16", 0 ], - "order" : 1, - "source" : [ "obj-23", 0 ] + "destination" : [ "obj-29", 0 ], + "source" : [ "obj-22", 0 ] } } , { "patchline" : { - "destination" : [ "obj-26", 0 ], - "order" : 2, + "destination" : [ "obj-6", 0 ], "source" : [ "obj-23", 0 ] } } , { "patchline" : { - "destination" : [ "obj-30", 0 ], - "order" : 0, - "source" : [ "obj-23", 0 ] + "destination" : [ "obj-18", 0 ], + "source" : [ "obj-25", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "source" : [ "obj-25", 0 ] } } @@ -1665,6 +1185,13 @@ "source" : [ "obj-4", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-25", 0 ], + "source" : [ "obj-4", 3 ] + } + } , { "patchline" : { @@ -1740,11 +1267,67 @@ , { "patchline" : { "destination" : [ "obj-7", 0 ], - "midpoints" : [ 212.5, 602.93206787109375, 309.759521484375, 602.93206787109375, 309.759521484375, 110.0, 339.5, 110.0 ], + "midpoints" : [ 212.5, 602.93206787109375, 309.759521484375, 602.93206787109375, 309.759521484375, 90.617416381835938, 339.5, 90.617416381835938 ], "order" : 0, "source" : [ "obj-58", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-10", 0 ], + "order" : 3, + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-15", 0 ], + "order" : 4, + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-16", 0 ], + "order" : 5, + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-26", 0 ], + "order" : 6, + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "order" : 1, + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "order" : 2, + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-30", 0 ], + "order" : 0, + "source" : [ "obj-6", 0 ] + } + } , { "patchline" : { @@ -1777,10 +1360,6 @@ "type" : "JSON", "implicit" : 1 } -, { - "name" : "o.if.mxo", - "type" : "iLaX" - } , { "name" : "o.intersection.mxo", "type" : "iLaX" -- 2.34.1