From: equilet <2237372+equilet@users.noreply.github.com> Date: Sat, 28 Jun 2025 01:14:16 +0000 (-0700) Subject: updated to support demosound and associated printing X-Git-Tag: v0.1~32 X-Git-Url: https://git.dabkitsch.com/?a=commitdiff_plain;h=38ec1266434d62c1220de91d73105ea1f641440b;p=sonogarden_maxproj.git updated to support demosound and associated printing --- diff --git a/engine_voice.fragments~.maxhelp b/engine_voice.fragments~.maxhelp index d70b39d..111237b 100644 --- a/engine_voice.fragments~.maxhelp +++ b/engine_voice.fragments~.maxhelp @@ -10,10 +10,45 @@ } , "classnamespace" : "box", - "rect" : [ 63.0, 87.0, 1127.0, 744.0 ], + "rect" : [ 103.0, 141.0, 1127.0, 744.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { + "box" : { + "id" : "obj-21", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 418.0, 584.0, 24.0, 24.0 ] + } + + } +, { + "box" : { + "id" : "obj-19", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patching_rect" : [ 418.0, 616.0, 93.0, 22.0 ], + "text" : "o.pack /verbose" + } + + } +, { + "box" : { + "id" : "obj-13", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 418.0, 649.0, 37.0, 22.0 ], + "text" : "s osc" + } + + } +, { "box" : { "fontface" : 0, "id" : "obj-11", @@ -33,14 +68,15 @@ "box" : { "fontface" : 0, "id" : "obj-17", + "linecount" : 2, "maxclass" : "o.compose", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 755.0, 142.0, 239.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, 28, 47, 112, 97, 116, 104, 0, 0, 0, 44, 115, 0, 0, 52, 95, 65, 110, 116, 111, 110, 95, 71, 108, 97, 115, 115, 0, 0, 0 ], - "saved_bundle_length" : 48, - "text" : "/path : \"4_Anton_Glass\"" + "patching_rect" : [ 755.0, 142.0, 239.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, 44, 47, 112, 97, 116, 104, 0, 0, 0, 44, 115, 0, 0, 49, 48, 48, 54, 50, 50, 95, 48, 52, 32, 70, 97, 115, 116, 32, 67, 101, 108, 108, 111, 32, 70, 114, 97, 103, 109, 101, 110, 116, 115, 0, 0 ], + "saved_bundle_length" : 64, + "text" : "/path : \"100622_04 Fast Cello Fragments\"" } } @@ -321,9 +357,9 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 66.0, 73.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, 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_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, 0, 0, 0, 0, 0, 0, 0, 0, 63, -16, 0, 0, 0, 0, 0, 0, 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" + "text" : "/segment : [0., 1.],\n/speed : 1.,\n/spacing/range : [0.05, 0.3],\n/variety : 0.4" } } @@ -347,7 +383,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 818.0, 236.0, 263.0, 351.0 ], + "patching_rect" : [ 818.0, 236.0, 268.0, 351.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, each time the fragment voice plays a file. It is the spacing between successive plays of the file. There is always a delay incurred before the first file is played, chosen from the same range. A range of [0. 0.] will bypass the delay altogether and play the newly chosen files immediately after the previous file ends.\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" } @@ -562,13 +598,11 @@ "box" : { "fontface" : 0, "id" : "obj-19", - "linecount" : 33, "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 : 10,\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 : 10,\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 : 10,\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 : 10,\n /pbname : \"polycollection\"\n}" + "patching_rect" : [ 50.0, 100.0, 438.0, 545.0 ] } } @@ -702,13 +736,11 @@ "box" : { "fontface" : 0, "id" : "obj-20", - "linecount" : 7, "maxclass" : "o.display", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 815.0, 289.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 : 4,\n/numfiles : 10,\n/pbname : \"polycollection\"" + "patching_rect" : [ 815.0, 289.0, 263.0, 110.0 ] } } @@ -1002,9 +1034,9 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 281.0, 73.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, 32, 47, 115, 101, 103, 109, 101, 110, 116, 0, 0, 0, 0, 44, 100, 100, 0, 63, -45, 51, 51, 51, 51, 51, 51, 63, -43, 30, -72, 81, -21, -123, 31, 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.3, 0.33],\n/speed : 1.,\n/spacing/range : [0.05, 0.3],\n/variety : 0.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, -45, 51, 51, 51, 51, 51, 51, 63, -43, 30, -72, 81, -21, -123, 31, 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, 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, 0, 0, 0, 16, 47, 100, 101, 109, 111, 115, 110, 100, 0, 0, 0, 0, 44, 84, 0, 0 ], + "saved_bundle_length" : 124, + "text" : "/segment : [0.3, 0.33],\n/speed : 1.,\n/variety : 0.4,\n/demosnd : true" } } @@ -1015,8 +1047,8 @@ "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "signal", "signal", "" ], - "patching_rect" : [ 280.0, 406.0, 206.0, 22.0 ], - "text" : "engine_voice.fragments~ aux-sender" + "patching_rect" : [ 280.0, 406.0, 219.0, 22.0 ], + "text" : "engine_voice.fragments~ /engine/name" } } @@ -1110,6 +1142,13 @@ "source" : [ "obj-18", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-13", 0 ], + "source" : [ "obj-19", 0 ] + } + } , { "patchline" : { @@ -1117,6 +1156,13 @@ "source" : [ "obj-2", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-19", 0 ], + "source" : [ "obj-21", 0 ] + } + } , { "patchline" : { @@ -1267,15 +1313,15 @@ "implicit" : 1 } , { - "name" : "o.atomize.mxo", + "name" : "o.collect.mxo", "type" : "iLaX" } , { - "name" : "o.collect.mxo", + "name" : "o.compose.mxo", "type" : "iLaX" } , { - "name" : "o.compose.mxo", + "name" : "o.cond.mxo", "type" : "iLaX" } , { @@ -1343,6 +1389,13 @@ "type" : "JSON", "implicit" : 1 } +, { + "name" : "vt.demosnd~.maxpat", + "bootpath" : "~/Documents/programming/git_repositories/sonogarden_maxproj", + "patcherrelativepath" : ".", + "type" : "JSON", + "implicit" : 1 + } , { "name" : "vt.density.maxpat", "bootpath" : "~/Documents/programming/git_repositories/sonogarden_maxproj", diff --git a/engine_voice.fragments~.maxpat b/engine_voice.fragments~.maxpat index 0d204fc..d3c0ee4 100644 --- a/engine_voice.fragments~.maxpat +++ b/engine_voice.fragments~.maxpat @@ -10,7 +10,7 @@ } , "classnamespace" : "box", - "rect" : [ 75.0, 127.0, 1372.0, 742.0 ], + "rect" : [ 218.0, 177.0, 1372.0, 742.0 ], "gridsize" : [ 15.0, 15.0 ], "lefttoolbarpinned" : 1, "toptoolbarpinned" : 1, @@ -18,6 +18,18 @@ "bottomtoolbarpinned" : 1, "subpatcher_template" : "Untitled5_template", "boxes" : [ { + "box" : { + "id" : "obj-40", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 308.666666666666686, 746.0, 93.0, 22.0 ], + "text" : "o.if exists(/stop)" + } + + } +, { "box" : { "id" : "obj-67", "maxclass" : "newobj", @@ -3031,6 +3043,21 @@ "source" : [ "obj-39", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-47", 0 ], + "midpoints" : [ 318.166666666666686, 782.53265380859375, 23.095174153645871, 782.53265380859375, 23.095174153645871, 261.40899658203125, 243.5, 261.40899658203125 ], + "source" : [ "obj-40", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-53", 0 ], + "source" : [ "obj-40", 1 ] + } + } , { "patchline" : { @@ -3158,8 +3185,7 @@ } , { "patchline" : { - "destination" : [ "obj-47", 0 ], - "midpoints" : [ 318.166666666666686, 782.53265380859375, 23.095174153645871, 782.53265380859375, 23.095174153645871, 261.40899658203125, 243.5, 261.40899658203125 ], + "destination" : [ "obj-40", 0 ], "source" : [ "obj-67", 2 ] } @@ -3267,13 +3293,6 @@ "name" : "o.var.mxo", "type" : "iLaX" } -, { - "name" : "patcher_traverse.js", - "bootpath" : "~/Documents/programming/git_repositories/sonogarden_maxproj", - "patcherrelativepath" : ".", - "type" : "TEXT", - "implicit" : 1 - } , { "name" : "vt.demosnd~.maxpat", "bootpath" : "~/Documents/programming/git_repositories/sonogarden_maxproj",