]> git.dabkitsch.com - sonogarden_maxproj.git/commitdiff
further research on preset management
authorequilet <2237372+equilet@users.noreply.github.com>
Fri, 6 Jun 2025 22:32:18 +0000 (15:32 -0700)
committerequilet <2237372+equilet@users.noreply.github.com>
Fri, 6 Jun 2025 22:32:18 +0000 (15:32 -0700)
engine_presets.maxpat

index 70606ce9873b9f5918581ecec332f1cc86070997..4b6fc4ed3a898f48e1a2ee68df32a37c11d858fb 100644 (file)
@@ -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"
                                }
 
                        }
 ,                      {
                                "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"
                                        "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 ],
                                        "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"
                                }
 
                                        "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"
                                }
 
                                        "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"
                                }
 
                        }
                                        "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"
                                        "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"
                                }
 
                                        "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"
                                }
 
                                        "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 ]
                                }
                                        "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"
                                        "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 ]
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-19", 0 ],
+                                       "destination" : [ "obj-23", 0 ],
                                        "source" : [ "obj-12", 0 ]
                                }
 
                                        "source" : [ "obj-16", 1 ]
                                }
 
-                       }
-,                      {
-                               "patchline" :                           {
-                                       "destination" : [ "obj-20", 0 ],
-                                       "source" : [ "obj-17", 0 ]
-                               }
-
                        }
 ,                      {
                                "patchline" :                           {
                        }
 ,                      {
                                "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 ]
                                }
 
                        }
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-17", 0 ],
+                                       "destination" : [ "obj-25", 0 ],
                                        "source" : [ "obj-3", 0 ]
                                }
 
 ,                      {
                                "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 ]
                                }
 
 
                        }
  ],
-               "originid" : "pat-202",
                "dependency_cache" : [                  {
                                "name" : "o.dict.mxo",
                                "type" : "iLaX"
                                "name" : "o.pack.mxo",
                                "type" : "iLaX"
                        }
-,                      {
-                               "name" : "o.prepend.mxo",
-                               "type" : "iLaX"
-                       }
 ,                      {
                                "name" : "o.route.mxo",
                                "type" : "iLaX"