From 813c834bed31821562786c9a2b49abbf5f2fe3e4 Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Wed, 14 May 2025 13:40:10 -0700 Subject: [PATCH] updates for stereo usage and new param set --- engine_voice.fragments~.maxhelp | 160 ++++++++++++++++++++++---------- 1 file changed, 111 insertions(+), 49 deletions(-) diff --git a/engine_voice.fragments~.maxhelp b/engine_voice.fragments~.maxhelp index 98a5378..27fb5d2 100644 --- a/engine_voice.fragments~.maxhelp +++ b/engine_voice.fragments~.maxhelp @@ -23,7 +23,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 252.0, 14.0, 213.0, 62.0 ], - "presentation_linecount" : 4, "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 47, 115, 101, 103, 109, 101, 110, 116, 0, 0, 0, 0, 44, 100, 100, 0, 63, -32, 0, 0, 0, 0, 0, 0, 63, -31, 14, 86, 4, 24, -109, 117, 0, 0, 0, 20, 47, 115, 112, 101, 101, 100, 0, 0, 44, 100, 0, 0, 63, -16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 47, 115, 112, 97, 99, 105, 110, 103, 47, 114, 97, 110, 103, 101, 0, 0, 44, 100, 100, 0, 63, -87, -103, -103, -103, -103, -103, -102, 63, -45, 51, 51, 51, 51, 51, 51, 0, 0, 0, 24, 47, 118, 97, 114, 105, 101, 116, 121, 0, 0, 0, 0, 44, 100, 0, 0, 63, -39, -103, -103, -103, -103, -103, -102 ], "saved_bundle_length" : 144, "text" : "/segment : [0.5, 0.533],\n/speed : 1.,\n/spacing/range : [0.05, 0.3],\n/variety : 0.4" @@ -49,7 +48,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 791.0, 248.0, 281.0, 315.0 ], + "patching_rect" : [ 791.0, 248.0, 283.0, 315.0 ], "text" : "the fragments voice plays sound files of an intederminate length (meant for short to medium sounds in length, but can be used with anything) from a polybuffer~ reference based on some parameters:\n\nvariety: the likelihood that a different sound will be chosen from the last. A variety of zero will simply play the last selection.\n\ndensity: the number of voices playing at once (only available in poly version)\n\nspeed: speed of playback\n\nspacing range: this is a range of time from which a delay will be produced as an offset before a new sound plays.\n\nsegment: what portion of the audio file to play \n\n* all time values are in seconds, except for \"segment\" which is a factor" } @@ -158,13 +157,11 @@ "box" : { "fontface" : 0, "id" : "obj-20", - "linecount" : 6, "maxclass" : "o.display", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 495.0, 318.0, 263.0, 97.0 ], - "text" : "/segment : [0.5, 0.533],\n/speed : 1.,\n/spacing/range : [0.05, 0.3],\n/variety : 0.4,\n/numfiles : 73,\n/pbname : \"audiocollection\"" + "patching_rect" : [ 495.0, 318.0, 263.0, 33.0 ] } } @@ -223,7 +220,52 @@ "rect" : [ 72.0, 102.0, 1159.0, 743.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", + "visible" : 1, "boxes" : [ { + "box" : { + "background_color" : [ 0.768627450980392, 0.815686274509804, 0.76078431372549, 1.0 ], + "fontface" : 0, + "id" : "obj-18", + "linecount" : 5, + "maxclass" : "o.compose", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 746.0, 163.0, 213.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, 36, 47, 115, 112, 97, 99, 105, 110, 103, 47, 114, 97, 110, 103, 101, 0, 0, 44, 100, 100, 0, 64, 20, 0, 0, 0, 0, 0, 0, 64, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 47, 118, 97, 114, 105, 101, 116, 121, 0, 0, 0, 0, 44, 100, 0, 0, 63, -20, -52, -52, -52, -52, -52, -51, 0, 0, 0, 24, 47, 100, 101, 110, 115, 105, 116, 121, 0, 0, 0, 0, 44, 100, 0, 0, 63, -32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 47, 115, 116, 47, 108, 0, 0, 0, 44, 115, 0, 0, 99, 104, 49, 0, 0, 0, 0, 16, 47, 115, 116, 47, 114, 0, 0, 0, 44, 115, 0, 0, 99, 104, 50, 0 ], + "saved_bundle_length" : 152, + "text" : "/spacing/range : [5., 12.],\n/variety : 0.9,\n/density : 0.5,\n/st/l : \"ch1\",\n/st/r : \"ch2\"" + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 462.5, 598.0, 41.0, 22.0 ], + "text" : "set $1" + } + + } +, { + "box" : { + "id" : "obj-5", + "interp" : 0.0, + "maxclass" : "gain~", + "multichannelvariant" : 0, + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "signal", "" ], + "parameter_enable" : 0, + "patching_rect" : [ 380.5, 514.0, 22.0, 140.0 ] + } + + } +, { "box" : { "fontface" : 0, "id" : "obj-2", @@ -247,7 +289,7 @@ "numoutlets" : 1, "orientation" : 2, "outlettype" : [ "float" ], - "patching_rect" : [ 455.0, 522.0, 158.0, 58.0 ] + "patching_rect" : [ 120.0, 548.0, 158.0, 58.0 ] } } @@ -262,9 +304,9 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 746.0, 71.0, 213.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, 16, 47, 115, 112, 101, 101, 100, 0, 0, 44, 105, 0, 0, 0, 0, 0, 1, 0, 0, 0, 36, 47, 115, 112, 97, 99, 105, 110, 103, 47, 114, 97, 110, 103, 101, 0, 0, 44, 100, 100, 0, 64, 20, 0, 0, 0, 0, 0, 0, 64, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 47, 115, 101, 103, 109, 101, 110, 116, 0, 0, 0, 0, 44, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, -16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 47, 118, 97, 114, 105, 101, 116, 121, 0, 0, 0, 0, 44, 100, 0, 0, 63, -20, -52, -52, -52, -52, -52, -51, 0, 0, 0, 24, 47, 100, 101, 110, 115, 105, 116, 121, 0, 0, 0, 0, 44, 100, 0, 0, 63, -32, 0, 0, 0, 0, 0, 0 ], - "saved_bundle_length" : 168, - "text" : "/speed : 1,\n/spacing/range : [5., 12.],\n/segment : [0., 1.],\n/variety : 0.9,\n/density : 0.5" + "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 47, 115, 112, 97, 99, 105, 110, 103, 47, 114, 97, 110, 103, 101, 0, 0, 44, 100, 100, 0, 64, 20, 0, 0, 0, 0, 0, 0, 64, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 47, 118, 97, 114, 105, 101, 116, 121, 0, 0, 0, 0, 44, 100, 0, 0, 63, -20, -52, -52, -52, -52, -52, -51, 0, 0, 0, 24, 47, 100, 101, 110, 115, 105, 116, 121, 0, 0, 0, 0, 44, 100, 0, 0, 63, -32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 47, 115, 116, 47, 108, 0, 0, 0, 44, 115, 0, 0, 99, 104, 53, 0, 0, 0, 0, 16, 47, 115, 116, 47, 114, 0, 0, 0, 44, 115, 0, 0, 99, 104, 54, 0 ], + "saved_bundle_length" : 152, + "text" : "/spacing/range : [5., 12.],\n/variety : 0.9,\n/density : 0.5,\n/st/l : \"ch5\",\n/st/r : \"ch6\"" } } @@ -292,13 +334,13 @@ "box" : { "fontface" : 0, "id" : "obj-19", - "linecount" : 33, + "linecount" : 41, "maxclass" : "o.display", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 50.0, 100.0, 438.0, 545.0 ], - "text" : "/num/voices : 10,\n/voices/1 : {\n /segment : [0.5, 0.533],\n /speed : 1.,\n /spacing/range : [0.05, 0.3],\n /variety : 0.4,\n /numfiles : 73,\n /pbname : \"polycollection\"\n},\n/voices/2 : {\n /segment : [0.5, 0.533],\n /speed : 1.,\n /spacing/range : [0.05, 0.3],\n /variety : 0.4,\n /numfiles : 73,\n /pbname : \"polycollection\"\n},\n/voices/3 : {\n /segment : [0.5, 0.533],\n /speed : 1.,\n /spacing/range : [0.05, 0.3],\n /variety : 0.4,\n /numfiles : 73,\n /pbname : \"polycollection\"\n},\n/voices/4 : {\n /segment : [0.5, 0.533],\n /speed : 1.,\n /spacing/range : [0.05, 0.3],\n /variety : 0.4,\n /numfiles : 73,\n /pbname : \"polycollection\"\n}" + "text" : "/num/voices : 10,\n/voices/1 : {\n /spacing/range : [5., 12.],\n /variety : 0.9,\n /st/l : \"ch5\",\n /st/r : \"ch6\",\n /numfiles : 73,\n /pbname : \"polycollection\"\n},\n/voices/2 : {\n /spacing/range : [5., 12.],\n /variety : 0.9,\n /st/l : \"ch5\",\n /st/r : \"ch6\",\n /numfiles : 73,\n /pbname : \"polycollection\"\n},\n/voices/3 : {\n /spacing/range : [5., 12.],\n /variety : 0.9,\n /st/l : \"ch5\",\n /st/r : \"ch6\",\n /numfiles : 73,\n /pbname : \"polycollection\"\n},\n/voices/4 : {\n /spacing/range : [5., 12.],\n /variety : 0.9,\n /st/l : \"ch5\",\n /st/r : \"ch6\",\n /numfiles : 73,\n /pbname : \"polycollection\"\n},\n/voices/5 : {\n /spacing/range : [5., 12.],\n /variety : 0.9,\n /st/l : \"ch5\",\n /st/r : \"ch6\",\n /numfiles : 73,\n /pbname : \"polycollection\"\n}" } } @@ -500,15 +542,15 @@ "background_color" : [ 0.768627450980392, 0.815686274509804, 0.76078431372549, 1.0 ], "fontface" : 0, "id" : "obj-16", - "linecount" : 5, + "linecount" : 4, "maxclass" : "o.compose", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 525.0, 71.0, 213.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, 16, 47, 115, 112, 101, 101, 100, 0, 0, 44, 105, 0, 0, 0, 0, 0, 1, 0, 0, 0, 36, 47, 115, 112, 97, 99, 105, 110, 103, 47, 114, 97, 110, 103, 101, 0, 0, 44, 100, 100, 0, 63, -32, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 47, 115, 101, 103, 109, 101, 110, 116, 0, 0, 0, 0, 44, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, -16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 47, 118, 97, 114, 105, 101, 116, 121, 0, 0, 0, 0, 44, 100, 0, 0, 63, -20, -52, -52, -52, -52, -52, -51, 0, 0, 0, 24, 47, 100, 101, 110, 115, 105, 116, 121, 0, 0, 0, 0, 44, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], - "saved_bundle_length" : 168, - "text" : "/speed : 1,\n/spacing/range : [0.5, 2.],\n/segment : [0., 1.],\n/variety : 0.9,\n/density : 0." + "patching_rect" : [ 525.0, 71.0, 213.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, 36, 47, 115, 112, 97, 99, 105, 110, 103, 47, 114, 97, 110, 103, 101, 0, 0, 44, 100, 100, 0, 63, -32, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 47, 115, 101, 103, 109, 101, 110, 116, 0, 0, 0, 0, 44, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, -16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 47, 118, 97, 114, 105, 101, 116, 121, 0, 0, 0, 0, 44, 100, 0, 0, 63, -20, -52, -52, -52, -52, -52, -51, 0, 0, 0, 24, 47, 100, 101, 110, 115, 105, 116, 121, 0, 0, 0, 0, 44, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], + "saved_bundle_length" : 148, + "text" : "/spacing/range : [0.5, 2.],\n/segment : [0., 1.],\n/variety : 0.9,\n/density : 0." } } @@ -522,7 +564,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 824.0, 372.0, 263.0, 110.0 ], - "text" : "/segment : [0.5, 0.533],\n/speed : 1.,\n/spacing/range : [0.05, 0.3],\n/variety : 0.4,\n/density : 0.4,\n/numfiles : 73,\n/pbname : \"polycollection\"" + "text" : "/spacing/range : [5., 12.],\n/variety : 0.9,\n/density : 0.5,\n/st/l : \"ch5\",\n/st/r : \"ch6\",\n/numfiles : 73,\n/pbname : \"polycollection\"" } } @@ -554,7 +596,7 @@ "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, - "patching_rect" : [ 348.0, 662.0, 45.0, 45.0 ] + "patching_rect" : [ 348.0, 692.0, 51.5, 51.5 ] } } @@ -567,7 +609,7 @@ "numoutlets" : 2, "outlettype" : [ "signal", "" ], "parameter_enable" : 0, - "patching_rect" : [ 348.0, 502.0, 22.0, 140.0 ] + "patching_rect" : [ 348.0, 514.0, 22.0, 140.0 ] } } @@ -576,8 +618,8 @@ "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "multichannelsignal", "", "" ], + "numoutlets" : 4, + "outlettype" : [ "multichannelsignal", "multichannelsignal", "", "" ], "patching_rect" : [ 348.0, 465.0, 317.0, 22.0 ], "text" : "mc.poly~ engine_voice.fragments~ @voices 10 @target 0" } @@ -600,14 +642,14 @@ "lines" : [ { "patchline" : { "destination" : [ "obj-15", 0 ], - "source" : [ "obj-1", 1 ] + "source" : [ "obj-1", 2 ] } } , { "patchline" : { "destination" : [ "obj-26", 0 ], - "order" : 0, + "order" : 1, "source" : [ "obj-1", 0 ] } @@ -615,10 +657,17 @@ , { "patchline" : { "destination" : [ "obj-4", 0 ], - "order" : 1, + "order" : 0, "source" : [ "obj-1", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-1", 1 ] + } + } , { "patchline" : { @@ -633,6 +682,13 @@ "source" : [ "obj-11", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-12", 0 ] + } + } , { "patchline" : { @@ -654,6 +710,13 @@ "source" : [ "obj-16", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "source" : [ "obj-18", 0 ] + } + } , { "patchline" : { @@ -687,19 +750,31 @@ } , { "patchline" : { - "destination" : [ "obj-6", 1 ], - "order" : 0, - "source" : [ "obj-4", 0 ] + "destination" : [ "obj-12", 0 ], + "source" : [ "obj-4", 1 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], - "order" : 1, "source" : [ "obj-4", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-5", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 1 ], + "source" : [ "obj-5", 0 ] + } + } , { "patchline" : { @@ -746,22 +821,10 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 99.0, 549.0, 35.0, 22.0 ], + "patching_rect" : [ 130.0, 587.0, 35.0, 22.0 ], "text" : "open" } - } -, { - "box" : { - "buffername" : "somethin", - "id" : "obj-11", - "maxclass" : "waveform~", - "numinlets" : 5, - "numoutlets" : 6, - "outlettype" : [ "float", "float", "float", "float", "list", "" ], - "patching_rect" : [ 308.0, 583.0, 300.0, 58.0 ] - } - } , { "box" : { @@ -799,8 +862,8 @@ "id" : "obj-36", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "signal", "" ], + "numoutlets" : 3, + "outlettype" : [ "signal", "signal", "" ], "patching_rect" : [ 199.0, 419.0, 206.0, 22.0 ], "text" : "engine_voice.fragments~ aux-sender" } @@ -812,7 +875,7 @@ "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, - "patching_rect" : [ 199.0, 609.0, 33.5, 33.5 ] + "patching_rect" : [ 199.0, 609.0, 42.0, 42.0 ] } } @@ -825,7 +888,7 @@ "numoutlets" : 5, "outlettype" : [ "signal", "signal", "", "float", "list" ], "parameter_enable" : 1, - "patching_rect" : [ 199.0, 458.0, 77.0, 139.0 ], + "patching_rect" : [ 199.0, 453.0, 112.0, 133.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_longname" : "live.gain~", @@ -850,7 +913,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 308.0, 481.0, 300.0, 100.0 ] + "patching_rect" : [ 375.0, 453.0, 300.0, 100.0 ] } } @@ -924,15 +987,14 @@ , { "patchline" : { "destination" : [ "obj-7", 1 ], - "order" : 1, - "source" : [ "obj-36", 0 ] + "source" : [ "obj-36", 1 ] } } , { "patchline" : { "destination" : [ "obj-7", 0 ], - "order" : 2, + "order" : 1, "source" : [ "obj-36", 0 ] } -- 2.34.1