From 68c7e4dde701bfa7f2f3154ca53f67b8ee112b8d Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Tue, 25 Mar 2025 19:06:59 -0700 Subject: [PATCH] added clear routine for polybuffer --- polybuf_container~.maxpat | 225 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 214 insertions(+), 11 deletions(-) diff --git a/polybuf_container~.maxpat b/polybuf_container~.maxpat index b60f5fc..6a4708c 100644 --- a/polybuf_container~.maxpat +++ b/polybuf_container~.maxpat @@ -10,19 +10,201 @@ } , "classnamespace" : "box", - "rect" : [ 0.0, 156.0, 1654.0, 847.0 ], + "rect" : [ 0.0, 156.0, 1002.0, 749.0 ], "openinpresentation" : 1, "gridsize" : [ 15.0, 15.0 ], "toolbars_unpinned_last_save" : 15, "subpatcher_template" : "Untitled5_template", "boxes" : [ { + "box" : { + "id" : "obj-42", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 9, + "minor" : 0, + "revision" : 6, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 59.0, 106.0, 247.0, 347.0 ], + "gridsize" : [ 15.0, 15.0 ], + "subpatcher_template" : "Untitled5_template", + "boxes" : [ { + "box" : { + "comment" : "", + "id" : "obj-1", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 41.0, 27.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "id" : "obj-52", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 141.0, 208.0, 72.0, 22.0 ], + "text" : "prepend set" + } + + } +, { + "box" : { + "id" : "obj-48", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 41.0, 176.0, 55.0, 22.0 ], + "text" : "set none" + } + + } +, { + "box" : { + "id" : "obj-43", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 41.0, 130.0, 87.0, 22.0 ], + "text" : "route done" + } + + } +, { + "box" : { + "id" : "obj-21", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "float", "bang" ], + "patching_rect" : [ 41.0, 247.0, 76.0, 22.0 ], + "text" : "buffer~ none" + } + + } +, { + "box" : { + "id" : "obj-37", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "clear", "" ], + "patching_rect" : [ 109.0, 176.0, 51.0, 22.0 ], + "text" : "t clear s" + } + + } +, { + "box" : { + "id" : "obj-22", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 41.0, 81.0, 84.0, 22.0 ], + "text" : "route bufferlist" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-43", 0 ], + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-21", 0 ], + "source" : [ "obj-37", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-52", 0 ], + "source" : [ "obj-37", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-37", 0 ], + "source" : [ "obj-43", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-48", 0 ], + "source" : [ "obj-43", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-21", 0 ], + "source" : [ "obj-48", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-21", 0 ], + "source" : [ "obj-52", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 123.0, 275.0, 88.0, 22.0 ], + "text" : "p clear_routine" + } + + } +, { + "box" : { + "id" : "obj-41", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 232.0, 204.0, 70.0, 22.0 ], + "text" : "getbufferlist" + } + + } +, { "box" : { "id" : "obj-15", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "int" ], - "patching_rect" : [ 481.0, 48.0, 55.0, 22.0 ], + "patching_rect" : [ 464.0, 53.0, 55.0, 22.0 ], "text" : "strippath" } @@ -843,7 +1025,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 365.0, 8.0, 92.0, 35.0 ], + "patching_rect" : [ 464.0, 11.5, 92.0, 35.0 ], "presentation" : 1, "presentation_rect" : [ 1.0, 1.0, 268.0, 41.0 ] } @@ -856,7 +1038,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], - "patching_rect" : [ 275.5, 125.0, 22.0, 22.0 ], + "patching_rect" : [ 192.0, 125.0, 22.0, 22.0 ], "text" : "t b" } @@ -866,10 +1048,10 @@ "id" : "obj-34", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "clear", "", "int" ], - "patching_rect" : [ 275.5, 161.0, 129.0, 22.0 ], - "text" : "t clear 0" + "numoutlets" : 4, + "outlettype" : [ "clear", "bang", "", "int" ], + "patching_rect" : [ 192.0, 161.0, 139.0, 22.0 ], + "text" : "t clear b 0" } } @@ -961,7 +1143,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 85.0, 701.0, 22.0, 22.0 ] + "patching_rect" : [ 88.5, 701.0, 22.0, 22.0 ] } } @@ -1128,7 +1310,7 @@ , { "patchline" : { "destination" : [ "obj-30", 0 ], - "source" : [ "obj-34", 1 ] + "source" : [ "obj-34", 2 ] } } @@ -1142,7 +1324,14 @@ , { "patchline" : { "destination" : [ "obj-39", 0 ], - "source" : [ "obj-34", 2 ] + "source" : [ "obj-34", 3 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-41", 0 ], + "source" : [ "obj-34", 1 ] } } @@ -1152,6 +1341,13 @@ "source" : [ "obj-35", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-42", 0 ], + "source" : [ "obj-36", 0 ] + } + } , { "patchline" : { @@ -1166,6 +1362,13 @@ "source" : [ "obj-4", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-36", 0 ], + "source" : [ "obj-41", 0 ] + } + } , { "patchline" : { -- 2.34.1