]> git.dabkitsch.com - sonogarden_maxproj.git/commitdiff
updated density/delay-time selection to be simpler for now
authorequilet <2237372+equilet@users.noreply.github.com>
Sat, 26 Apr 2025 19:12:36 +0000 (12:12 -0700)
committerequilet <2237372+equilet@users.noreply.github.com>
Sat, 26 Apr 2025 19:12:36 +0000 (12:12 -0700)
engine_grainmanager.maxpat

index 67e21ed3817ae2949b4770765c4a5cf3629c0a65..e798419a66a66123f1789d6318889d78e43382bf 100644 (file)
                }
 ,
                "classnamespace" : "box",
-               "rect" : [ 732.0, 328.0, 646.0, 636.0 ],
+               "rect" : [ 732.0, 328.0, 826.0, 636.0 ],
                "gridsize" : [ 15.0, 15.0 ],
                "subpatcher_template" : "Untitled5_template",
                "boxes" : [                     {
+                               "box" :                                 {
+                                       "fontface" : 0,
+                                       "id" : "obj-2",
+                                       "linecount" : 4,
+                                       "maxclass" : "o.expr.codebox",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 2,
+                                       "outlettype" : [ "FullPacket", "FullPacket" ],
+                                       "patching_rect" : [ 214.0, 42.0, 414.0, 70.0 ],
+                                       "presentation_linecount" : 4,
+                                       "text" : "/rand = /rand/int / 9999.,\n/loval = scale(/density, 0., 1., /spacing/range[[1]], 0.5),\n/hival = scale(/density, 0., 1., /spacing/range[[0]], 0.01), \n/deltime = scale(/rand, 0., 1., /loval, /hival) * 1000."
+                               }
+
+                       }
+,                      {
                                "box" :                                 {
                                        "id" : "obj-1",
                                        "maxclass" : "newobj",
@@ -32,7 +47,7 @@
                                        "numinlets" : 1,
                                        "numoutlets" : 2,
                                        "outlettype" : [ "", "" ],
-                                       "patching_rect" : [ 175.0, 377.0, 170.0, 22.0 ],
+                                       "patching_rect" : [ 175.0, 395.0, 170.0, 22.0 ],
                                        "text" : "t l l"
                                }
 
                                        "numinlets" : 2,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "FullPacket" ],
-                                       "patching_rect" : [ 175.0, 348.0, 91.0, 22.0 ],
+                                       "patching_rect" : [ 175.0, 366.0, 91.0, 22.0 ],
                                        "text" : "o.var"
                                }
 
                                        "numinlets" : 2,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "bang" ],
-                                       "patching_rect" : [ 175.0, 321.0, 38.0, 22.0 ],
+                                       "patching_rect" : [ 175.0, 339.0, 38.0, 22.0 ],
                                        "text" : "del 0."
                                }
 
                                        "numinlets" : 1,
                                        "numoutlets" : 2,
                                        "outlettype" : [ "", "FullPacket" ],
-                                       "patching_rect" : [ 175.0, 292.0, 91.0, 22.0 ],
+                                       "patching_rect" : [ 175.0, 310.0, 91.0, 22.0 ],
                                        "text" : "o.route /deltime"
                                }
 
                                "box" :                                 {
                                        "fontface" : 0,
                                        "id" : "obj-29",
-                                       "linecount" : 4,
+                                       "linecount" : 2,
                                        "maxclass" : "o.expr.codebox",
                                        "numinlets" : 1,
                                        "numoutlets" : 2,
                                        "outlettype" : [ "FullPacket", "FullPacket" ],
-                                       "patching_rect" : [ 175.0, 211.0, 414.0, 70.0 ],
-                                       "text" : "/rand = /rand/int / 9999.,\n/loval = scale(/density, 0., 1., /spacing/range[[1]], 0.5),\n/hival = scale(/density, 0., 1., /spacing/range[[0]], 0.01), \n/deltime = scale(/rand, 0., 1., /loval, /hival) * 1000."
+                                       "patching_rect" : [ 175.0, 211.0, 547.0, 44.0 ],
+                                       "presentation_linecount" : 3,
+                                       "text" : "/rand = /rand/int / 9999.,\n/deltime = scale(/rand, 0., 1., /spacing/range[[1]], /spacing/range[[0]]) * 1000."
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
                                        "destination" : [ "obj-43", 0 ],
-                                       "midpoints" : [ 335.5, 409.0, 608.0751953125, 409.0, 608.0751953125, 175.0, 184.5, 175.0 ],
+                                       "midpoints" : [ 335.5, 421.3968505859375, 608.0751953125, 421.3968505859375, 608.0751953125, 175.0, 184.5, 175.0 ],
                                        "source" : [ "obj-47", 1 ]
                                }