From 5d8dcd7c70a84a72ec277d8304abea2e3e9ee9af Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Sat, 26 Apr 2025 12:14:34 -0700 Subject: [PATCH] updated to allow for dynamic input of the number of sources, as well as a bunch of updates for the internal comms of spat sources. voicing for poly~ instance has been updated to new method --- engine_zone~.maxpat | 1100 +++++++++---------------------------------- 1 file changed, 235 insertions(+), 865 deletions(-) diff --git a/engine_zone~.maxpat b/engine_zone~.maxpat index 7a93576..20c5c02 100644 --- a/engine_zone~.maxpat +++ b/engine_zone~.maxpat @@ -10,91 +10,31 @@ } , "classnamespace" : "box", - "rect" : [ 82.0, 87.0, 1193.0, 779.0 ], + "rect" : [ 60.0, 104.0, 1193.0, 779.0 ], "openinpresentation" : 1, "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { "box" : { - "id" : "obj-9", + "id" : "obj-2", "maxclass" : "newobj", - "numinlets" : 0, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 9, - "minor" : 0, - "revision" : 6, - "architecture" : "x64", - "modernui" : 1 - } -, - "classnamespace" : "box", - "rect" : [ 0.0, 0.0, 1000.0, 700.0 ], - "gridsize" : [ 15.0, 15.0 ], - "subpatcher_template" : "Untitled5_template", - "boxes" : [ { - "box" : { - "id" : "obj-9", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "patching_rect" : [ 50.0, 100.0, 58.0, 22.0 ], - "text" : "loadbang" - } - - } -, { - "box" : { - "fontface" : 0, - "id" : "obj-6", - "linecount" : 7, - "maxclass" : "o.compose", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 50.0, 135.5, 163.0, 100.0 ], - "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -128, 47, 115, 112, 101, 97, 107, 101, 114, 115, 47, 120, 121, 0, 0, 0, 0, 44, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, -65, -9, 92, 32, -110, 71, 37, -66, 63, -9, -27, 117, 58, 63, 41, 73, -65, -20, 123, 2, -43, -99, -45, 41, 63, -9, -27, 117, 58, 63, 41, 73, 63, -24, 98, 77, -46, -14, 21, 58, 63, -9, -27, 117, 58, 63, 41, 73, 63, -11, -14, 18, -41, 115, 121, -127, 63, -9, -27, 117, 58, 63, 41, 73, -65, -4, 110, -122, -58, 88, -69, -111, -65, -9, 104, -100, -95, -116, 61, 86, 63, -4, -84, -13, 18, -78, 49, -118, -65, -9, 104, -100, -95, -116, 61, 86 ], - "saved_bundle_length" : 148, - "text" : "/speakers/xy : [-1.45999, 1.49352, -0.890016, 1.49352, 0.762, 1.49352, 1.3716, 1.49352, -1.77698, -1.46304, 1.79222, -1.46304]" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-7", - "index" : 1, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 50.0, 295.5, 30.0, 30.0 ] - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-7", 0 ], - "source" : [ "obj-6", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-6", 0 ], - "source" : [ "obj-9", 0 ] - } + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 265.0, 219.5, 87.0, 22.0 ], + "text" : "o.route /voices" + } - } - ] - } -, - "patching_rect" : [ 642.5, 372.0, 115.0, 22.0 ], - "text" : "p speaker_locations" + } +, { + "box" : { + "id" : "obj-7", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 425.0, 53.0, 221.0, 47.0 ], + "text" : "arg1: aux destination \narg2: patchername to load (voice patch)\narg3: number of voices" } } @@ -105,7 +45,7 @@ "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "bang", "" ], - "patching_rect" : [ 421.0, 163.0, 34.0, 22.0 ], + "patching_rect" : [ 421.0, 174.0, 34.0, 22.0 ], "text" : "sel 0" } @@ -117,7 +57,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 421.0, 125.0, 170.0, 22.0 ], + "patching_rect" : [ 421.0, 148.0, 170.0, 22.0 ], "text" : "loadmess #2" } @@ -133,30 +73,6 @@ "text" : "prepend patchername" } - } -, { - "box" : { - "id" : "obj-3", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 4, - "outlettype" : [ "int", "int", "int", "list" ], - "patching_rect" : [ 741.0, 141.0, 50.5, 22.0 ], - "text" : "poly" - } - - } -, { - "box" : { - "id" : "obj-2", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 678.0, 141.0, 44.0, 22.0 ], - "text" : "bucket" - } - } , { "box" : { @@ -177,42 +93,45 @@ } , "classnamespace" : "box", - "rect" : [ 59.0, 106.0, 320.0, 430.0 ], + "rect" : [ 289.0, 199.0, 383.0, 325.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { "box" : { - "id" : "obj-1", - "maxclass" : "newobj", - "numinlets" : 1, + "fontface" : 0, + "id" : "obj-5", + "maxclass" : "o.compose", + "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 169.0, 300.0, 79.0, 22.0 ], - "text" : "prepend note" + "patching_rect" : [ 26.0, 165.0, 113.0, 23.0 ], + "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 47, 118, 111, 105, 99, 101, 115, 47, 42, 47, 115, 116, 111, 112, 0, 0, 44, 0, 0, 0 ], + "saved_bundle_length" : 40, + "text" : "/voices/*/stop" } } , { "box" : { - "id" : "obj-3", - "maxclass" : "message", - "numinlets" : 2, + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 158.0, 180.0, 49.0, 22.0 ], - "text" : "target 0" + "outlettype" : [ "bang" ], + "patching_rect" : [ 26.0, 112.0, 22.0, 22.0 ], + "text" : "t b" } } , { "box" : { - "id" : "obj-6", + "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "patching_rect" : [ 50.0, 149.0, 127.0, 22.0 ], - "text" : "t l b" + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 160.0, 165.5, 174.0, 22.0 ], + "text" : "engine_voice.roundrobin #3" } } @@ -223,9 +142,9 @@ "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, - "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 50.0, 119.0, 91.0, 21.0 ], - "text" : "o.select /stop" + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 26.0, 79.0, 153.0, 21.0 ], + "text" : "o.if exists(/stop)" } } @@ -238,7 +157,7 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ] + "patching_rect" : [ 26.0, 29.0, 30.0, 30.0 ] } } @@ -250,7 +169,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 41.0, 343.0, 30.0, 30.0 ] + "patching_rect" : [ 26.0, 230.0, 30.0, 30.0 ] } } @@ -264,22 +183,15 @@ } , { "patchline" : { - "destination" : [ "obj-14", 0 ], - "source" : [ "obj-3", 0 ] + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-4", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], - "source" : [ "obj-6", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-3", 0 ], - "source" : [ "obj-6", 1 ] + "source" : [ "obj-5", 0 ] } } @@ -292,7 +204,7 @@ } , { "patchline" : { - "destination" : [ "obj-6", 0 ], + "destination" : [ "obj-4", 0 ], "source" : [ "obj-7", 0 ] } @@ -447,7 +359,7 @@ ] } , - "patching_rect" : [ 136.0, 245.0, 49.0, 21.0 ], + "patching_rect" : [ 48.0, 220.0, 49.0, 21.0 ], "text" : "p query" } @@ -536,9 +448,9 @@ "box" : { "id" : "obj-50", "maxclass" : "newobj", - "numinlets" : 1, + "numinlets" : 0, "numoutlets" : 1, - "outlettype" : [ "" ], + "outlettype" : [ "FullPacket" ], "patcher" : { "fileversion" : 1, "appversion" : { @@ -550,40 +462,43 @@ } , "classnamespace" : "box", - "rect" : [ 789.0, 163.0, 1000.0, 780.0 ], + "rect" : [ 791.0, 232.0, 520.0, 379.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { "box" : { - "comment" : "", - "id" : "obj-14", - "index" : 1, - "maxclass" : "inlet", - "numinlets" : 0, + "fontface" : 0, + "id" : "obj-5", + "maxclass" : "o.compose", + "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 318.0, 73.0, 22.0, 22.0 ] + "patching_rect" : [ 165.04854142665863, 152.427182376384735, 113.0, 23.0 ], + "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 47, 115, 111, 117, 114, 99, 101, 47, 42, 47, 115, 116, 111, 112, 0, 0, 44, 0, 0, 0 ], + "saved_bundle_length" : 40, + "text" : "/source/*/stop" } } , { "box" : { - "comment" : "", - "id" : "obj-13", - "index" : 1, - "maxclass" : "outlet", + "id" : "obj-1", + "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 321.0, 449.0, 22.0, 22.0 ] + "numoutlets" : 2, + "outlettype" : [ "int", "int" ], + "patching_rect" : [ 30.09708696603775, 99.99999862909317, 316.087374567985535, 22.0 ], + "text" : "t i i" } } , { "box" : { - "id" : "obj-12", + "id" : "obj-9", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], "patcher" : { "fileversion" : 1, "appversion" : { @@ -595,590 +510,111 @@ } , "classnamespace" : "box", - "rect" : [ 59.0, 106.0, 1000.0, 780.0 ], + "rect" : [ 169.0, 327.0, 448.0, 494.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { - "box" : { - "id" : "obj-6", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 140.0, 186.0, 35.0, 22.0 ], - "text" : "o.var" - } - - } -, { - "box" : { - "id" : "obj-5", - "maxclass" : "toggle", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 223.0, 70.0, 24.0, 24.0 ] - } - - } -, { - "box" : { - "id" : "obj-1", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 190.0, 146.0, 32.0, 22.0 ], - "text" : "gate" - } - - } -, { - "box" : { - "fontface" : 0, - "id" : "obj-4", - "maxclass" : "o.display", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 136.0, 276.0, 390.0, 328.0 ] - } - - } -, { - "box" : { - "id" : "obj-2", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 136.0, 223.0, 54.0, 22.0 ], - "text" : "o.accum" - } - - } -, { "box" : { "comment" : "", - "id" : "obj-11", + "id" : "obj-1", "index" : 1, "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ] - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-6", 0 ], - "source" : [ "obj-1", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 1 ], - "source" : [ "obj-11", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-4", 0 ], - "source" : [ "obj-2", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "source" : [ "obj-5", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-2", 0 ], - "source" : [ "obj-6", 0 ] - } - - } - ] - } -, - "patching_rect" : [ 87.0, 420.0, 79.0, 22.0 ], - "text" : "p gated_view" - } - - } -, { - "box" : { - "id" : "obj-10", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "patching_rect" : [ 492.0, 73.0, 58.0, 22.0 ], - "text" : "loadbang" - } - - } -, { - "box" : { - "id" : "obj-6", - "maxclass" : "newobj", - "numinlets" : 0, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 9, - "minor" : 0, - "revision" : 6, - "architecture" : "x64", - "modernui" : 1 - } -, - "classnamespace" : "box", - "rect" : [ 59.0, 106.0, 1000.0, 780.0 ], - "gridsize" : [ 15.0, 15.0 ], - "subpatcher_template" : "Untitled5_template", - "boxes" : [ { - "box" : { - "id" : "obj-51", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 50.0, 166.0, 83.0, 22.0 ], - "text" : "o.pack /speed" - } - - } -, { - "box" : { - "focusbordercolor" : [ 0.0, 0.019608, 0.078431, 0.0 ], - "id" : "obj-24", - "maxclass" : "live.dial", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "float" ], - "parameter_enable" : 1, - "patching_rect" : [ 50.0, 100.0, 44.0, 48.0 ], - "presentation" : 1, - "presentation_rect" : [ 166.0, 65.0, 44.0, 48.0 ], - "saved_attribute_attributes" : { - "focusbordercolor" : { - "expression" : "" - } -, - "valueof" : { - "parameter_initial" : [ 50 ], - "parameter_initial_enable" : 1, - "parameter_longname" : "live.dial[15]", - "parameter_mmax" : 20.0, - "parameter_modmode" : 0, - "parameter_shortname" : "speed", - "parameter_type" : 0, - "parameter_unitstyle" : 1 - } - - } -, - "varname" : "live.dial[16]" - } - - } -, { - "box" : { - "id" : "obj-49", - "linecount" : 5, - "maxclass" : "comment", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 412.0, 194.0, 95.0, 74.0 ], - "text" : "rate of updates internal to trajectory generator; 30 is a good default" - } - - } -, { - "box" : { - "id" : "obj-43", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 229.0, 232.0, 97.0, 22.0 ], - "text" : "o.pack /source/4" - } - - } -, { - "box" : { - "fontface" : 0, - "id" : "obj-40", - "maxclass" : "o.compose", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 148.0, 150.0, 73.0, 23.0 ], - "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 47, 115, 116, 97, 114, 116, 0, 0, 44, 0, 0, 0 ], - "saved_bundle_length" : 32, - "text" : "/start" - } - - } -, { - "box" : { - "fontface" : 0, - "id" : "obj-39", - "maxclass" : "o.compose", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 148.0, 171.0, 73.0, 23.0 ], - "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 47, 115, 116, 111, 112, 0, 0, 0, 44, 0, 0, 0 ], - "saved_bundle_length" : 32, - "text" : "/stop" + "outlettype" : [ "int" ], + "patching_rect" : [ 54.0, 25.0, 30.0, 30.0 ] } } , { "box" : { "fontface" : 0, - "id" : "obj-38", - "maxclass" : "o.compose", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 148.0, 194.0, 73.0, 23.0 ], - "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 47, 114, 101, 115, 116, 97, 114, 116, 0, 0, 0, 0, 44, 0, 0, 0 ], - "saved_bundle_length" : 36, - "text" : "/restart" - } - - } -, { - "box" : { - "fontname" : "Arial", - "fontsize" : 11.0, - "id" : "obj-14", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 326.0, 134.0, 42.0, 21.0 ], - "text" : "0. 0. 0." - } - - } -, { - "box" : { - "id" : "obj-36", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 326.0, 166.0, 69.0, 22.0 ], - "text" : "o.pack /xyz" - } - - } -, { - "box" : { - "id" : "obj-64", - "maxclass" : "live.menu", - "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "", "", "float" ], - "parameter_enable" : 1, - "patching_rect" : [ 189.0, 125.0, 100.0, 15.0 ], - "saved_attribute_attributes" : { - "valueof" : { - "parameter_enum" : [ "circle", "ellipse", "figureof8", "dumbbell", "rose", "epicycloid", "hypocycloid", "hippopede", "garfield", "freethnephroid", "limacon", "folium", "ophiuride", "lituus", "scarabeus", "cochleoid", "bifoliate", "bifolium", "neoid", "cayleysextic", "strophoid", "cranioid", "seiffert", "butterfly", "piriform", "heart", "cardioid", "lemniscate", "astroid", "deltoid", "boatpropeller", "kiss", "trefoil", "torpedo", "cevatrisectrix", "polygasteroid", "maltesecross", "talbot", "besace", "bicorn", "oval", "cornoid" ], - "parameter_longname" : "live.menu[1]", - "parameter_mmax" : 41, - "parameter_modmode" : 0, - "parameter_shortname" : "live.menu", - "parameter_type" : 2 - } - - } -, - "varname" : "live.menu[1]" - } - - } -, { - "box" : { - "id" : "obj-33", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 229.0, 166.0, 73.0, 22.0 ], - "text" : "o.pack /type" - } - - } -, { - "box" : { - "id" : "obj-20", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 499.0, 166.0, 83.0, 22.0 ], - "text" : "o.pack /radius" - } - - } -, { - "box" : { - "focusbordercolor" : [ 0.0, 0.019608, 0.078431, 0.0 ], - "id" : "obj-115", - "maxclass" : "live.dial", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "float" ], - "parameter_enable" : 1, - "patching_rect" : [ 499.0, 100.0, 44.0, 48.0 ], - "presentation" : 1, - "presentation_rect" : [ 257.0, 110.0, 44.0, 48.0 ], - "saved_attribute_attributes" : { - "focusbordercolor" : { - "expression" : "" - } -, - "valueof" : { - "parameter_initial" : [ 1 ], - "parameter_initial_enable" : 1, - "parameter_longname" : "live.dial[17]", - "parameter_mmax" : 4.0, - "parameter_mmin" : 0.01, - "parameter_modmode" : 0, - "parameter_shortname" : "radius", - "parameter_type" : 0, - "parameter_unitstyle" : 1 - } - - } -, - "varname" : "live.dial[10]" - } - - } -, { - "box" : { - "id" : "obj-48", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 417.0, 166.0, 71.0, 22.0 ], - "text" : "o.pack /rate" - } - - } -, { - "box" : { - "focusbordercolor" : [ 0.0, 0.019608, 0.078431, 0.0 ], - "id" : "obj-9", - "maxclass" : "live.dial", + "id" : "obj-11", + "linecount" : 8, + "maxclass" : "o.expr.codebox", "numinlets" : 1, "numoutlets" : 2, - "outlettype" : [ "", "float" ], - "parameter_enable" : 1, - "patching_rect" : [ 417.0, 100.0, 44.0, 48.0 ], - "presentation" : 1, - "presentation_rect" : [ 135.0, 80.0, 44.0, 48.0 ], - "saved_attribute_attributes" : { - "focusbordercolor" : { - "expression" : "" - } -, - "valueof" : { - "parameter_initial" : [ 20 ], - "parameter_initial_enable" : 1, - "parameter_longname" : "rate[1]", - "parameter_mmax" : 200.0, - "parameter_mmin" : 1.0, - "parameter_modmode" : 0, - "parameter_shortname" : "rate", - "parameter_type" : 0, - "parameter_unitstyle" : 2 - } - - } -, - "varname" : "live.dial[11]" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-5", - "index" : 1, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 229.0, 328.0, 30.0, 30.0 ] - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-20", 0 ], - "source" : [ "obj-115", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-36", 0 ], - "source" : [ "obj-14", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-20", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-51", 0 ], - "source" : [ "obj-24", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-33", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-36", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-38", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-39", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-40", 0 ] + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 54.0, 106.0, 208.0, 121.0 ], + "text" : "/speakers/xy = [\n -1.45999, 1.49352, \n -0.890016, 1.49352, \n 0.762, 1.49352, \n 1.3716, 1.49352, \n -1.77698, -1.46304, \n 1.79222, -1.46304\n]" } } , { - "patchline" : { - "destination" : [ "obj-5", 0 ], - "source" : [ "obj-43", 0 ] + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patching_rect" : [ 54.0, 77.0, 131.0, 22.0 ], + "text" : "o.pack /source/number" } } , { - "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-48", 0 ] + "box" : { + "comment" : "", + "id" : "obj-7", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 54.0, 282.0, 30.0, 30.0 ] } } -, { + ], + "lines" : [ { "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-51", 0 ] + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-1", 0 ] } } , { "patchline" : { - "destination" : [ "obj-33", 0 ], - "source" : [ "obj-64", 1 ] + "destination" : [ "obj-7", 0 ], + "source" : [ "obj-11", 0 ] } } , { "patchline" : { - "destination" : [ "obj-48", 0 ], - "source" : [ "obj-9", 0 ] + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-2", 0 ] } } ] } , - "patching_rect" : [ 340.0, 179.0, 124.0, 22.0 ], - "text" : "p basic_ui_for_voices" - } - - } -, { - "box" : { - "fontface" : 0, - "id" : "obj-58", - "maxclass" : "o.compose", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 123.0, 143.0, 140.0, 23.0 ], - "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 47, 115, 111, 117, 114, 99, 101, 47, 42, 47, 115, 116, 111, 112, 0, 0, 44, 0, 0, 0 ], - "saved_bundle_length" : 40, - "text" : "/source/*/stop" + "patching_rect" : [ 327.184461534023285, 218.446598947048187, 115.0, 22.0 ], + "text" : "p speaker_locations" } } , { "box" : { - "fontface" : 0, - "id" : "obj-53", - "linecount" : 2, - "maxclass" : "o.compose", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 53.0, 195.0, 140.0, 36.0 ], - "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 47, 115, 111, 117, 114, 99, 101, 47, 42, 47, 114, 101, 115, 116, 97, 114, 116, 0, 0, 0, 44, 0, 0, 0, 0, 0, 0, 20, 47, 115, 111, 117, 114, 99, 101, 47, 42, 47, 115, 116, 97, 114, 116, 0, 44, 0, 0, 0 ], - "saved_bundle_length" : 68, - "text" : "/source/*/restart,\n/source/*/start" + "comment" : "", + "id" : "obj-13", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 30.09708696603775, 279.61164665222168, 22.0, 22.0 ] } } , { "box" : { - "id" : "obj-31", - "maxclass" : "button", + "id" : "obj-10", + "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, - "outlettype" : [ "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 492.0, 102.0, 24.0, 24.0 ] + "outlettype" : [ "" ], + "patching_rect" : [ 30.09708696603775, 35.922329604625702, 103.0, 22.0 ], + "text" : "loadmess #3 " } } @@ -1200,10 +636,62 @@ } , "classnamespace" : "box", - "rect" : [ 1140.0, 488.0, 586.0, 441.0 ], + "rect" : [ 1299.0, 284.0, 586.0, 441.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "patching_rect" : [ 79.0, 77.0, 69.0, 22.0 ], + "text" : "t l b" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patching_rect" : [ 79.0, 173.0, 69.0, 22.0 ], + "text" : "o.union" + } + + } +, { + "box" : { + "fontface" : 0, + "id" : "obj-2", + "linecount" : 4, + "maxclass" : "o.compose", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 129.0, 103.0, 153.0, 62.0 ], + "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 47, 115, 108, 111, 119, 101, 115, 116, 0, 0, 0, 0, 44, 105, 0, 0, 0, 0, 0, 5, 0, 0, 0, 28, 47, 114, 97, 116, 101, 47, 115, 112, 114, 101, 97, 100, 0, 0, 0, 0, 44, 100, 0, 0, 64, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 47, 115, 111, 117, 114, 99, 101, 47, 42, 47, 114, 97, 116, 101, 0, 0, 44, 105, 0, 0, 0, 0, 0, 20, 0, 0, 0, 20, 47, 115, 111, 117, 114, 99, 101, 47, 42, 47, 115, 116, 97, 114, 116, 0, 44, 0, 0, 0 ], + "saved_bundle_length" : 124, + "text" : "/slowest : 5,\n/rate/spread : 20.,\n/source/*/rate : 20,\n/source/*/start" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patching_rect" : [ 79.0, 45.0, 116.0, 22.0 ], + "text" : "o.pack /numsources" + } + + } +, { "box" : { "comment" : "", "id" : "obj-9", @@ -1211,7 +699,7 @@ "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, - "outlettype" : [ "bang" ], + "outlettype" : [ "int" ], "patching_rect" : [ 79.0, 14.0, 21.0, 21.0 ] } @@ -1224,23 +712,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 79.0, 383.0, 21.0, 21.0 ] - } - - } -, { - "box" : { - "fontface" : 0, - "id" : "obj-2", - "linecount" : 5, - "maxclass" : "o.compose", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 79.0, 59.0, 153.0, 75.0 ], - "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 47, 110, 117, 109, 115, 111, 117, 114, 99, 101, 115, 0, 44, 105, 0, 0, 0, 0, 0, 24, 0, 0, 0, 20, 47, 115, 108, 111, 119, 101, 115, 116, 0, 0, 0, 0, 44, 105, 0, 0, 0, 0, 0, 5, 0, 0, 0, 28, 47, 114, 97, 116, 101, 47, 115, 112, 114, 101, 97, 100, 0, 0, 0, 0, 44, 100, 0, 0, 64, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 47, 115, 111, 117, 114, 99, 101, 47, 42, 47, 114, 97, 116, 101, 0, 0, 44, 105, 0, 0, 0, 0, 0, 20, 0, 0, 0, 20, 47, 115, 111, 117, 114, 99, 101, 47, 42, 47, 115, 116, 97, 114, 116, 0, 44, 0, 0, 0 ], - "saved_bundle_length" : 148, - "text" : "/numsources : 24,\n/slowest : 5,\n/rate/spread : 20.,\n/source/*/rate : 20,\n/source/*/start" + "patching_rect" : [ 79.0, 407.0, 21.0, 21.0 ] } } @@ -1253,7 +725,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 79.0, 145.0, 448.0, 198.0 ], + "patching_rect" : [ 79.0, 201.0, 448.0, 198.0 ], "text" : "/idx = aseq(0, /numsources - 1), \n/scaled = (/idx * (1. / (/numsources - 1))) * /rate/spread, \n/rates = /slowest + /scaled,\nmap(\n lambda([i,v,f], \n progn(\n assign(\"/source/\" + i + \"/speed\", v),\n assign(\"/source/\" + i + \"/radius\", f)\n )\n ), \n /idx + 1, /rates, (/idx + 1) * 0.1\n), \ndelete(/rate/spread, /numsources),\ndelete(/slowest, /idx, /scaled, /rates)" } @@ -1261,7 +733,7 @@ ], "lines" : [ { "patchline" : { - "destination" : [ "obj-3", 0 ], + "destination" : [ "obj-5", 1 ], "source" : [ "obj-2", 0 ] } @@ -1272,10 +744,38 @@ "source" : [ "obj-3", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "source" : [ "obj-5", 0 ] + } + } , { "patchline" : { "destination" : [ "obj-2", 0 ], + "source" : [ "obj-6", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], "source" : [ "obj-9", 0 ] } @@ -1283,46 +783,10 @@ ] } , - "patching_rect" : [ 492.0, 179.0, 121.0, 22.0 ], + "patching_rect" : [ 30.09708696603775, 152.427182376384735, 121.0, 22.0 ], "text" : "p spat_oper_defaults" } - } -, { - "box" : { - "id" : "obj-46", - "maxclass" : "button", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 384.0, 237.0, 24.0, 24.0 ] - } - - } -, { - "box" : { - "id" : "obj-22", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 412.0, 238.0, 50.0, 22.0 ] - } - - } -, { - "box" : { - "id" : "obj-19", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 412.0, 265.0, 52.0, 22.0 ], - "text" : "open $1" - } - } , { "box" : { @@ -1331,62 +795,36 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 321.0, 300.0, 223.0, 22.0 ], - "text" : "poly~ spat_trajectory_group @voices 24" - } - - } -, { - "box" : { - "id" : "obj-28", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 329.0, 265.0, 49.0, 22.0 ], - "text" : "target 0" - } - - } -, { - "box" : { - "id" : "obj-26", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "patching_rect" : [ 318.0, 230.0, 29.5, 22.0 ], - "text" : "t l b" + "patching_rect" : [ 30.09708696603775, 218.446598947048187, 283.0, 22.0 ], + "text" : "poly~ spat_trajectory_group @voices #3 @target 0" } } ], "lines" : [ { "patchline" : { - "destination" : [ "obj-31", 0 ], - "source" : [ "obj-10", 0 ] + "destination" : [ "obj-52", 0 ], + "source" : [ "obj-1", 0 ] } } , { "patchline" : { - "destination" : [ "obj-26", 0 ], - "source" : [ "obj-14", 0 ] + "destination" : [ "obj-9", 0 ], + "source" : [ "obj-1", 1 ] } } , { "patchline" : { - "destination" : [ "obj-12", 0 ], - "order" : 1, - "source" : [ "obj-17", 0 ] + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-10", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 0 ], - "order" : 0, "source" : [ "obj-17", 0 ] } @@ -1394,85 +832,29 @@ , { "patchline" : { "destination" : [ "obj-17", 0 ], - "source" : [ "obj-19", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-19", 0 ], - "source" : [ "obj-22", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-17", 0 ], - "source" : [ "obj-26", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-28", 0 ], - "source" : [ "obj-26", 1 ] + "source" : [ "obj-5", 0 ] } } , { "patchline" : { "destination" : [ "obj-17", 0 ], - "source" : [ "obj-28", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-52", 0 ], - "source" : [ "obj-31", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-22", 0 ], - "source" : [ "obj-46", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-26", 0 ], "source" : [ "obj-52", 0 ] } } , { "patchline" : { - "destination" : [ "obj-26", 0 ], - "source" : [ "obj-53", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-26", 0 ], - "source" : [ "obj-58", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-26", 0 ], - "source" : [ "obj-6", 0 ] + "destination" : [ "obj-13", 0 ], + "source" : [ "obj-9", 0 ] } } ] } , - "patching_rect" : [ 492.0, 372.0, 133.0, 22.0 ], - "text" : "p spat_trajectory_setup" + "patching_rect" : [ 492.0, 372.0, 108.0, 22.0 ], + "text" : "p spat_oper_setup" } } @@ -1484,8 +866,8 @@ "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "multichannelsignal", "", "" ], - "patching_rect" : [ 48.0, 284.0, 331.0, 21.0 ], - "text" : "mc.poly~ engine_voice.dummy~ @voices 24 @steal 1 @args #1 " + "patching_rect" : [ 48.0, 284.0, 441.0, 21.0 ], + "text" : "mc.poly~ engine_voice.dummy~ @voices #3 @steal 1 @args #1 @target 0" } } @@ -1809,7 +1191,7 @@ "parameter_enable" : 0 } , - "text" : "spat5.spat~ @inputs 24 @mode mono @mc 1 @outputs 6 @internals 8 @initwith \"/panning/type angular\"" + "text" : "spat5.spat~ @inputs #3 @mode mono @mc 1 @outputs 6 @internals 8 @initwith \"/panning/type angular\"" } } @@ -1821,12 +1203,12 @@ "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "", "", "", "" ], - "patching_rect" : [ 432.0, 471.0, 374.0, 21.0 ], + "patching_rect" : [ 432.0, 471.0, 276.0, 21.0 ], "saved_object_attributes" : { "parameter_enable" : 0 } , - "text" : "spat5.oper @internals 8 @initwith \"/source/number 24, /speaker/number 6\"" + "text" : "spat5.oper @internals 8 @initwith \"/speaker/number 6\"" } } @@ -1931,10 +1313,17 @@ } , { "patchline" : { - "destination" : [ "obj-23", 0 ], + "destination" : [ "obj-2", 0 ], "source" : [ "obj-18", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-23", 0 ], + "source" : [ "obj-2", 0 ] + } + } , { "patchline" : { @@ -2114,20 +1503,9 @@ "source" : [ "obj-8", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-9", 0 ] - } - } ], "parameters" : { - "obj-50::obj-6::obj-115" : [ "live.dial[17]", "radius", 0 ], - "obj-50::obj-6::obj-24" : [ "live.dial[15]", "speed", 0 ], - "obj-50::obj-6::obj-64" : [ "live.menu[1]", "live.menu", 0 ], - "obj-50::obj-6::obj-9" : [ "rate[1]", "rate", 0 ], "obj-60" : [ "engine_voices", "engine_voices", 0 ], "obj-67" : [ "zone_gain", "zone_gain", 0 ], "parameterbanks" : { @@ -2150,9 +1528,9 @@ "implicit" : 1 } , { - "name" : "o.accum.maxpat", - "bootpath" : "~/Documents/Max 9/Packages/odot/patchers/namespace", - "patcherrelativepath" : "../../../Max 9/Packages/odot/patchers/namespace", + "name" : "engine_voice.roundrobin.maxpat", + "bootpath" : "~/Documents/programming/git_repositories/sonogarden_maxproj", + "patcherrelativepath" : ".", "type" : "JSON", "implicit" : 1 } @@ -2161,11 +1539,11 @@ "type" : "iLaX" } , { - "name" : "o.display.mxo", + "name" : "o.expr.codebox.mxo", "type" : "iLaX" } , { - "name" : "o.expr.codebox.mxo", + "name" : "o.if.mxo", "type" : "iLaX" } , { @@ -2176,18 +1554,10 @@ "name" : "o.route.mxo", "type" : "iLaX" } -, { - "name" : "o.select.mxo", - "type" : "iLaX" - } , { "name" : "o.union.mxo", "type" : "iLaX" } -, { - "name" : "o.var.mxo", - "type" : "iLaX" - } , { "name" : "spat5.oper.mxo", "type" : "iLaX" -- 2.34.1