From 7927e2ade8e0236791bca6f18e69a5f451b5e509 Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Wed, 7 May 2025 02:16:16 -0700 Subject: [PATCH] clarified voice addressing --- engine_voice.noisewash~.maxhelp | 193 ++++++++++++++++++++++++++++---- engine_voice.noisewash~.maxpat | 18 ++- 2 files changed, 176 insertions(+), 35 deletions(-) diff --git a/engine_voice.noisewash~.maxhelp b/engine_voice.noisewash~.maxhelp index d7751cc..e9153ff 100644 --- a/engine_voice.noisewash~.maxhelp +++ b/engine_voice.noisewash~.maxhelp @@ -10,7 +10,7 @@ } , "classnamespace" : "box", - "rect" : [ 76.0, 87.0, 753.0, 695.0 ], + "rect" : [ 67.0, 125.0, 753.0, 695.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { @@ -23,7 +23,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 458.0, 103.0, 226.0, 75.0 ], - "presentation_linecount" : 5, "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 47, 103, 97, 105, 110, 47, 114, 97, 110, 103, 101, 0, 44, 100, 100, 0, 63, -45, 51, 51, 51, 51, 51, 51, 63, -4, -52, -52, -52, -52, -52, -51, 0, 0, 0, 20, 47, 116, 121, 112, 101, 0, 0, 0, 44, 115, 0, 0, 98, 114, 111, 119, 110, 0, 0, 0, 0, 0, 0, 20, 47, 114, 97, 109, 112, 0, 0, 0, 44, 100, 0, 0, 64, -113, 64, 0, 0, 0, 0, 0, 0, 0, 0, 48, 47, 97, 100, 115, 114, 0, 0, 0, 44, 100, 100, 100, 100, 0, 0, 0, 63, -71, -103, -103, -103, -103, -103, -102, 63, -45, 51, 51, 51, 51, 51, 51, 63, -55, -103, -103, -103, -103, -103, -102, 64, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 47, 100, 117, 114, 97, 116, 105, 111, 110, 47, 115, 101, 99, 0, 0, 0, 44, 100, 0, 0, 64, 8, 0, 0, 0, 0, 0, 0 ], "saved_bundle_length" : 184, "text" : "/gain/range : [0.3, 1.8],\n/type : \"brown\",\n/ramp : 1000.,\n/adsr : [0.1, 0.3, 0.2, 3.],\n/duration/sec : 3." @@ -58,18 +57,19 @@ "box" : { "fontface" : 0, "id" : "obj-26", + "linecount" : 5, "maxclass" : "o.display", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 200.0, 248.0, 228.0, 33.0 ], - "text" : "/stop" + "patching_rect" : [ 200.0, 248.0, 228.0, 85.0 ], + "text" : "/gain/range : [0.3, 1.8],\n/type : \"hugh\",\n/ramp : 1000.,\n/adsr : [0.5, 0., 1., 0.5],\n/duration/sec : 3." } } , { "box" : { - "color" : [ 0.701960784313725, 0.235294117647059, 0.235294117647059, 1.0 ], + "color" : [ 0.407843137254902, 0.407843137254902, 0.407843137254902, 1.0 ], "id" : "obj-14", "maxclass" : "newobj", "numinlets" : 0, @@ -90,35 +90,146 @@ "subpatcher_template" : "Untitled5_template", "boxes" : [ { "box" : { - "id" : "obj-6", - "maxclass" : "ezdac~", + "fontface" : 0, + "id" : "obj-7", + "maxclass" : "o.compose", "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 528.0, 214.0, 54.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" + } + + } +, { + "box" : { + "id" : "obj-14", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 348.0, 662.0, 45.0, 45.0 ] + "patching_rect" : [ 789.0, 404.0, 150.0, 47.0 ], + "text" : "put aux-dest in\ntake stealing off of any voices from any patchers" } } , { "box" : { - "id" : "obj-4", - "maxclass" : "gain~", - "multichannelvariant" : 0, + "id" : "obj-10", + "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, - "outlettype" : [ "signal", "" ], + "outlettype" : [ "", "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 348.0, 502.0, 22.0, 140.0 ] + "patching_rect" : [ 719.0, 326.0, 50.0, 22.0 ] } } , { "box" : { - "id" : "obj-1", + "id" : "obj-8", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 719.0, 354.0, 52.0, 22.0 ], + "text" : "open $1" + } + + } +, { + "box" : { + "id" : "obj-4", "maxclass" : "newobj", "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patching_rect" : [ 352.0, 287.0, 76.0, 22.0 ], + "text" : "o.prepend /4" + } + + } +, { + "box" : { + "channels" : 10, + "id" : "obj-3", + "lastchannelcount" : 10, + "maxclass" : "mc.live.gain~", + "numinlets" : 1, + "numoutlets" : 4, + "outlettype" : [ "multichannelsignal", "", "float", "list" ], + "parameter_enable" : 1, + "patching_rect" : [ 352.0, 432.0, 144.0, 123.0 ], + "saved_attribute_attributes" : { + "valueof" : { + "parameter_longname" : "mc.live.gain~", + "parameter_mmax" : 6.0, + "parameter_mmin" : -70.0, + "parameter_modmode" : 3, + "parameter_shortname" : "mc.live.gain~", + "parameter_type" : 0, + "parameter_unitstyle" : 4 + } + + } +, + "varname" : "live.gain~" + } + + } +, { + "box" : { + "fontface" : 0, + "id" : "obj-5", + "linecount" : 5, + "maxclass" : "o.compose", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 490.0, 92.0, 226.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, 32, 47, 103, 97, 105, 110, 47, 114, 97, 110, 103, 101, 0, 44, 100, 100, 0, 63, -45, 51, 51, 51, 51, 51, 51, 63, -4, -52, -52, -52, -52, -52, -51, 0, 0, 0, 20, 47, 116, 121, 112, 101, 0, 0, 0, 44, 115, 0, 0, 98, 114, 111, 119, 110, 0, 0, 0, 0, 0, 0, 20, 47, 114, 97, 109, 112, 0, 0, 0, 44, 100, 0, 0, 64, -113, 64, 0, 0, 0, 0, 0, 0, 0, 0, 48, 47, 97, 100, 115, 114, 0, 0, 0, 44, 100, 100, 100, 100, 0, 0, 0, 63, -71, -103, -103, -103, -103, -103, -102, 63, -45, 51, 51, 51, 51, 51, 51, 63, -55, -103, -103, -103, -103, -103, -102, 64, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 47, 100, 117, 114, 97, 116, 105, 111, 110, 47, 115, 101, 99, 0, 0, 0, 44, 100, 0, 0, 64, 8, 0, 0, 0, 0, 0, 0 ], + "saved_bundle_length" : 184, + "text" : "/gain/range : [0.3, 1.8],\n/type : \"brown\",\n/ramp : 1000.,\n/adsr : [0.1, 0.3, 0.2, 3.],\n/duration/sec : 3." + } + + } +, { + "box" : { + "fontface" : 0, + "id" : "obj-2", + "linecount" : 5, + "maxclass" : "o.compose", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 232.0, 92.0, 226.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, 32, 47, 103, 97, 105, 110, 47, 114, 97, 110, 103, 101, 0, 44, 100, 100, 0, 63, -45, 51, 51, 51, 51, 51, 51, 63, -16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 47, 116, 121, 112, 101, 0, 0, 0, 44, 115, 0, 0, 104, 117, 103, 104, 0, 0, 0, 0, 0, 0, 0, 20, 47, 114, 97, 109, 112, 0, 0, 0, 44, 100, 0, 0, 64, -113, 64, 0, 0, 0, 0, 0, 0, 0, 0, 48, 47, 97, 100, 115, 114, 0, 0, 0, 44, 100, 100, 100, 100, 0, 0, 0, 63, -71, -103, -103, -103, -103, -103, -102, 63, -45, 51, 51, 51, 51, 51, 51, 63, -55, -103, -103, -103, -103, -103, -102, 64, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 47, 100, 117, 114, 97, 116, 105, 111, 110, 47, 115, 101, 99, 0, 0, 0, 44, 100, 0, 0, 64, 62, 0, 0, 0, 0, 0, 0 ], + "saved_bundle_length" : 184, + "text" : "/gain/range : [0.3, 1.],\n/type : \"hugh\",\n/ramp : 1000.,\n/adsr : [0.1, 0.3, 0.2, 3.],\n/duration/sec : 30." + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "ezdac~", + "numinlets" : 2, "numoutlets" : 0, - "patching_rect" : [ 348.0, 465.0, 236.0, 22.0 ], - "text" : "poly~ engine_voice~ @voices 10 @steal 1" + "patching_rect" : [ 352.0, 656.0, 45.0, 45.0 ] + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "multichannelsignal", "", "" ], + "patching_rect" : [ 352.0, 392.0, 320.0, 22.0 ], + "text" : "mc.poly~ engine_voice.noisewash~ @voices 10 @target 0" } } @@ -131,26 +242,45 @@ "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, - "patching_rect" : [ 348.0, 402.0, 150.0, 22.0 ] + "patching_rect" : [ 517.0, 334.0, 150.0, 22.0 ] } } ], "lines" : [ { "patchline" : { - "destination" : [ "obj-6", 1 ], - "order" : 0, - "source" : [ "obj-4", 0 ] + "destination" : [ "obj-3", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "source" : [ "obj-10", 0 ] } } , { "patchline" : { - "destination" : [ "obj-6", 0 ], - "order" : 1, + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], "source" : [ "obj-4", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-5", 0 ] + } + } , { "patchline" : { @@ -158,6 +288,20 @@ "source" : [ "obj-51", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-8", 0 ] + } + } ] } @@ -177,9 +321,9 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 200.0, 103.0, 226.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, 32, 47, 103, 97, 105, 110, 47, 114, 97, 110, 103, 101, 0, 44, 100, 100, 0, 63, -45, 51, 51, 51, 51, 51, 51, 63, -4, -52, -52, -52, -52, -52, -51, 0, 0, 0, 20, 47, 116, 121, 112, 101, 0, 0, 0, 44, 115, 0, 0, 104, 117, 103, 104, 0, 0, 0, 0, 0, 0, 0, 20, 47, 114, 97, 109, 112, 0, 0, 0, 44, 100, 0, 0, 64, -113, 64, 0, 0, 0, 0, 0, 0, 0, 0, 48, 47, 97, 100, 115, 114, 0, 0, 0, 44, 100, 100, 100, 100, 0, 0, 0, 63, -71, -103, -103, -103, -103, -103, -102, 63, -45, 51, 51, 51, 51, 51, 51, 63, -55, -103, -103, -103, -103, -103, -102, 64, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 47, 100, 117, 114, 97, 116, 105, 111, 110, 47, 115, 101, 99, 0, 0, 0, 44, 100, 0, 0, 64, 62, 0, 0, 0, 0, 0, 0 ], + "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 47, 103, 97, 105, 110, 47, 114, 97, 110, 103, 101, 0, 44, 100, 100, 0, 63, -45, 51, 51, 51, 51, 51, 51, 63, -4, -52, -52, -52, -52, -52, -51, 0, 0, 0, 20, 47, 116, 121, 112, 101, 0, 0, 0, 44, 115, 0, 0, 104, 117, 103, 104, 0, 0, 0, 0, 0, 0, 0, 20, 47, 114, 97, 109, 112, 0, 0, 0, 44, 100, 0, 0, 64, -113, 64, 0, 0, 0, 0, 0, 0, 0, 0, 48, 47, 97, 100, 115, 114, 0, 0, 0, 44, 100, 100, 100, 100, 0, 0, 0, 63, -32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, -16, 0, 0, 0, 0, 0, 0, 63, -32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 47, 100, 117, 114, 97, 116, 105, 111, 110, 47, 115, 101, 99, 0, 0, 0, 44, 100, 0, 0, 64, 8, 0, 0, 0, 0, 0, 0 ], "saved_bundle_length" : 184, - "text" : "/gain/range : [0.3, 1.8],\n/type : \"hugh\",\n/ramp : 1000.,\n/adsr : [0.1, 0.3, 0.2, 3.],\n/duration/sec : 30." + "text" : "/gain/range : [0.3, 1.8],\n/type : \"hugh\",\n/ramp : 1000.,\n/adsr : [0.5, 0., 1., 0.5],\n/duration/sec : 3." } } @@ -353,6 +497,7 @@ } ], "parameters" : { + "obj-14::obj-3" : [ "mc.live.gain~", "mc.live.gain~", 0 ], "obj-7" : [ "live.gain~", "engine.signal", 0 ], "parameterbanks" : { "0" : { diff --git a/engine_voice.noisewash~.maxpat b/engine_voice.noisewash~.maxpat index 2cd8b62..128f8af 100644 --- a/engine_voice.noisewash~.maxpat +++ b/engine_voice.noisewash~.maxpat @@ -287,6 +287,10 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 836.0, 785.0, 35.0, 22.0 ], + "saved_object_attributes" : { + "attr_comment" : "" + } +, "text" : "out 1" } @@ -498,10 +502,6 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 529.0, 785.0, 52.0, 22.0 ], - "saved_object_attributes" : { - "attr_comment" : "" - } -, "text" : "out~ 1" } @@ -514,10 +514,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 428.0, 42.0, 38.0, 22.0 ], - "saved_object_attributes" : { - "attr_comment" : "" - } -, "text" : "in 1" } @@ -788,13 +784,13 @@ "box" : { "fontface" : 0, "id" : "obj-27", - "linecount" : 7, + "linecount" : 8, "maxclass" : "o.expr.codebox", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 50.0, 189.0, 560.0, 108.0 ], - "text" : "/gain/range ??= [0.8, 1.2],\n/trajspeed/range ??= [20, 50],\n\n/gain = scale(/r/gain, 0., 1., /gain/range[[0]], /gain/range[[1]]), \n/tspeed = scale(/r/tspeed, 0., 1., /trajspeed/range[[0]], /trajspeed/range[[1]]), \n/dur/ms = /duration/sec * 1000., \n/adsr = [/adsr[[0]] * 1000., /adsr[[1]] * 1000., /adsr[[2]], /adsr[[3]] * 1000.]" + "patching_rect" : [ 50.0, 189.0, 560.0, 121.0 ], + "text" : "/gain/range ??= [0.8, 1.2],\n/trajspeed/range ??= [20, 50],\n\n/gain = scale(/r/gain, 0., 1., /gain/range[[0]], /gain/range[[1]]), \n/tspeed = scale(/r/tspeed, 0., 1., /trajspeed/range[[0]], /trajspeed/range[[1]]), \n/dur/ms = /duration/sec * 1000., \n/adsr = [/adsr[[0]] * 1000., /adsr[[1]] * 1000., /adsr[[2]], /adsr[[3]] * 1000.], \ndelete(/gain/range)" } } -- 2.34.1