From 7bbc287750b9d8919d5331159708834f403c6869 Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Fri, 27 Jun 2025 19:43:36 -0700 Subject: [PATCH] added phrase functionality to ui --- ui.ev.fragments.maxpat | 139 ++++++++++++++++++++++++++++++++++------- 1 file changed, 116 insertions(+), 23 deletions(-) diff --git a/ui.ev.fragments.maxpat b/ui.ev.fragments.maxpat index 4afaaef..bbcbb84 100644 --- a/ui.ev.fragments.maxpat +++ b/ui.ev.fragments.maxpat @@ -10,17 +10,76 @@ } , "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" } @@ -44,7 +103,7 @@ "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" } @@ -56,7 +115,7 @@ "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" } @@ -68,7 +127,7 @@ "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." } @@ -81,7 +140,7 @@ "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", @@ -102,7 +161,7 @@ "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 ] @@ -116,7 +175,7 @@ "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" } @@ -134,7 +193,7 @@ "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 ] @@ -157,7 +216,7 @@ "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 @@ -169,10 +228,10 @@ "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" } } @@ -286,7 +345,7 @@ "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" } @@ -323,7 +382,7 @@ "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 ] } } @@ -334,7 +393,7 @@ "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" } @@ -448,6 +507,13 @@ } ], "lines" : [ { + "patchline" : { + "destination" : [ "obj-67", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { "patchline" : { "destination" : [ "obj-67", 0 ], "source" : [ "obj-10", 0 ] @@ -460,11 +526,28 @@ "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 ] } } @@ -481,6 +564,13 @@ "source" : [ "obj-14", 2 ] } + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-14", 3 ] + } + } , { "patchline" : { @@ -591,16 +681,15 @@ } , { "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 ] } } @@ -658,6 +747,10 @@ "name" : "o.compose.mxo", "type" : "iLaX" } +, { + "name" : "o.expr.codebox.mxo", + "type" : "iLaX" + } , { "name" : "o.pack.mxo", "type" : "iLaX" -- 2.34.1