{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 7, "minor" : 0, "revision" : 1, "architecture" : "x86", "modernui" : 1 } , "rect" : [ 313.0, 236.0, 855.0, 601.0 ], "bgcolor" : [ 0.721569, 0.737255, 0.85098, 1.0 ], "editing_bgcolor" : [ 0.721569, 0.737255, 0.85098, 1.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 1, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 1, "objectsnaponopen" : 1, "statusbarvisible" : 2, "toolbarvisible" : 1, "lefttoolbarpinned" : 0, "toptoolbarpinned" : 0, "righttoolbarpinned" : 0, "bottomtoolbarpinned" : 0, "toolbars_unpinned_last_save" : 0, "tallnewobj" : 0, "boxanimatetime" : 200, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "style" : "", "subpatcher_template" : "IceCubeTray", "boxes" : [ { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-48", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 465.0, 435.0, 261.0, 22.0 ], "style" : "", "text" : "0, 1 200 -0.8 0.7 150 0.75 0.7 200 0 0 1000 0.7" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-46", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 465.0, 405.0, 150.0, 20.0 ], "style" : "", "text" : "Logarithmic ADSR" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-45", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 465.0, 330.0, 150.0, 20.0 ], "style" : "", "text" : "Exponential ADSR" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-43", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 465.0, 360.0, 265.0, 22.0 ], "style" : "", "text" : "0, 1 200 0.8 0.7 150 -0.75 0.7 200 0 0 1000 -0.7" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-41", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 615.0, 270.0, 120.0, 33.0 ], "style" : "", "text" : "Exponential attack, logarithmic release" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-39", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 465.0, 270.0, 134.0, 22.0 ], "style" : "", "text" : "0, 1 2000 0.7 0 10 0.85" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-37", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 615.0, 210.0, 120.0, 47.0 ], "style" : "", "text" : "Logarithmic attack, exponential release (bell-like)" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-35", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 465.0, 210.0, 142.0, 22.0 ], "style" : "", "text" : "0, 1 10 -0.7 0 4000 -0.85" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-33", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 465.0, 165.0, 271.0, 33.0 ], "style" : "", "text" : "One way of describing an envelope is in terms of its attack, decay, sustain, and release (ADSR)" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-31", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 465.0, 495.0, 273.0, 47.0 ], "style" : "", "text" : "Many instruments--like pianos, drums, and guitars--have logarithmic attacks and exponential decays" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-28", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 345.0, 210.0, 74.0, 22.0 ], "style" : "", "text" : "1, 0 350 0.6" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-29", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 345.0, 165.0, 75.0, 33.0 ], "style" : "", "text" : "Logarithmic descending" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-26", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 240.0, 210.0, 78.0, 22.0 ], "style" : "", "text" : "0, 1 350 -0.6" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-27", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 240.0, 165.0, 75.0, 33.0 ], "style" : "", "text" : "Logarithmic ascending" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-25", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 135.0, 210.0, 78.0, 22.0 ], "style" : "", "text" : "1, 0 350 -0.6" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-23", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 135.0, 165.0, 75.0, 33.0 ], "style" : "", "text" : "Exponential descending" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-22", "linecount" : 5, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 225.0, 270.0, 120.0, 74.0 ], "style" : "", "text" : "The right outlet bangs when curve~ is finished, allowing us to return the output to 0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-20", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 163.0, 315.0, 32.5, 22.0 ], "style" : "", "text" : "0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-18", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 2, "outlettype" : [ "signal", "bang" ], "patching_rect" : [ 135.0, 270.0, 47.0, 22.0 ], "style" : "", "text" : "curve~" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-17", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 30.0, 210.0, 74.0, 22.0 ], "style" : "", "text" : "0, 1 350 0.6" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-14", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 165.0, 75.0, 33.0 ], "style" : "", "text" : "Exponential ascending" } } , { "box" : { "id" : "obj-8", "maxclass" : "scope~", "numinlets" : 2, "numoutlets" : 0, "patching_rect" : [ 135.0, 360.0, 135.0, 140.0 ], "range" : [ -2.0, 2.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-7", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 30.0, 315.0, 32.5, 22.0 ], "style" : "", "text" : "*~" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-6", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 30.0, 270.0, 94.0, 22.0 ], "style" : "", "text" : "rect~ 440 0.25" } } , { "box" : { "id" : "obj-5", "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, "patching_rect" : [ 30.0, 510.0, 45.0, 45.0 ], "style" : "" } } , { "box" : { "id" : "obj-1", "interpinlet" : 1, "maxclass" : "gain~", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "int" ], "parameter_enable" : 0, "patching_rect" : [ 30.0, 360.0, 22.0, 140.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-4", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 90.0, 408.0, 47.0 ], "style" : "", "text" : "By using the line~ and function objects, we were able to describe envelopes that controlled the amplitude or frequency of a sinusoidal wave. MSP also has a curve~ object to create exponential and logarithmic curves" } } , { "box" : { "bubble" : 1, "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-2", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 15.0, 423.0, 51.0 ], "style" : "", "text" : "Patch 7-055. Exponential and Logarithmic Curves (after Cipriani and Giri)\nWilliam J Turkel\nhttp://williamjturkel.net/code/#programming" } } , { "box" : { "angle" : 0.0, "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "border" : 1, "id" : "obj-3", "maxclass" : "panel", "mode" : 0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 76.5, 810.0, 495.0 ], "proportion" : 0.39, "rounded" : 20, "style" : "" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-5", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 39.5, 243.0, 144.5, 243.0 ], "source" : [ "obj-17", 0 ] } } , { "patchline" : { "destination" : [ "obj-20", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-18", 1 ] } } , { "patchline" : { "destination" : [ "obj-7", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-8", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 172.5, 344.0, 210.0, 344.0, 210.0, 262.0, 144.5, 262.0 ], "source" : [ "obj-20", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 144.5, 243.0, 144.5, 243.0 ], "source" : [ "obj-25", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 249.5, 243.0, 144.5, 243.0 ], "source" : [ "obj-26", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 354.5, 243.0, 144.5, 243.0 ], "source" : [ "obj-28", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 474.5, 252.0, 144.5, 252.0 ], "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 474.5, 292.0, 430.0, 292.0, 430.0, 252.0, 144.5, 252.0 ], "source" : [ "obj-39", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 474.5, 383.0, 417.0, 383.0, 417.0, 252.0, 144.5, 252.0 ], "source" : [ "obj-43", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 474.5, 461.0, 400.0, 461.0, 400.0, 252.0, 144.5, 252.0 ], "source" : [ "obj-48", 0 ] } } , { "patchline" : { "destination" : [ "obj-7", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-6", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-7", 0 ] } } ], "dependency_cache" : [ ], "embedsnapshot" : 0, "default_bgcolor" : [ 0.207843, 0.215686, 0.278431, 1.0 ], "color" : [ 0.901961, 0.901961, 0.901961, 1.0 ], "elementcolor" : [ 0.376471, 0.407843, 0.619608, 1.0 ], "accentcolor" : [ 0.552941, 0.588235, 0.85098, 1.0 ], "selectioncolor" : [ 0.552941, 0.588235, 0.85098, 1.0 ], "textcolor" : [ 0.090196, 0.07451, 0.07451, 1.0 ], "textcolor_inverse" : [ 0.721569, 0.737255, 0.85098, 1.0 ], "patchlinecolor" : [ 0.207843, 0.215686, 0.278431, 0.9 ], "bgfillcolor_type" : "gradient", "bgfillcolor_color1" : [ 0.376471, 0.407843, 0.619608, 1.0 ], "bgfillcolor_color2" : [ 0.376471, 0.407843, 0.619608, 1.0 ], "bgfillcolor_color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], "bgfillcolor_angle" : 270.0, "bgfillcolor_proportion" : 0.39 } }