{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 4 } , "rect" : [ 97.0, 112.0, 812.0, 487.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "statusbarvisible" : 2, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "boxes" : [ { "box" : { "fontname" : "Arial", "fontsize" : 11.595187, "id" : "obj-20", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 461.5, 21.0, 198.0, 20.0 ], "presentation_rect" : [ 476.5, 16.0, 0.0, 0.0 ], "text" : "try some different cut off frequencies" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-19", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 417.5, 21.0, 44.0, 18.0 ], "presentation_rect" : [ 419.0, 21.0, 0.0, 0.0 ], "text" : "22051" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-18", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 366.0, 21.0, 44.0, 18.0 ], "presentation_rect" : [ 364.5, 21.0, 0.0, 0.0 ], "text" : "19000" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-17", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 314.5, 21.0, 44.0, 18.0 ], "presentation_rect" : [ 314.5, 23.0, 0.0, 0.0 ], "text" : "12000" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-16", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 270.5, 21.0, 37.0, 18.0 ], "text" : "5000" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-14", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 230.0, 21.0, 32.5, 18.0 ], "text" : "500" } } , { "box" : { "bubble" : 1, "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-12", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 628.0, 201.5, 136.0, 38.0 ], "presentation_rect" : [ 628.0, 178.0, 0.0, 0.0 ], "text" : "simulation of Max5 onepole~ object" } } , { "box" : { "bubble" : 1, "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-11", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 389.0, 201.5, 136.0, 38.0 ], "presentation_rect" : [ 389.0, 181.0, 0.0, 0.0 ], "text" : "Max 6 onepole~ object" } } , { "box" : { "bubble" : 1, "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-10", "linecount" : 5, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 126.0, 181.0, 150.0, 79.0 ], "text" : "Max 6 gen~ onepole example - see gen~.filters.maxpat in the gen examples folder" } } , { "box" : { "id" : "obj-3", "maxclass" : "spectroscope~", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 541.0, 290.0, 187.0, 77.0 ], "presentation_rect" : [ 442.0, 239.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 11.595187, "id" : "obj-4", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 597.0, 139.0, 56.0, 20.0 ], "presentation_rect" : [ 498.0, 143.0, 0.0, 0.0 ], "text" : "sig~ 300" } } , { "box" : { "fontname" : "Arial", "fontsize" : 11.595187, "id" : "obj-6", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 4 } , "rect" : [ 285.0, 107.0, 479.0, 469.0 ], "bgcolor" : [ 0.9, 0.9, 0.9, 1.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "statusbarvisible" : 2, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "boxes" : [ { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-9", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 252.0, 104.0, 174.0, 20.0 ], "presentation_rect" : [ 254.0, 92.0, 0.0, 0.0 ], "text" : "notice this extra clip" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-8", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 208.5, 46.0, 54.0, 20.0 ], "text" : "0.00001" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-7", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 271.0, 46.0, 107.0, 20.0 ], "text" : "expr samplerate/4" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-6", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 104.0, 46.0, 20.0 ], "text" : "clip" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-10", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 155.0, 147.0, 20.0 ], "text" : "expr in1*2*PI/samplerate" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-13", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 271.0, 227.0, 74.0, 48.0 ], "text" : "convert frequency to factor" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-12", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 105.0, 363.0, 275.0, 48.0 ], "text" : "A onepole filter is essentially linear interpolation between new input (x1) and previous input (y0):\ny1 = y0 + factor * (x1-y0)" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-11", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 44.0, 317.0, 170.0, 20.0 ], "text" : "mix" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-20", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 270.0, 181.0, 74.0, 34.0 ], "text" : "radians per sample" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-14", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 44.0, 288.0, 67.0, 20.0 ], "text" : "history y 0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-5", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 256.0, 26.0, 20.0 ], "text" : "sin" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-3", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 286.0, 129.0, 20.0 ], "text" : "clip 0.00001 0.999998" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 34.0, 60.0, 127.0, 20.0 ], "text" : "in 1 @comment input" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-2", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 15.0, 155.0, 20.0 ], "text" : "in 2 @comment frequency" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-4", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 44.0, 378.0, 38.0, 20.0 ], "text" : "out 1" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-11", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-10", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 53.5, 343.0, 32.5, 343.0, 32.5, 282.0, 53.5, 282.0 ], "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-4", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-11", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 53.5, 312.0, 53.5, 312.0 ], "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-2", 0 ] } } , { "patchline" : { "destination" : [ "obj-11", 2 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-3", 0 ] } } , { "patchline" : { "destination" : [ "obj-3", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-5", 0 ] } } , { "patchline" : { "destination" : [ "obj-10", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-6", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 2 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-7", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-8", 0 ] } } ], "dependency_cache" : [ { "name" : "history.mxo", "type" : "iLaX" } , { "name" : "mix.mxo", "type" : "iLaX" } , { "name" : "expr.mxo", "type" : "iLaX" } , { "name" : "float.mxo", "type" : "iLaX" } ] } , "patching_rect" : [ 541.0, 210.5, 75.0, 20.0 ], "presentation_rect" : [ 442.0, 176.0, 0.0, 0.0 ], "text" : "gen~" } } , { "box" : { "id" : "obj-2", "maxclass" : "spectroscope~", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 322.0, 290.0, 187.0, 77.0 ], "presentation_rect" : [ 409.0, 241.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 322.0, 210.5, 60.0, 20.0 ], "text" : "onepole~" } } , { "box" : { "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "border" : 1.75, "bordercolor" : [ 0.501961, 0.501961, 0.501961, 1.0 ], "id" : "obj-39", "local" : 1, "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, "patching_rect" : [ 42.0, 390.5, 44.0, 44.0 ], "prototypename" : "helpfile" } } , { "box" : { "fontname" : "Arial", "fontsize" : 11.595187, "id" : "obj-24", "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 322.0, 88.0, 88.0, 20.0 ] } } , { "box" : { "id" : "obj-41", "maxclass" : "spectroscope~", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 42.0, 290.0, 187.0, 77.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 11.595187, "id" : "obj-48", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 98.0, 139.0, 56.0, 20.0 ], "text" : "sig~ 300" } } , { "box" : { "fontname" : "Arial", "fontsize" : 11.595187, "id" : "obj-50", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 42.0, 39.0, 45.0, 20.0 ], "text" : "noise~" } } , { "box" : { "fontname" : "Arial", "fontsize" : 11.595187, "id" : "obj-51", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 4 } , "rect" : [ 50.0, 94.0, 433.0, 405.0 ], "bgcolor" : [ 0.9, 0.9, 0.9, 1.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "statusbarvisible" : 2, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "boxes" : [ { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-10", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 105.0, 147.0, 20.0 ], "text" : "expr in1*2*PI/samplerate" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-13", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 271.0, 181.0, 74.0, 48.0 ], "text" : "convert frequency to factor" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-12", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 105.0, 317.0, 275.0, 48.0 ], "text" : "A onepole filter is essentially linear interpolation between new input (x1) and previous input (y0):\ny1 = y0 + factor * (x1-y0)" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-11", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 44.0, 271.0, 170.0, 20.0 ], "text" : "mix" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-20", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 270.0, 135.0, 74.0, 34.0 ], "text" : "radians per sample" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-14", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 44.0, 242.0, 67.0, 20.0 ], "text" : "history y 0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-5", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 210.0, 26.0, 20.0 ], "text" : "sin" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-3", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 240.0, 125.0, 20.0 ], "text" : "clip 0.00001 0.99999" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 52.0, 60.0, 127.0, 20.0 ], "text" : "in 1 @comment input" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-2", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 60.0, 155.0, 20.0 ], "text" : "in 2 @comment frequency" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-4", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 44.0, 332.0, 38.0, 20.0 ], "text" : "out 1" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-11", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-10", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 53.5, 297.0, 32.5, 297.0, 32.5, 236.0, 53.5, 236.0 ], "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-4", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-11", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 53.5, 266.0, 53.5, 266.0 ], "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-10", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-2", 0 ] } } , { "patchline" : { "destination" : [ "obj-11", 2 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-3", 0 ] } } , { "patchline" : { "destination" : [ "obj-3", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-5", 0 ] } } ], "dependency_cache" : [ { "name" : "history.mxo", "type" : "iLaX" } , { "name" : "mix.mxo", "type" : "iLaX" } , { "name" : "expr.mxo", "type" : "iLaX" } ] } , "patching_rect" : [ 42.0, 210.5, 75.0, 20.0 ], "text" : "gen~" } } , { "box" : { "fontname" : "Arial", "fontsize" : 11.595187, "id" : "obj-52", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 417.5, 88.0, 35.0, 20.0 ], "text" : "freq" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-2", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-24", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-24", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-16", 0 ] } } , { "patchline" : { "destination" : [ "obj-24", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-17", 0 ] } } , { "patchline" : { "destination" : [ "obj-24", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-24", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-19", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-24", 0 ] } } , { "patchline" : { "destination" : [ "obj-4", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-24", 0 ] } } , { "patchline" : { "destination" : [ "obj-48", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-24", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 606.5, 205.0, 606.5, 205.0 ], "source" : [ "obj-4", 0 ] } } , { "patchline" : { "destination" : [ "obj-51", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 107.5, 166.5, 107.5, 166.5 ], "source" : [ "obj-48", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-50", 0 ] } } , { "patchline" : { "destination" : [ "obj-51", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-50", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-50", 0 ] } } , { "patchline" : { "destination" : [ "obj-41", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-51", 0 ] } } , { "patchline" : { "destination" : [ "obj-3", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-6", 0 ] } } ], "dependency_cache" : [ ] } }