From 24077f65c398d081ab1a0e3c16583e827afa9adb Mon Sep 17 00:00:00 2001 From: bltzr Date: Sun, 21 Oct 2012 20:51:25 +0200 Subject: [PATCH] fragmentation mode is now power-based --- lightModules/jalg.modulation.maxpat | 409 ++++++++++++++++++++++++---- 1 file changed, 363 insertions(+), 46 deletions(-) diff --git a/lightModules/jalg.modulation.maxpat b/lightModules/jalg.modulation.maxpat index 8b3d702..19906a9 100644 --- a/lightModules/jalg.modulation.maxpat +++ b/lightModules/jalg.modulation.maxpat @@ -154,7 +154,7 @@ "numoutlets" : 0, "patching_rect" : [ 110.0, 422.0, 37.0, 20.0 ], "saved_object_attributes" : { - + "attr_comment" : "" } , "text" : "out 2" @@ -171,7 +171,7 @@ "numoutlets" : 0, "patching_rect" : [ 31.0, 417.0, 37.0, 20.0 ], "saved_object_attributes" : { - + "attr_comment" : "" } , "text" : "out 1" @@ -189,7 +189,7 @@ "outlettype" : [ "" ], "patching_rect" : [ 28.0, 23.0, 49.0, 20.0 ], "saved_object_attributes" : { - + "attr_comment" : "" } , "text" : "in 1" @@ -249,9 +249,9 @@ "outlettype" : [ "" ], "patcher" : { "fileversion" : 1, - "rect" : [ 153.0, 94.0, 887.0, 673.0 ], + "rect" : [ 68.0, 132.0, 887.0, 673.0 ], "bglocked" : 0, - "defrect" : [ 153.0, 94.0, 887.0, 673.0 ], + "defrect" : [ 68.0, 132.0, 887.0, 673.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -267,6 +267,314 @@ "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { + "box" : { + "fontname" : "Arial", + "fontsize" : 9.0, + "id" : "obj-43", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "rect" : [ 627.0, 429.0, 437.0, 174.0 ], + "bglocked" : 0, + "defrect" : [ 627.0, 429.0, 437.0, 174.0 ], + "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 0, + "gridsize" : [ 2.0, 2.0 ], + "gridsnaponopen" : 0, + "toolbarvisible" : 1, + "boxanimatetime" : 200, + "imprint" : 0, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "boxes" : [ { + "box" : { + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "rect" : [ 25.0, 69.0, 640.0, 480.0 ], + "bglocked" : 0, + "defrect" : [ 25.0, 69.0, 640.0, 480.0 ], + "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 0, + "gridsize" : [ 2.0, 2.0 ], + "gridsnaponopen" : 0, + "toolbarvisible" : 1, + "boxanimatetime" : 200, + "imprint" : 0, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "boxes" : [ { + "box" : { + "fontname" : "Arial", + "fontsize" : 9.0, + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 50.0, 140.0, 56.0, 17.0 ], + "text" : "deferlow" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 9.0, + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "bang", "bang" ], + "patching_rect" : [ 50.0, 120.0, 135.0, 17.0 ], + "text" : "t b b" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 9.0, + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "patching_rect" : [ 50.0, 100.0, 56.0, 17.0 ], + "text" : "loadbang" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 9.0, + "id" : "obj-3", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 50.0, 160.0, 115.0, 15.0 ], + "text" : "parameter powerValue 1." + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 9.0, + "id" : "obj-2", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 166.0, 160.0, 71.0, 15.0 ], + "text" : "function power" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-1", + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 108.0, 235.0, 25.0, 25.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "hidden" : 0, + "midpoints" : [ ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "hidden" : 0, + "midpoints" : [ ], + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "hidden" : 0, + "midpoints" : [ ], + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "hidden" : 0, + "midpoints" : [ ], + "source" : [ "obj-5", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "hidden" : 0, + "midpoints" : [ ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "hidden" : 0, + "midpoints" : [ ], + "source" : [ "obj-6", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 88.0, 16.0, 100.0, 20.0 ], + "saved_object_attributes" : { + "fontname" : "Arial", + "default_fontsize" : 12.0, + "globalpatchername" : "", + "fontface" : 0, + "fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial" + } +, + "text" : "p initjcommap" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-1", + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 27.0, 94.0, 15.0, 15.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-2", + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 27.0, 45.0, 15.0, 15.0 ] + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 9.0, + "id" : "obj-3", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 55.0, 44.0, 61.0, 17.0 ], + "text" : "r Z.volcurv" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 9.0, + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 27.0, 68.0, 382.0, 17.0 ], + "text" : "jcom.map @function power @inputMin 0. @inputMax 1. @outputMin 0. @outputMax 1." + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "hidden" : 0, + "midpoints" : [ ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "hidden" : 0, + "midpoints" : [ ], + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "hidden" : 0, + "midpoints" : [ ], + "source" : [ "obj-9", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 50.0, 328.0, 39.0, 17.0 ], + "presentation_rect" : [ 50.0, 328.0, 0.0, 0.0 ], + "saved_object_attributes" : { + "fontname" : "Arial", + "default_fontsize" : 12.0, + "globalpatchername" : "", + "fontface" : 0, + "fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial" + } +, + "text" : "p curv" + } + + } +, { "box" : { "fontname" : "Arial", "fontsize" : 12.0, @@ -555,15 +863,15 @@ ] } , - "patching_rect" : [ 50.0, 303.0, 40.0, 20.0 ], + "patching_rect" : [ 50.0, 288.0, 40.0, 20.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 10.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 10.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p min" @@ -820,13 +1128,13 @@ , "patching_rect" : [ 487.0, 104.0, 60.0, 17.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p centerdev" @@ -1070,13 +1378,13 @@ , "patching_rect" : [ 282.0, 97.0, 60.0, 17.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p centerdev" @@ -1320,13 +1628,13 @@ , "patching_rect" : [ 142.0, 96.0, 60.0, 17.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p centerdev" @@ -1555,13 +1863,13 @@ , "patching_rect" : [ 88.0, 16.0, 100.0, 20.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p initjcommap" @@ -1650,15 +1958,15 @@ ] } , - "patching_rect" : [ 61.0, 476.0, 39.0, 17.0 ], + "patching_rect" : [ 64.0, 473.0, 39.0, 17.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p curv" @@ -2193,13 +2501,13 @@ , "patching_rect" : [ 82.0, 180.0, 100.0, 20.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p initjcommap" @@ -2375,13 +2683,13 @@ , "patching_rect" : [ 214.0, 112.0, 100.0, 20.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p initjcommap" @@ -2599,13 +2907,13 @@ , "patching_rect" : [ 484.0, 142.0, 68.0, 17.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p convert" @@ -2865,13 +3173,13 @@ , "patching_rect" : [ 195.0, 95.0, 100.0, 20.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p initjcommap" @@ -3047,13 +3355,13 @@ , "patching_rect" : [ 59.0, 167.0, 100.0, 20.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p initjcommap" @@ -3289,13 +3597,13 @@ , "patching_rect" : [ 279.0, 126.0, 68.0, 17.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p convert" @@ -3773,12 +4081,21 @@ } , { "patchline" : { - "destination" : [ "obj-18", 0 ], + "destination" : [ "obj-43", 0 ], "hidden" : 0, "midpoints" : [ ], "source" : [ "obj-42", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-18", 0 ], + "hidden" : 0, + "midpoints" : [ ], + "source" : [ "obj-43", 0 ] + } + } , { "patchline" : { @@ -3830,13 +4147,13 @@ , "patching_rect" : [ 179.0, 247.0, 53.0, 23.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p frag" @@ -4134,13 +4451,13 @@ , "patching_rect" : [ 260.0, 68.0, 60.0, 17.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p centerdev" @@ -4384,13 +4701,13 @@ , "patching_rect" : [ 120.0, 84.0, 60.0, 17.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p centerdev" @@ -4648,13 +4965,13 @@ , "patching_rect" : [ 255.0, 94.0, 68.0, 17.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p initjcommap" @@ -4845,13 +5162,13 @@ , "patching_rect" : [ 87.0, 96.0, 68.0, 17.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p initjcommap" @@ -5120,13 +5437,13 @@ , "patching_rect" : [ 257.0, 106.0, 50.0, 17.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p convert" @@ -5461,13 +5778,13 @@ , "patching_rect" : [ 94.0, 246.0, 83.0, 23.0 ], "saved_object_attributes" : { - "default_fontname" : "Arial", "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, - "default_fontface" : 0 + "default_fontface" : 0, + "default_fontname" : "Arial" } , "text" : "p fluct"