From 50cbd569ade4f79eae77eeefea8b9fc30f3cfd9d Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Tue, 22 Apr 2025 18:40:27 -0700 Subject: [PATCH] added global metro paths --- sonogarden.maxpat | 357 ++++++++++++++++++++++++++++++---------------- 1 file changed, 236 insertions(+), 121 deletions(-) diff --git a/sonogarden.maxpat b/sonogarden.maxpat index 19a7a31..32ba1dc 100644 --- a/sonogarden.maxpat +++ b/sonogarden.maxpat @@ -317,18 +317,6 @@ "text" : "p" } - } -, { - "box" : { - "id" : "obj-65", - "maxclass" : "button", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 353.0, 161.0, 24.0, 24.0 ] - } - } , { "box" : { @@ -338,7 +326,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 981.5, 637.0, 35.0, 22.0 ], - "presentation_linecount" : 2, "text" : "open" } @@ -396,9 +383,45 @@ } , "classnamespace" : "box", - "rect" : [ 59.0, 106.0, 1000.0, 780.0 ], + "rect" : [ 92.0, 159.0, 539.0, 383.0 ], "gridsize" : [ 15.0, 15.0 ], "boxes" : [ { + "box" : { + "id" : "obj-7", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 46.0, 130.0, 24.0, 24.0 ] + } + + } +, { + "box" : { + "id" : "obj-3", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "FullPacket" ], + "patching_rect" : [ 46.0, 95.0, 227.0, 22.0 ], + "text" : "o.route /metro/status /metro/interval/sec" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "float" ], + "patching_rect" : [ 150.0, 163.0, 47.0, 22.0 ], + "text" : "* 1000." + } + + } +, { "box" : { "comment" : "", "id" : "obj-1", @@ -406,8 +429,8 @@ "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, - "outlettype" : [ "bang" ], - "patching_rect" : [ 461.0, 67.0, 30.0, 30.0 ] + "outlettype" : [ "" ], + "patching_rect" : [ 457.0, 95.0, 30.0, 30.0 ] } } @@ -508,22 +531,10 @@ ] } , - "patching_rect" : [ 50.0, 167.0, 41.0, 22.0 ], + "patching_rect" : [ 46.0, 195.0, 41.0, 22.0 ], "text" : "p stop" } - } -, { - "box" : { - "id" : "obj-4", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 147.0, 100.0, 97.0, 22.0 ], - "text" : "loadmess 60000" - } - } , { "box" : { @@ -533,19 +544,20 @@ "numoutlets" : 1, "outlettype" : [ "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 97.0, 198.0, 24.0, 24.0 ] + "patching_rect" : [ 93.0, 226.0, 24.0, 24.0 ] } } , { "box" : { + "format" : 6, "id" : "obj-23", - "maxclass" : "number", + "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 147.0, 128.0, 81.0, 22.0 ], + "patching_rect" : [ 150.0, 131.0, 81.0, 22.0 ], "presentation" : 1, "presentation_rect" : [ 57.0, 36.0, 71.0, 22.0 ] } @@ -560,7 +572,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "bang" ], - "patching_rect" : [ 97.0, 167.0, 76.0, 22.0 ], + "patching_rect" : [ 93.0, 195.0, 76.0, 22.0 ], "text" : "metro 60000" } @@ -573,8 +585,8 @@ "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, - "outlettype" : [ "int" ], - "patching_rect" : [ 67.5, 40.0, 30.0, 30.0 ] + "outlettype" : [ "" ], + "patching_rect" : [ 46.0, 28.0, 30.0, 30.0 ] } } @@ -586,7 +598,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 50.0, 282.0, 30.0, 30.0 ] + "patching_rect" : [ 46.0, 271.0, 30.0, 30.0 ] } } @@ -598,7 +610,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 97.0, 282.0, 30.0, 30.0 ] + "patching_rect" : [ 93.0, 271.0, 30.0, 30.0 ] } } @@ -620,6 +632,13 @@ , { "patchline" : { "destination" : [ "obj-10", 1 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], "source" : [ "obj-23", 0 ] } @@ -627,29 +646,27 @@ , { "patchline" : { "destination" : [ "obj-23", 0 ], - "source" : [ "obj-4", 0 ] + "source" : [ "obj-3", 1 ] } } , { "patchline" : { - "destination" : [ "obj-51", 0 ], - "source" : [ "obj-48", 0 ] + "destination" : [ "obj-7", 0 ], + "source" : [ "obj-3", 0 ] } } , { "patchline" : { - "destination" : [ "obj-10", 0 ], - "order" : 0, - "source" : [ "obj-49", 0 ] + "destination" : [ "obj-51", 0 ], + "source" : [ "obj-48", 0 ] } } , { "patchline" : { - "destination" : [ "obj-48", 0 ], - "order" : 1, + "destination" : [ "obj-3", 0 ], "source" : [ "obj-49", 0 ] } @@ -660,11 +677,27 @@ "source" : [ "obj-6", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-10", 0 ], + "order" : 0, + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-48", 0 ], + "order" : 1, + "source" : [ "obj-7", 0 ] + } + } ] } , - "patching_rect" : [ 263.0, 199.0, 127.0, 22.0 ], + "patching_rect" : [ 283.0, 199.0, 127.0, 22.0 ], "text" : "p sequencer_advance" } @@ -697,7 +730,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 55.0, 212.0, 55.0, 35.0 ], - "presentation_linecount" : 3, "text" : ";\rdsp start" } @@ -1084,13 +1116,11 @@ "box" : { "fontface" : 0, "id" : "obj-32", - "linecount" : 2, "maxclass" : "o.display", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 550.0, 433.0, 150.0, 46.0 ], - "text" : "/buffer/name : \"/engine/1.23\"" + "patching_rect" : [ 550.0, 433.0, 150.0, 33.0 ] } } @@ -1827,10 +1857,10 @@ "id" : "obj-18", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "", "", "FullPacket" ], - "patching_rect" : [ 47.0, 167.0, 151.0, 22.0 ], - "text" : "o.route /engine/1 /engine/2" + "numoutlets" : 4, + "outlettype" : [ "", "", "", "FullPacket" ], + "patching_rect" : [ 47.0, 135.0, 184.0, 22.0 ], + "text" : "o.route /engine/1 /engine/2 /main" } } @@ -1889,7 +1919,7 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 138.0, 130.0, 35.0, 22.0 ], + "patching_rect" : [ 138.0, 98.0, 35.0, 22.0 ], "text" : "r osc" } @@ -1900,8 +1930,8 @@ "id" : "obj-45", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "", "bang", "int" ], + "numoutlets" : 2, + "outlettype" : [ "", "int" ], "patcher" : { "fileversion" : 1, "appversion" : { @@ -1913,15 +1943,133 @@ } , "classnamespace" : "box", - "rect" : [ 59.0, 87.0, 1138.0, 519.0 ], + "rect" : [ 748.0, 457.0, 1138.0, 519.0 ], "gridsize" : [ 15.0, 15.0 ], "boxes" : [ { + "box" : { + "id" : "obj-34", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 9, + "minor" : 0, + "revision" : 6, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 0.0, 0.0, 1000.0, 780.0 ], + "gridsize" : [ 15.0, 15.0 ], + "boxes" : [ { + "box" : { + "id" : "obj-27", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 50.0, 100.0, 24.0, 24.0 ] + } + + } +, { + "box" : { + "id" : "obj-22", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patching_rect" : [ 50.0, 189.0, 129.0, 22.0 ], + "text" : "o.prepend /main/metro" + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patching_rect" : [ 50.0, 157.0, 83.0, 22.0 ], + "text" : "o.pack /status" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-30", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-33", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 50.0, 271.0, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-33", 0 ], + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-27", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-27", 0 ], + "source" : [ "obj-30", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 638.0, 238.0, 66.0, 22.0 ], + "text" : "p playback" + } + + } +, { "box" : { "id" : "obj-26", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 793.0, 216.0, 37.0, 22.0 ], + "patching_rect" : [ 793.0, 345.0, 37.0, 22.0 ], "text" : "s osc" } @@ -1933,7 +2081,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 754.5, 139.0, 167.0, 22.0 ], + "patching_rect" : [ 793.0, 160.0, 167.0, 22.0 ], "text" : "cleared contents of global dict" } @@ -1945,7 +2093,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 793.0, 174.0, 95.0, 22.0 ], + "patching_rect" : [ 793.0, 195.0, 95.0, 22.0 ], "text" : "o.pack /key/msg" } @@ -1957,7 +2105,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 754.5, 111.0, 215.0, 22.0 ], + "patching_rect" : [ 793.0, 132.0, 215.0, 22.0 ], "text" : "started/stopped playback of sequencer" } @@ -1969,7 +2117,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 754.5, 55.0, 178.0, 22.0 ], + "patching_rect" : [ 793.0, 76.0, 178.0, 22.0 ], "text" : "recalled presets from global dict" } @@ -1981,7 +2129,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 754.5, 82.0, 131.0, 22.0 ], + "patching_rect" : [ 793.0, 103.0, 131.0, 22.0 ], "text" : "wrote preset file to disk" } @@ -2002,7 +2150,7 @@ "box" : { "comment" : "", "id" : "obj-24", - "index" : 3, + "index" : 2, "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, @@ -2080,18 +2228,6 @@ "text" : "t l l" } - } -, { - "box" : { - "comment" : "", - "id" : "obj-1", - "index" : 2, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 470.0, 452.0, 22.0, 22.0 ] - } - } , { "box" : { @@ -2401,13 +2537,13 @@ "box" : { "fontface" : 0, "id" : "obj-26", - "linecount" : 23, + "linecount" : 26, "maxclass" : "o.display", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 50.0, 100.0, 487.0, 315.0 ], - "text" : "/engine/1/sequencer/speed : 1.,\n/engine/1/sequencer/density : 0.09,\n/engine/1/sequencer/variety : 0.4,\n/engine/1/sequencer/auxsend : 0.,\n/engine/1/sequencer/spacing/range : [1.2, 4.],\n/engine/1/sequencer/gain/range : [0.8, 1.2],\n/engine/1/sequencer/trajspeed/range : [20., 80.],\n/engine/1/sequencer/loop/status : 0,\n/engine/1/sequencer/loop/wind : 0.086,\n/engine/1/sequencer/cat : \"blackgrosbeak\",\n/engine/1/sequencer/audiofile/textbox : \"blackgrosbeak\",\n/engine/1/polybuf/path : \"Macintosh HD:/Users/jml/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/Shaker/\",\n/engine/1/zone/engine/gain : 0.,\n/engine/1/zone/aux/gain : 0,\n/engine/1/zone/voice/gain : 84,\n/engine/1/sequencer/steps : [1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0],\n/engine/1/path : \"Macintosh HD:/Users/jml/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/CelloHaiku/\"" + "text" : "/engine/1/sequencer/speed : 1.,\n/engine/1/sequencer/density : 0.09,\n/engine/1/sequencer/variety : 0.4,\n/engine/1/sequencer/auxsend : 0.,\n/engine/1/sequencer/spacing/range : [1.2, 4.],\n/engine/1/sequencer/gain/range : [0.8, 1.2],\n/engine/1/sequencer/trajspeed/range : [20., 80.],\n/engine/1/sequencer/loop/status : 0,\n/engine/1/sequencer/loop/wind : 0.086,\n/engine/1/sequencer/cat : \"blackgrosbeak\",\n/engine/1/sequencer/audiofile/textbox : \"blackgrosbeak\",\n/engine/1/polybuf/path : \"Macintosh HD:/Users/jml/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/Shaker/\",\n/engine/1/zone/engine/gain : 0.,\n/main/metro/interval/sec : 60.,\n/main/metro/status : 1,\n/engine/1/zone/aux/gain : 0,\n/engine/1/zone/voice/gain : 84,\n/engine/1/sequencer/steps : [1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0],\n/engine/1/path : \"Macintosh HD:/Users/jml/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/CelloHaiku/\",\n/main/metro/interfal/sec : 60." } } @@ -2825,6 +2961,13 @@ "source" : [ "obj-31", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-26", 0 ], + "source" : [ "obj-34", 0 ] + } + } , { "patchline" : { @@ -2855,14 +2998,6 @@ "source" : [ "obj-4", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "order" : 1, - "source" : [ "obj-5", 2 ] - } - } , { "patchline" : { @@ -2895,6 +3030,14 @@ "source" : [ "obj-5", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-34", 0 ], + "order" : 1, + "source" : [ "obj-5", 2 ] + } + } , { "patchline" : { @@ -3011,20 +3154,6 @@ "viewvisibility" : 1 } - } -, { - "box" : { - "id" : "obj-12", - "maxclass" : "toggle", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 263.0, 166.0, 24.0, 24.0 ], - "presentation" : 1, - "presentation_rect" : [ 29.0, 35.0, 24.0, 24.0 ] - } - } ], "lines" : [ { @@ -3043,22 +3172,22 @@ } , { "patchline" : { - "destination" : [ "obj-54", 0 ], - "source" : [ "obj-12", 0 ] + "destination" : [ "obj-16", 0 ], + "source" : [ "obj-14", 0 ] } } , { "patchline" : { - "destination" : [ "obj-16", 0 ], - "source" : [ "obj-14", 0 ] + "destination" : [ "obj-21", 0 ], + "source" : [ "obj-18", 0 ] } } , { "patchline" : { - "destination" : [ "obj-21", 0 ], - "source" : [ "obj-18", 0 ] + "destination" : [ "obj-54", 0 ], + "source" : [ "obj-18", 2 ] } } @@ -3303,13 +3432,6 @@ "source" : [ "obj-44", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-12", 0 ], - "source" : [ "obj-45", 1 ] - } - } , { "patchline" : { @@ -3376,13 +3498,6 @@ "source" : [ "obj-64", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-54", 1 ], - "source" : [ "obj-65", 0 ] - } - } , { "patchline" : { -- 2.34.1