From 3584b22b7d0588b7ac8282c7bee6edac54094a4e Mon Sep 17 00:00:00 2001 From: equilet Date: Fri, 3 Jul 2026 12:50:48 -0700 Subject: [PATCH] adding grain buffer recorder --- tf.grainbufrec.maxpat | 360 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 360 insertions(+) create mode 100644 tf.grainbufrec.maxpat diff --git a/tf.grainbufrec.maxpat b/tf.grainbufrec.maxpat new file mode 100644 index 0000000..98e12ab --- /dev/null +++ b/tf.grainbufrec.maxpat @@ -0,0 +1,360 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 3, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 59.0, 104.0, 640.0, 480.0 ], + "bglocked" : 0, + "openinpresentation" : 1, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "Untitled5_template", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-15", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 512.0, 279.0, 90.0, 22.0 ], + "text" : "loadmess 3000" + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 437.0, 336.0, 47.0, 22.0 ], + "text" : "size $1" + } + + } +, { + "box" : { + "format" : 6, + "hint" : "buffer size (ms)", + "id" : "obj-12", + "maxclass" : "flonum", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 437.0, 303.0, 50.0, 22.0 ], + "presentation" : 1, + "presentation_rect" : [ 190.0, 78.0, 87.0, 22.0 ] + } + + } +, { + "box" : { + "hint" : "replace buffer", + "id" : "obj-11", + "maxclass" : "button", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 355.0, 306.0, 24.0, 24.0 ], + "presentation" : 1, + "presentation_rect" : [ 1.0, 78.0, 22.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-72", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 355.0, 341.5, 48.0, 22.0 ], + "text" : "replace" + } + + } +, { + "box" : { + "id" : "obj-47", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "float", "bang" ], + "patching_rect" : [ 355.0, 370.5, 176.0, 22.0 ], + "presentation" : 1, + "presentation_rect" : [ 26.0, 78.0, 162.0, 22.0 ], + "text" : "buffer~ #1 1 " + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 373.0, 83.0, 150.0, 20.0 ], + "text" : "arg1: bufname" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 268.0, 109.0, 72.0, 22.0 ], + "text" : "prepend set" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "bang", "" ], + "patching_rect" : [ 226.0, 78.0, 61.0, 22.0 ], + "text" : "sel 0" + } + + } +, { + "box" : { + "id" : "obj-3", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 226.0, 47.0, 134.0, 22.0 ], + "text" : "loadmess #1" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 3, + "outlettype" : [ "", "", "" ], + "patching_rect" : [ 151.0, 167.0, 115.0, 22.0 ], + "text" : "routepass signal set" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-1", + "index" : 0, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 151.0, 51.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "buffername" : "#1", + "id" : "obj-99", + "maxclass" : "waveform~", + "numinlets" : 5, + "numoutlets" : 6, + "outlettype" : [ "float", "float", "float", "float", "list", "" ], + "patching_rect" : [ 320.0, 226.0, 135.0, 51.0 ], + "presentation" : 1, + "presentation_rect" : [ 1.0, 1.0, 250.0, 51.0 ] + } + + } +, { + "box" : { + "fontface" : 0, + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-31", + "maxclass" : "number~", + "mode" : 2, + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "signal", "float" ], + "patching_rect" : [ 151.0, 328.0, 113.0, 22.0 ], + "presentation" : 1, + "presentation_rect" : [ 190.0, 54.0, 87.0, 22.0 ], + "sig" : 0.0 + } + + } +, { + "box" : { + "id" : "obj-19", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 219.5, 246.0, 24.0, 24.0 ], + "presentation" : 1, + "presentation_rect" : [ 253.0, 1.0, 24.0, 24.0 ] + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "signal" ], + "patching_rect" : [ 151.0, 299.0, 161.0, 22.0 ], + "presentation" : 1, + "presentation_rect" : [ 1.0, 54.0, 187.0, 22.0 ], + "text" : "record~ #1 1 @loop 1" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-72", 0 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-14", 0 ], + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-47", 0 ], + "source" : [ "obj-14", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "source" : [ "obj-15", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-19", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "order" : 1, + "source" : [ "obj-2", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-99", 0 ], + "order" : 0, + "source" : [ "obj-2", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "source" : [ "obj-4", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-31", 0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-99", 0 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-47", 0 ], + "source" : [ "obj-72", 0 ] + } + + } + ], + "dependency_cache" : [ ], + "autosave" : 0 + } + +} -- 2.34.1