]> git.dabkitsch.com - sonogarden_maxproj.git/commitdiff
added phrase functionality to ui
authorequilet <2237372+equilet@users.noreply.github.com>
Sat, 28 Jun 2025 02:43:36 +0000 (19:43 -0700)
committerequilet <2237372+equilet@users.noreply.github.com>
Sat, 28 Jun 2025 02:43:36 +0000 (19:43 -0700)
ui.ev.fragments.maxpat

index 4afaaef9f5b68fe1a1244497dd1c3ca492e9b5be..bbcbb8471f0bd7b21f99df30dfadfa8ba16c41ae 100644 (file)
                }
 ,
                "classnamespace" : "box",
-               "rect" : [ 479.0, 87.0, 927.0, 779.0 ],
+               "rect" : [ 34.0, 87.0, 988.0, 739.0 ],
                "openinpresentation" : 1,
                "gridsize" : [ 15.0, 15.0 ],
                "boxes" : [                     {
+                               "box" :                                 {
+                                       "fontface" : 0,
+                                       "id" : "obj-13",
+                                       "linecount" : 3,
+                                       "maxclass" : "o.expr.codebox",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 2,
+                                       "outlettype" : [ "FullPacket", "FullPacket" ],
+                                       "patching_rect" : [ 289.0, 528.0, 249.0, 57.0 ],
+                                       "text" : "if(exists(/phrase) && /phrase == 0, \n  delete(/phrase)\n)"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "bgcolor" : [ 0.098039215686275, 0.556862745098039, 0.364705882352941, 0.0 ],
+                                       "fontsize" : 11.0,
+                                       "id" : "obj-12",
+                                       "maxclass" : "comment",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 0,
+                                       "patching_rect" : [ 600.0, 251.0, 44.0, 19.0 ],
+                                       "presentation" : 1,
+                                       "presentation_rect" : [ 350.0, 3.5, 44.0, 19.0 ],
+                                       "text" : "phrase",
+                                       "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "bgcolor" : [ 0.015686274509804, 0.298039215686275, 0.352941176470588, 1.0 ],
+                                       "id" : "obj-5",
+                                       "maxclass" : "number",
+                                       "maximum" : 128,
+                                       "minimum" : 0,
+                                       "numinlets" : 1,
+                                       "numoutlets" : 2,
+                                       "outlettype" : [ "", "bang" ],
+                                       "parameter_enable" : 0,
+                                       "patching_rect" : [ 551.0, 249.0, 50.0, 22.0 ],
+                                       "presentation" : 1,
+                                       "presentation_rect" : [ 308.0, 2.0, 86.0, 22.0 ]
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-1",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "FullPacket" ],
+                                       "patching_rect" : [ 551.0, 356.0, 87.0, 22.0 ],
+                                       "text" : "o.pack /phrase"
+                               }
+
+                       }
+,                      {
                                "box" :                                 {
                                        "id" : "obj-42",
                                        "maxclass" : "newobj",
                                        "numinlets" : 2,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "float" ],
-                                       "patching_rect" : [ 489.0, 438.0, 29.5, 22.0 ],
+                                       "patching_rect" : [ 384.0, 239.0, 29.5, 22.0 ],
                                        "text" : "+ 5."
                                }
 
@@ -32,7 +91,7 @@
                                        "numinlets" : 2,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
-                                       "patching_rect" : [ 489.0, 482.0, 29.5, 22.0 ],
+                                       "patching_rect" : [ 384.0, 283.0, 29.5, 22.0 ],
                                        "text" : "$2"
                                }
 
                                        "numinlets" : 2,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
-                                       "patching_rect" : [ 436.0, 482.0, 29.5, 22.0 ],
+                                       "patching_rect" : [ 331.0, 283.0, 29.5, 22.0 ],
                                        "text" : "$1"
                                }
 
                                        "numinlets" : 1,
                                        "numoutlets" : 2,
                                        "outlettype" : [ "", "" ],
-                                       "patching_rect" : [ 425.0, 438.0, 29.5, 22.0 ],
+                                       "patching_rect" : [ 320.0, 239.0, 29.5, 22.0 ],
                                        "text" : "t l l"
                                }
 
                                        "numinlets" : 2,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
-                                       "patching_rect" : [ 436.0, 540.0, 72.0, 22.0 ],
+                                       "patching_rect" : [ 331.0, 341.0, 72.0, 22.0 ],
                                        "text" : "pak 0. 0."
                                }
 
                                        "maxclass" : "comment",
                                        "numinlets" : 1,
                                        "numoutlets" : 0,
-                                       "patching_rect" : [ 548.0, 513.0, 78.0, 19.0 ],
+                                       "patching_rect" : [ 443.0, 314.0, 78.0, 19.0 ],
                                        "presentation" : 1,
                                        "presentation_rect" : [ 111.0, 2.0, 78.0, 19.0 ],
                                        "text" : "spacing range",
                                        "numoutlets" : 2,
                                        "outlettype" : [ "", "bang" ],
                                        "parameter_enable" : 0,
