{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 7, "minor" : 0, "revision" : 1, "architecture" : "x86", "modernui" : 1 } , "rect" : [ 477.0, 276.0, 851.0, 586.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" : { "id" : "obj-49", "maxclass" : "preset", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "preset", "int", "preset", "int" ], "patching_rect" : [ 75.0, 155.0, 100.0, 40.0 ], "preset_data" : [ { "number" : 1, "data" : [ 4, "obj-1", "function", "clear", 7, "obj-1", "function", "add", 0.0, 0.0, 0, 7, "obj-1", "function", "add", 228.723404, 1.0, 0, 7, "obj-1", "function", "add", 271.276581, 0.386667, 0, 7, "obj-1", "function", "add", 595.74469, 0.0, 0, 7, "obj-1", "function", "add", 680.851074, 0.64, 0, 7, "obj-1", "function", "add", 739.361694, 0.12, 0, 7, "obj-1", "function", "add", 792.553162, 0.573333, 0, 7, "obj-1", "function", "add", 824.468079, 0.066667, 0, 7, "obj-1", "function", "add", 1000.0, 0.0, 0, 5, "obj-1", "function", "domain", 1000.0, 6, "obj-1", "function", "range", 0.0, 1.0, 5, "obj-1", "function", "mode", 0, 6, "obj-14", "gain~", "list", 101, 10.0, 5, "obj-29", "number~", "list", 0.0, 5, "obj-32", "radiogroup", "int", 1, 4, "obj-44", "function", "clear", 7, "obj-44", "function", "add", 0.0, 0.0, 0, 7, "obj-44", "function", "add", 228.723404, 1.0, 0, 7, "obj-44", "function", "add", 271.276581, 0.386667, 0, 7, "obj-44", "function", "add", 595.74469, 0.0, 0, 7, "obj-44", "function", "add", 680.851074, 0.64, 0, 7, "obj-44", "function", "add", 739.361694, 0.12, 0, 7, "obj-44", "function", "add", 792.553162, 0.573333, 0, 7, "obj-44", "function", "add", 824.468079, 0.066667, 0, 7, "obj-44", "function", "add", 1000.0, 0.0, 0, 5, "obj-44", "function", "domain", 1000.0, 6, "obj-44", "function", "range", 0.0, 1.0, 5, "obj-44", "function", "mode", 0 ] } , { "number" : 2, "data" : [ 4, "obj-1", "function", "clear", 7, "obj-1", "function", "add", 0.0, 0.0, 0, 7, "obj-1", "function", "add", 154.255325, 0.546667, 0, 7, "obj-1", "function", "add", 271.276581, 0.84, 0, 7, "obj-1", "function", "add", 351.063843, 0.933333, 0, 7, "obj-1", "function", "add", 441.489349, 0.973333, 0, 7, "obj-1", "function", "add", 441.489349, 0.0, 0, 7, "obj-1", "function", "add", 521.276611, 0.0, 0, 7, "obj-1", "function", "add", 521.276611, 0.973333, 0, 7, "obj-1", "function", "add", 606.382996, 0.906667, 0, 7, "obj-1", "function", "add", 723.404236, 0.693333, 0, 7, "obj-1", "function", "add", 797.872314, 0.506667, 0, 7, "obj-1", "function", "add", 1000.0, 0.0, 0, 5, "obj-1", "function", "domain", 1000.0, 6, "obj-1", "function", "range", 0.0, 1.0, 5, "obj-1", "function", "mode", 0, 6, "obj-14", "gain~", "list", 101, 10.0, 5, "obj-29", "number~", "list", 0.0, 5, "obj-32", "radiogroup", "int", 1, 4, "obj-44", "function", "clear", 7, "obj-44", "function", "add", 0.0, 0.026667, 0, 7, "obj-44", "function", "add", 95.744682, 0.546667, 0, 7, "obj-44", "function", "add", 223.404251, 0.88, 0, 7, "obj-44", "function", "add", 335.106384, 0.986667, 0, 7, "obj-44", "function", "add", 335.106384, 0.0, 0, 7, "obj-44", "function", "add", 452.127655, 0.0, 0, 7, "obj-44", "function", "add", 452.127655, 0.973333, 0, 7, "obj-44", "function", "add", 531.914917, 0.96, 0, 7, "obj-44", "function", "add", 643.617004, 0.8, 0, 7, "obj-44", "function", "add", 797.872314, 0.52, 0, 7, "obj-44", "function", "add", 1000.0, 0.0, 0, 5, "obj-44", "function", "domain", 1000.0, 6, "obj-44", "function", "range", 0.0, 1.0, 5, "obj-44", "function", "mode", 0 ] } , { "number" : 3, "data" : [ 4, "obj-1", "function", "clear", 7, "obj-1", "function", "add", 0.0, 0.0, 0, 7, "obj-1", "function", "add", 0.0, 1.0, 0, 7, "obj-1", "function", "add", 74.468086, 1.0, 0, 7, "obj-1", "function", "add", 74.468086, 0.0, 0, 7, "obj-1", "function", "add", 159.574463, 0.0, 0, 7, "obj-1", "function", "add", 159.574463, 1.0, 0, 7, "obj-1", "function", "add", 228.723404, 1.0, 0, 7, "obj-1", "function", "add", 228.723404, 0.0, 0, 7, "obj-1", "function", "add", 308.510651, 0.0, 0, 7, "obj-1", "function", "add", 308.510651, 1.0, 0, 7, "obj-1", "function", "add", 393.617035, 1.0, 0, 7, "obj-1", "function", "add", 393.617035, 0.0, 0, 7, "obj-1", "function", "add", 1000.0, 0.0, 0, 5, "obj-1", "function", "domain", 1000.0, 6, "obj-1", "function", "range", 0.0, 1.0, 5, "obj-1", "function", "mode", 0, 6, "obj-14", "gain~", "list", 101, 10.0, 5, "obj-29", "number~", "list", 0.0, 5, "obj-32", "radiogroup", "int", 2, 4, "obj-44", "function", "clear", 7, "obj-44", "function", "add", 0.0, 0.026667, 0, 7, "obj-44", "function", "add", 0.0, 1.0, 0, 7, "obj-44", "function", "add", 111.702126, 1.0, 0, 7, "obj-44", "function", "add", 111.702126, 0.0, 0, 7, "obj-44", "function", "add", 223.404251, 0.0, 0, 7, "obj-44", "function", "add", 223.404251, 1.0, 0, 7, "obj-44", "function", "add", 324.468079, 1.0, 0, 7, "obj-44", "function", "add", 324.468079, 0.0, 0, 7, "obj-44", "function", "add", 430.851074, 0.0, 0, 7, "obj-44", "function", "add", 430.851074, 1.0, 0, 7, "obj-44", "function", "add", 531.914917, 1.0, 0, 7, "obj-44", "function", "add", 531.914917, 0.0, 0, 7, "obj-44", "function", "add", 1000.0, 0.0, 0, 5, "obj-44", "function", "domain", 1000.0, 6, "obj-44", "function", "range", 0.0, 1.0, 5, "obj-44", "function", "mode", 0 ] } ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-48", "linecount" : 12, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 540.0, 346.5, 249.0, 167.0 ], "style" : "", "text" : "Here we use the function object to graphically edit an envelope. In both cases information from that function is forwarded to the line~ object, which generates ramps between values. In the example on the left, the ramp is used to control the amplitude of a 440 Hz sinusoidal wave. In the example on the right, the ramp is used to control the frequency of a sinusoidal wave. Explore the presets and create some of your own. Note also the number~ object which displays the frequency in the example on the right." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-41", "linecount" : 4, "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 585.0, 270.0, 202.0, 62.0 ], "style" : "", "text" : "1. 228.723404 0.386667 42.553177 0. 324.468109 0.64 85.106384 0.12 58.51062 0.573333 53.191467 0.066667 31.914917 0. 175.531921" } } , { "box" : { "id" : "obj-42", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 585.0, 92.0, 30.0, 30.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-43", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 630.0, 98.0, 37.0, 22.0 ], "style" : "", "text" : "clear" } } , { "box" : { "addpoints" : [ 0.0, 0.0, 0, 228.723404, 1.0, 0, 271.276581, 0.386667, 0, 595.74469, 0.0, 0, 680.851074, 0.64, 0, 739.361694, 0.12, 0, 792.553162, 0.573333, 0, 824.468079, 0.066667, 0, 1000.0, 0.0, 0 ], "id" : "obj-44", "maxclass" : "function", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "float", "", "", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 585.0, 145.0, 200.0, 100.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-38", "linecount" : 4, "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 255.0, 270.0, 202.0, 62.0 ], "style" : "", "text" : "1. 228.723404 0.386667 42.553177 0. 324.468109 0.64 85.106384 0.12 58.51062 0.573333 53.191467 0.066667 31.914917 0. 175.531921" } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 13.0, "id" : "obj-34", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 58.0, 85.0, 81.0, 50.0 ], "style" : "", "text" : "Off\nAmplitude\nFrequency" } } , { "box" : { "disabled" : [ 0, 0, 0 ], "id" : "obj-32", "itemtype" : 0, "maxclass" : "radiogroup", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, "patching_rect" : [ 40.0, 85.0, 18.0, 50.0 ], "size" : 3, "style" : "", "value" : 1 } } , { "box" : { "id" : "obj-31", "logfreq" : 1, "maxclass" : "spectroscope~", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 225.0, 360.0, 300.0, 140.0 ], "scroll" : 2, "sono" : 1, "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-30", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 40.0, 315.0, 70.0, 22.0 ], "style" : "", "text" : "selector~ 2" } } , { "box" : { "fontface" : 0, "fontname" : "Arial", "fontsize" : 12.0, "ft1" : 5.0, "id" : "obj-29", "maxclass" : "number~", "mode" : 2, "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "float" ], "patching_rect" : [ 495.0, 225.0, 56.0, 22.0 ], "sig" : 0.0, "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-28", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 480.0, 185.0, 49.0, 22.0 ], "style" : "", "text" : "*~ 440." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-26", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 480.0, 255.0, 45.0, 22.0 ], "style" : "", "text" : "cycle~" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-22", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "bang" ], "patching_rect" : [ 480.0, 155.0, 36.0, 22.0 ], "style" : "", "text" : "line~" } } , { "box" : { "bufsize" : 64, "id" : "obj-17", "maxclass" : "scope~", "numinlets" : 2, "numoutlets" : 0, "patching_rect" : [ 75.0, 360.0, 130.0, 140.0 ], "style" : "" } } , { "box" : { "id" : "obj-15", "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, "patching_rect" : [ 39.5, 510.0, 45.0, 45.0 ], "style" : "" } } , { "box" : { "id" : "obj-14", "interpinlet" : 1, "maxclass" : "gain~", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "int" ], "parameter_enable" : 0, "patching_rect" : [ 40.0, 360.0, 22.0, 140.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-13", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 122.25, 225.0, 72.0, 22.0 ], "style" : "", "text" : "cycle~ 440." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-12", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 156.25, 255.0, 32.5, 22.0 ], "style" : "", "text" : "*~" } } , { "box" : { "id" : "obj-11", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 255.0, 92.0, 28.0, 28.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-9", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 300.0, 97.0, 37.0, 22.0 ], "style" : "", "text" : "clear" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-7", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "bang" ], "patching_rect" : [ 201.25, 225.0, 36.0, 22.0 ], "style" : "", "text" : "line~" } } , { "box" : { "addpoints" : [ 0.0, 0.0, 0, 228.723404, 1.0, 0, 271.276581, 0.386667, 0, 595.74469, 0.0, 0, 680.851074, 0.64, 0, 739.361694, 0.12, 0, 792.553162, 0.573333, 0, 824.468079, 0.066667, 0, 1000.0, 0.0, 0 ], "id" : "obj-1", "maxclass" : "function", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "float", "", "", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 255.0, 145.0, 200.0, 100.0 ], "style" : "" } } , { "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, 315.0, 51.0 ], "style" : "", "text" : "Patch 7-053. Envelopes\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, 75.0, 810.0, 495.0 ], "proportion" : 0.39, "rounded" : 20, "style" : "" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-38", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 324.833344, 255.0, 447.5, 255.0 ], "source" : [ "obj-1", 1 ] } } , { "patchline" : { "destination" : [ "obj-7", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 324.833344, 255.0, 245.0, 255.0, 245.0, 217.0, 210.75, 217.0 ], "source" : [ "obj-1", 1 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 165.75, 287.0, 75.0, 287.0 ], "source" : [ "obj-12", 0 ] } } , { "patchline" : { "destination" : [ "obj-12", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-13", 0 ] } } , { "patchline" : { "destination" : [ "obj-15", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-15", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-28", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-22", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 2 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 489.5, 339.0, 120.0, 339.0, 120.0, 312.0, 100.5, 312.0 ], "source" : [ "obj-26", 0 ] } } , { "patchline" : { "destination" : [ "obj-26", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-28", 0 ] } } , { "patchline" : { "destination" : [ "obj-29", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-28", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-30", 0 ] } } , { "patchline" : { "destination" : [ "obj-17", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 49.5, 345.0, 84.5, 345.0 ], "source" : [ "obj-30", 0 ] } } , { "patchline" : { "destination" : [ "obj-31", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 49.5, 345.0, 234.5, 345.0 ], "source" : [ "obj-30", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-32", 0 ] } } , { "patchline" : { "destination" : [ "obj-44", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-42", 0 ] } } , { "patchline" : { "destination" : [ "obj-44", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-43", 0 ] } } , { "patchline" : { "destination" : [ "obj-22", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 654.833313, 255.0, 561.0, 255.0, 561.0, 141.0, 489.5, 141.0 ], "source" : [ "obj-44", 1 ] } } , { "patchline" : { "destination" : [ "obj-41", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 654.833313, 255.0, 777.5, 255.0 ], "source" : [ "obj-44", 1 ] } } , { "patchline" : { "destination" : [ "obj-12", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-7", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-9", 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 } }