From 814df0f2c141d643627d338f3d100207c067d8fa Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Fri, 6 Jun 2025 15:32:18 -0700 Subject: [PATCH] further research on preset management --- engine_presets.maxpat | 122 +++++++++++++++--------------------------- 1 file changed, 43 insertions(+), 79 deletions(-) diff --git a/engine_presets.maxpat b/engine_presets.maxpat index 70606ce..4b6fc4e 100644 --- a/engine_presets.maxpat +++ b/engine_presets.maxpat @@ -4,46 +4,54 @@ "appversion" : { "major" : 9, "minor" : 0, - "revision" : 2, + "revision" : 6, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 188.0, 87.0, 988.0, 753.0 ], + "rect" : [ 881.0, 178.0, 988.0, 753.0 ], "gridsize" : [ 15.0, 15.0 ], "boxes" : [ { "box" : { - "id" : "obj-20", + "id" : "obj-25", "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 411.0, 641.0, 71.0, 22.0 ], - "text" : "print status:" + "numinlets" : 2, + "numoutlets" : 5, + "outlettype" : [ "dictionary", "", "", "", "" ], + "patching_rect" : [ 411.0, 617.0, 89.0, 22.0 ], + "saved_object_attributes" : { + "embed" : 0, + "legacy" : 0, + "parameter_enable" : 0, + "parameter_mappable" : 0 + } +, + "text" : "dict sg_presets" } } , { "box" : { - "id" : "obj-17", - "maxclass" : "message", - "numinlets" : 2, + "id" : "obj-22", + "maxclass" : "newobj", + "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 411.0, 611.0, 151.0, 22.0 ], - "text" : "preset file loaded correctly." + "patching_rect" : [ 471.0, 77.0, 43.0, 22.0 ], + "text" : "r store" } } , { "box" : { - "id" : "obj-19", - "maxclass" : "newobj", - "numinlets" : 1, + "id" : "obj-21", + "maxclass" : "message", + "numinlets" : 2, "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 115.0, 621.0, 98.0, 22.0 ], - "text" : "o.prepend /recall" + "outlettype" : [ "" ], + "patching_rect" : [ 334.0, 356.0, 42.0, 22.0 ], + "text" : "import" } } @@ -74,11 +82,10 @@ , { "box" : { "id" : "obj-13", - "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 120.0, 400.0, 67.0, 33.0 ], + "patching_rect" : [ 120.5, 336.0, 74.0, 20.0 ], "presentation" : 1, "presentation_rect" : [ 343.0, 14.0, 74.0, 20.0 ], "text" : "recall preset" @@ -94,7 +101,7 @@ "numoutlets" : 3, "outlettype" : [ "int", "", "" ], "parameter_enable" : 0, - "patching_rect" : [ 62.0, 372.0, 100.0, 22.0 ], + "patching_rect" : [ 62.5, 308.0, 100.0, 22.0 ], "prefix_mode" : 2, "presentation" : 1, "presentation_rect" : [ 238.0, 13.0, 100.0, 22.0 ], @@ -109,7 +116,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 115.0, 590.0, 59.0, 22.0 ], + "patching_rect" : [ 115.0, 551.0, 59.0, 22.0 ], "text" : "o.route /1" } @@ -157,7 +164,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], - "patching_rect" : [ 490.0, 384.0, 58.0, 22.0 ], + "patching_rect" : [ 549.0, 308.0, 58.0, 22.0 ], "text" : "loadbang" } @@ -169,10 +176,10 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 490.0, 433.0, 180.0, 22.0 ], + "patching_rect" : [ 549.0, 356.0, 145.0, 22.0 ], "presentation" : 1, "presentation_rect" : [ 159.0, 40.0, 180.0, 22.0 ], - "text" : "import sonogarden_presets.json" + "text" : "import engine_status.json" } } @@ -182,7 +189,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 369.0, 385.0, 92.0, 20.0 ], + "patching_rect" : [ 430.0, 357.0, 92.0, 20.0 ], "presentation" : 1, "presentation_rect" : [ 40.0, 41.0, 92.0, 20.0 ], "text" : "write all presets" @@ -233,7 +240,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 230.0, 313.0, 95.0, 22.0 ], + "patching_rect" : [ 230.0, 320.0, 57.0, 22.0 ], "text" : "t l l" } @@ -245,7 +252,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 230.0, 280.0, 95.0, 22.0 ], + "patching_rect" : [ 230.0, 287.0, 57.0, 22.0 ], "text" : "o.union" } @@ -282,7 +289,7 @@ "numoutlets" : 1, "outlettype" : [ "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 314.0, 154.0, 24.0, 24.0 ], + "patching_rect" : [ 315.0, 154.0, 24.0, 24.0 ], "presentation" : 1, "presentation_rect" : [ -9.0, 9.0, 24.0, 24.0 ] } @@ -359,7 +366,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 320.0, 384.0, 42.0, 22.0 ], + "patching_rect" : [ 381.0, 356.0, 42.0, 22.0 ], "presentation" : 1, "presentation_rect" : [ -9.0, 40.0, 42.0, 22.0 ], "text" : "export" @@ -408,40 +415,9 @@ "text" : "o.union" } - } -, { - "box" : { - "id" : "obj-2", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 471.0, 84.0, 79.0, 22.0 ], - "text" : "o.route /store" - } - - } -, { - "box" : { - "id" : "obj-1", - "maxclass" : "newobj", - "numinlets" : 0, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 471.0, 54.0, 35.0, 22.0 ], - "text" : "r osc" - } - } ], "lines" : [ { - "patchline" : { - "destination" : [ "obj-2", 0 ], - "source" : [ "obj-1", 0 ] - } - - } -, { "patchline" : { "destination" : [ "obj-12", 0 ], "source" : [ "obj-11", 0 ] @@ -457,7 +433,7 @@ } , { "patchline" : { - "destination" : [ "obj-19", 0 ], + "destination" : [ "obj-23", 0 ], "source" : [ "obj-12", 0 ] } @@ -489,13 +465,6 @@ "source" : [ "obj-16", 1 ] } - } -, { - "patchline" : { - "destination" : [ "obj-20", 0 ], - "source" : [ "obj-17", 0 ] - } - } , { "patchline" : { @@ -506,15 +475,15 @@ } , { "patchline" : { - "destination" : [ "obj-23", 0 ], - "source" : [ "obj-19", 0 ] + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-21", 0 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], - "source" : [ "obj-2", 0 ] + "source" : [ "obj-22", 0 ] } } @@ -548,7 +517,7 @@ } , { "patchline" : { - "destination" : [ "obj-17", 0 ], + "destination" : [ "obj-25", 0 ], "source" : [ "obj-3", 0 ] } @@ -591,7 +560,7 @@ , { "patchline" : { "destination" : [ "obj-44", 1 ], - "midpoints" : [ 315.5, 338.82830810546875, 337.81878662109375, 338.82830810546875, 337.81878662109375, 277.031768798828125, 315.5, 277.031768798828125 ], + "midpoints" : [ 277.5, 345.82830810546875, 297.010986328125, 345.82830810546875, 297.010986328125, 284.031768798828125, 277.5, 284.031768798828125 ], "source" : [ "obj-43", 1 ] } @@ -647,7 +616,6 @@ } ], - "originid" : "pat-202", "dependency_cache" : [ { "name" : "o.dict.mxo", "type" : "iLaX" @@ -656,10 +624,6 @@ "name" : "o.pack.mxo", "type" : "iLaX" } -, { - "name" : "o.prepend.mxo", - "type" : "iLaX" - } , { "name" : "o.route.mxo", "type" : "iLaX" -- 2.34.1