-                                       "patching_rect" : [ 436.0, 513.0, 51.0, 22.0 ],
+                                       "patching_rect" : [ 331.0, 314.0, 51.0, 22.0 ],
                                        "presentation" : 1,
                                        "presentation_rect" : [ 5.0, 2.0, 51.0, 22.0 ],
                                        "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
                                        "numinlets" : 1,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "FullPacket" ],
-                                       "patching_rect" : [ 436.0, 575.0, 126.0, 22.0 ],
+                                       "patching_rect" : [ 331.0, 376.0, 126.0, 22.0 ],
                                        "text" : "o.pack /spacing/range"
                                }
 
                                        "numoutlets" : 2,
                                        "outlettype" : [ "", "bang" ],
                                        "parameter_enable" : 0,
-                                       "patching_rect" : [ 489.0, 513.0, 51.0, 22.0 ],
+                                       "patching_rect" : [ 384.0, 314.0, 51.0, 22.0 ],
                                        "presentation" : 1,
                                        "presentation_rect" : [ 58.0, 2.0, 131.0, 22.0 ],
                                        "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ]
                                        "numoutlets" : 1,
                                        "offset" : [ 0.0, 0.0 ],
                                        "outlettype" : [ "FullPacket" ],
-                                       "patching_rect" : [ 767.0, 252.0, 194.0, 30.0 ],
+                                       "patching_rect" : [ 732.0, 341.0, 194.0, 30.0 ],
                                        "presentation" : 1,
                                        "presentation_rect" : [ 1.0, 26.0, 194.0, 30.0 ],
                                        "viewvisibility" : 1
                                        "id" : "obj-14",
                                        "maxclass" : "newobj",
                                        "numinlets" : 1,
-                                       "numoutlets" : 5,
-                                       "outlettype" : [ "", "", "", "", "FullPacket" ],
-                                       "patching_rect" : [ 77.0, 181.0, 231.0, 22.0 ],
-                                       "text" : "o.route /density /variety /spacing/range /st"
+                                       "numoutlets" : 6,
+                                       "outlettype" : [ "", "", "", "", "", "FullPacket" ],
+                                       "patching_rect" : [ 77.0, 181.0, 274.0, 22.0 ],
+                                       "text" : "o.route /density /variety /spacing/range /phrase /st"
                                }
 
                        }
                                        "numinlets" : 1,
                                        "numoutlets" : 2,
                                        "outlettype" : [ "", "" ],
-                                       "patching_rect" : [ 228.0, 520.0, 47.999988406896591, 22.0 ],
+                                       "patching_rect" : [ 289.0, 487.0, 47.999988406896591, 22.0 ],
                                        "text" : "t l l"
                                }
 
                                        "maxclass" : "outlet",
                                        "numinlets" : 1,
                                        "numoutlets" : 0,
-                                       "patching_rect" : [ 228.0, 658.0, 24.0, 24.0 ]
+                                       "patching_rect" : [ 289.0, 625.0, 24.0, 24.0 ]
                                }
 
                        }
                                        "numinlets" : 2,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "FullPacket" ],
-                                       "patching_rect" : [ 228.0, 491.0, 48.0, 22.0 ],
+                                       "patching_rect" : [ 289.0, 458.0, 48.0, 22.0 ],
                                        "text" : "o.union"
                                }
 
                        }
  ],
                "lines" : [                     {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-67", 0 ],
+                                       "source" : [ "obj-1", 0 ]
+                               }
+
+                       }
+,                      {
                                "patchline" :                           {
                                        "destination" : [ "obj-67", 0 ],
                                        "source" : [ "obj-10", 0 ]
                                        "source" : [ "obj-11", 0 ]
                                }
 
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-25", 0 ],
+                                       "order" : 1,
+                                       "source" : [ "obj-13", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-67", 1 ],
+                                       "midpoints" : [ 298.5, 599.942219925946119, 556.92890491756043, 599.942219925946119, 556.92890491756043, 454.162597839909722, 327.5, 454.162597839909722 ],
+                                       "order" : 0,
+                                       "source" : [ "obj-13", 0 ]
+                               }
+
                        }
 ,                      {
                                "patchline" :                           {
                                        "destination" : [ "obj-11", 0 ],
-                                       "source" : [ "obj-14", 3 ]
+                                       "source" : [ "obj-14", 4 ]
                                }
 
                        }
                                        "source" : [ "obj-14", 2 ]
                                }
 
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-5", 0 ],
+                                       "source" : [ "obj-14", 3 ]
+                               }
+
                        }
 ,                      {
                                "patchline" :                           {
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-25", 0 ],
+                                       "destination" : [ "obj-13", 0 ],
                                        "source" : [ "obj-43", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-67", 1 ],
-                                       "midpoints" : [ 266.499988406896591, 547.767537308758619, 280.807414439044805, 547.767537308758619, 280.807414439044805, 487.162597839909722, 266.5, 487.162597839909722 ],
-                                       "source" : [ "obj-43", 1 ]
+                                       "destination" : [ "obj-1", 0 ],
+                                       "source" : [ "obj-5", 0 ]
                                }
 
                        }
                                "name" : "o.compose.mxo",
                                "type" : "iLaX"
                        }
+,                      {
+                               "name" : "o.expr.codebox.mxo",
+                               "type" : "iLaX"
+                       }
 ,                      {
                                "name" : "o.pack.mxo",
                                "type" : "iLaX"