From 58aabdb18e70b77a0b63a9d20ee5cdd44bc98fd1 Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Sat, 7 Jun 2025 15:04:05 -0700 Subject: [PATCH] added gain scalar for engine audio output --- engine_zone~.maxpat | 138 +++++++++++++++++++++++++++++++++----------- 1 file changed, 104 insertions(+), 34 deletions(-) diff --git a/engine_zone~.maxpat b/engine_zone~.maxpat index 01537cd..6e8711d 100644 --- a/engine_zone~.maxpat +++ b/engine_zone~.maxpat @@ -10,7 +10,7 @@ } , "classnamespace" : "box", - "rect" : [ 104.0, 87.0, 1069.0, 779.0 ], + "rect" : [ 104.0, 87.0, 1069.0, 744.0 ], "openinpresentation" : 1, "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", @@ -46,8 +46,8 @@ "id" : "obj-21", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "" ], "patcher" : { "fileversion" : 1, "appversion" : { @@ -59,17 +59,65 @@ } , "classnamespace" : "box", - "rect" : [ 59.0, 106.0, 1000.0, 780.0 ], + "rect" : [ 59.0, 87.0, 1000.0, 744.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 55.5, 252.0, 39.0, 22.0 ], + "text" : "atodb" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "float" ], + "patching_rect" : [ 55.5, 146.0, 66.0, 22.0 ], + "text" : "* 1." + } + + } +, { + "box" : { + "id" : "obj-3", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "FullPacket" ], + "patching_rect" : [ 55.0, 105.0, 114.0, 22.0 ], + "text" : "o.route /gain /scalar" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-2", + "index" : 2, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 259.0, 335.0, 30.0, 30.0 ] + } + + } +, { "box" : { "id" : "obj-4", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 50.0, 100.0, 115.0, 22.0 ], + "patching_rect" : [ 55.5, 295.0, 115.0, 22.0 ], "text" : "o.pack /*/outputgain" } @@ -83,7 +131,7 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ] + "patching_rect" : [ 55.0, 33.0, 30.0, 30.0 ] } } @@ -95,17 +143,47 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 50.0, 182.0, 30.0, 30.0 ] + "patching_rect" : [ 55.5, 335.0, 30.0, 30.0 ] } } ], "lines" : [ { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "order" : 0, + "source" : [ "obj-1", 0 ] + } + + } +, { "patchline" : { "destination" : [ "obj-4", 0 ], + "order" : 1, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], "source" : [ "obj-13", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-5", 1 ], + "source" : [ "obj-3", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-3", 0 ] + } + } , { "patchline" : { @@ -113,11 +191,18 @@ "source" : [ "obj-4", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-5", 0 ] + } + } ] } , - "patching_rect" : [ 179.0, 223.0, 37.0, 22.0 ], + "patching_rect" : [ 193.0, 157.0, 37.0, 22.0 ], "text" : "p osc" } @@ -210,7 +295,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 433.0, 323.0, 128.0, 22.0 ], + "patching_rect" : [ 329.0, 370.0, 128.0, 22.0 ], "text" : "loadmess channels #3" } @@ -805,7 +890,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 470.0, 168.0, 181.0, 33.0 ], - "text" : "/source/*/rate : 20,\n/source/1/speed : -14.1209,\n/source/1/radius : 0.1,\n/source/0/speed : 5.87909,\n/source/0/radius : 0." + "text" : "/source/*/rate : 20,\n/source/1/speed : -14.8114,\n/source/1/radius : 0.1,\n/source/0/speed : 5.18862,\n/source/0/radius : 0." } } @@ -1167,19 +1252,6 @@ "patching_rect" : [ 531.0, 745.0, 22.0, 22.0 ] } - } -, { - "box" : { - "fontsize" : 11.0, - "id" : "obj-11", - "maxclass" : "newobj", - "numinlets" : 3, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "patching_rect" : [ 207.0, 164.0, 40.0, 21.0 ], - "text" : "line 0." - } - } , { "box" : { @@ -1227,8 +1299,8 @@ "numinlets" : 1, "numoutlets" : 5, "outlettype" : [ "", "", "", "", "FullPacket" ], - "patching_rect" : [ 69.0, 115.0, 236.0, 21.0 ], - "text" : "o.route /aux/gain /voice/gain /engine/gain /spat" + "patching_rect" : [ 69.0, 115.0, 212.0, 21.0 ], + "text" : "o.route /aux/gain /voice/gain /engine /spat" } } @@ -1372,6 +1444,13 @@ "source" : [ "obj-21", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-60", 0 ], + "source" : [ "obj-21", 1 ] + } + } , { "patchline" : { @@ -1434,7 +1513,6 @@ , { "patchline" : { "destination" : [ "obj-21", 0 ], - "order" : 0, "source" : [ "obj-29", 2 ] } @@ -1445,14 +1523,6 @@ "source" : [ "obj-29", 3 ] } - } -, { - "patchline" : { - "destination" : [ "obj-60", 0 ], - "order" : 1, - "source" : [ "obj-29", 2 ] - } - } , { "patchline" : { -- 2.34.1