From e7168b98f9341c4721df4b679360784560941121 Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Thu, 8 May 2025 17:21:30 -0700 Subject: [PATCH] finished debugging spat trajectory group for now --- engine_zone~.maxpat | 72 +++++++++++++++++++++++++++++---------------- 1 file changed, 46 insertions(+), 26 deletions(-) diff --git a/engine_zone~.maxpat b/engine_zone~.maxpat index c110392..8fa26b3 100644 --- a/engine_zone~.maxpat +++ b/engine_zone~.maxpat @@ -15,18 +15,6 @@ "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { - "box" : { - "id" : "obj-3", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 358.0, 642.0, 84.0, 22.0 ], - "text" : "o.print to_poly" - } - - } -, { "box" : { "comment" : "", "id" : "obj-1", @@ -544,17 +532,41 @@ } , "classnamespace" : "box", - "rect" : [ 740.0, 150.0, 942.0, 912.0 ], + "rect" : [ 740.0, 134.0, 942.0, 912.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { + "box" : { + "id" : "obj-18", + "maxclass" : "number", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 324.0, 398.0, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 323.0, 430.0, 52.0, 22.0 ], + "text" : "open $1" + } + + } +, { "box" : { "id" : "obj-21", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 278.0, 222.0, 39.0, 22.0 ], + "patching_rect" : [ 290.0, 161.0, 39.0, 22.0 ], "text" : "10 16" } @@ -566,7 +578,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 47.0, 160.0, 155.0, 33.0 ], + "patching_rect" : [ 67.5, 51.0, 155.0, 33.0 ], "text" : "3: number of voices\n4: id offset for spat instance" } @@ -579,7 +591,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 507.0, 782.0, 150.0, 33.0 ] + "patching_rect" : [ 470.0, 168.0, 181.0, 33.0 ] } } @@ -663,7 +675,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 54.0, 200.0, 121.0, 22.0 ], + "patching_rect" : [ 54.0, 148.0, 121.0, 22.0 ], "text" : "loadmess #3 #4" } @@ -754,7 +766,7 @@ "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], "patching_rect" : [ 54.0, 495.0, 448.0, 198.0 ], - "text" : "/idx = aseq(1, /numsources), \n/scaled = (/idx * (1. / (/numsources - 1))) * /rate/spread, \n/rates = /slowest + /scaled,\nmap(\n lambda([i,v,f], \n progn(\n assign(\"/source/\" + i + \"/speed\", v + /r),\n assign(\"/source/\" + i + \"/radius\", f)\n )\n ), \n /idx + /offset, /rates, /idx * 0.1\n), \ndelete(/rate/spread, /numsources),\ndelete(/slowest, /idx, /scaled, /rates)" + "text" : "/idx = aseq(1, /numsources), \n/scaled = (/idx * (1. / (/numsources - 1))) * /rate/spread, \n/rates = /slowest + /scaled,\nmap(\n lambda([i,v,f], \n progn(\n assign(\"/source/\" + i + \"/speed\", v + /r),\n assign(\"/source/\" + i + \"/radius\", f)\n )\n ), \n /idx + /offset, /rates, /idx * 0.1\n), \ndelete(/rate/spread, /numsources),\ndelete(/slowest, /idx, /scaled, /rates, /offset, /r)" } } @@ -772,6 +784,13 @@ "source" : [ "obj-10", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-17", 0 ], + "source" : [ "obj-11", 0 ] + } + } , { "patchline" : { @@ -809,6 +828,13 @@ "source" : [ "obj-17", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-18", 0 ] + } + } , { "patchline" : { @@ -1108,16 +1134,14 @@ , { "patchline" : { "destination" : [ "obj-23", 0 ], - "order" : 1, "source" : [ "obj-2", 0 ] } } , { "patchline" : { - "destination" : [ "obj-3", 0 ], - "order" : 0, - "source" : [ "obj-2", 0 ] + "destination" : [ "obj-50", 0 ], + "source" : [ "obj-20", 0 ] } } @@ -1303,10 +1327,6 @@ "name" : "o.pack.mxo", "type" : "iLaX" } -, { - "name" : "o.print.mxo", - "type" : "iLaX" - } , { "name" : "o.route.mxo", "type" : "iLaX" -- 2.34.1