{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 8 } , "rect" : [ 1005.0, 112.0, 838.0, 588.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, "frgb" : 0.0, "id" : "obj-34", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 360.0, 135.0, 435.0, 60.0 ], "text" : "The four outlets of svf~ provide signals with frequencies over 1000 Hz filtered out (low pass), frequencies below 1000 Hz filtered out (high pass), frequencies around 1000 Hz passed (band pass), and frequencies around 1000 Hz filtered out (notch)." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-32", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 360.0, 210.0, 435.0, 33.0 ], "text" : "The signal multiplication objects allow us to add and remove the filtered signals as desired." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-30", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 360.0, 90.0, 435.0, 33.0 ], "text" : "In the example shown here, we use the noise~ object to create a signal that consists of uniformly distributed random white noise. " } } , { "box" : { "id" : "obj-28", "logfreq" : 1, "maxclass" : "spectroscope~", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 210.0, 135.0, 120.0, 120.0 ], "presentation_rect" : [ 217.0, 138.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-27", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 645.0, 525.0, 120.0, 33.0 ], "presentation_rect" : [ 616.0, 481.0, 0.0, 0.0 ], "text" : "Notch (band reject) output" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-26", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 465.0, 525.0, 105.0, 20.0 ], "presentation_rect" : [ 434.0, 479.0, 0.0, 0.0 ], "text" : "Band pass output" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-25", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 300.0, 525.0, 105.0, 20.0 ], "presentation_rect" : [ 289.0, 484.0, 0.0, 0.0 ], "text" : "High pass output" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-24", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 135.0, 525.0, 105.0, 20.0 ], "text" : "Low pass output" } } , { "box" : { "id" : "obj-21", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 662.0, 315.0, 20.0, 20.0 ], "presentation_rect" : [ 600.0, 268.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-22", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 645.0, 345.0, 36.0, 20.0 ], "presentation_rect" : [ 583.0, 298.0, 0.0, 0.0 ], "text" : "*~ 0." } } , { "box" : { "id" : "obj-19", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 482.0, 315.0, 20.0, 20.0 ], "presentation_rect" : [ 422.0, 274.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-20", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 465.0, 345.0, 36.0, 20.0 ], "presentation_rect" : [ 405.0, 304.0, 0.0, 0.0 ], "text" : "*~ 0." } } , { "box" : { "id" : "obj-17", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 317.0, 315.0, 20.0, 20.0 ], "presentation_rect" : [ 271.0, 269.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-18", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 300.0, 345.0, 36.0, 20.0 ], "presentation_rect" : [ 254.0, 299.0, 0.0, 0.0 ], "text" : "*~ 0." } } , { "box" : { "id" : "obj-16", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 152.0, 315.0, 20.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-14", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 135.0, 345.0, 36.0, 20.0 ], "text" : "*~ 0." } } , { "box" : { "id" : "obj-13", "maxclass" : "gain~", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "int" ], "parameter_enable" : 0, "patching_rect" : [ 45.0, 345.0, 22.0, 140.0 ] } } , { "box" : { "id" : "obj-12", "logfreq" : 1, "maxclass" : "spectroscope~", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 645.0, 390.0, 120.0, 120.0 ], "presentation_rect" : [ 513.0, 252.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-11", "logfreq" : 1, "maxclass" : "spectroscope~", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 465.0, 390.0, 120.0, 120.0 ], "presentation_rect" : [ 381.0, 258.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-10", "logfreq" : 1, "maxclass" : "spectroscope~", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 300.0, 390.0, 120.0, 120.0 ], "presentation_rect" : [ 242.0, 252.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-9", "logfreq" : 1, "maxclass" : "spectroscope~", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 135.0, 390.0, 120.0, 120.0 ] } } , { "box" : { "id" : "obj-8", "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, "patching_rect" : [ 45.0, 495.0, 45.0, 45.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-7", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 4, "outlettype" : [ "signal", "signal", "signal", "signal" ], "patching_rect" : [ 135.0, 254.0, 66.0, 20.0 ], "text" : "svf~ 1000." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 135.0, 165.0, 46.0, 20.0 ], "text" : "noise~" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-4", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 90.0, 300.0, 33.0 ], "text" : "The svf~ object allows us to filter audio signals by choosing to pass or reject some frequencies. " } } , { "box" : { "bubble" : 1, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-2", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 15.0, 315.0, 51.0 ], "text" : "Patch 069. Filters\nWilliam J Turkel\nhttp://williamjturkel.net/code/#programming" } } , { "box" : { "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "border" : 1, "id" : "obj-3", "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 77.5, 810.0, 495.0 ], "rounded" : 20 } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-28", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 144.5, 195.0, 195.0, 195.0, 195.0, 132.0, 219.5, 132.0 ], "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-7", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-8", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-13", 0 ] } } , { "patchline" : { "destination" : [ "obj-8", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-13", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 144.5, 375.0, 78.0, 375.0, 78.0, 342.0, 54.0, 342.0 ], "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-16", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-17", 0 ] } } , { "patchline" : { "destination" : [ "obj-10", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 309.5, 375.0, 78.0, 375.0, 78.0, 342.0, 54.0, 342.0 ], "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-20", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-19", 0 ] } } , { "patchline" : { "destination" : [ "obj-11", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-20", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 474.5, 375.0, 78.0, 375.0, 78.0, 342.0, 54.0, 342.0 ], "source" : [ "obj-20", 0 ] } } , { "patchline" : { "destination" : [ "obj-22", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-21", 0 ] } } , { "patchline" : { "destination" : [ "obj-12", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-22", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 654.5, 375.0, 78.0, 375.0, 78.0, 342.0, 54.0, 342.0 ], "source" : [ "obj-22", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-7", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 160.166672, 293.0, 294.0, 293.0, 294.0, 339.0, 309.5, 339.0 ], "source" : [ "obj-7", 1 ] } } , { "patchline" : { "destination" : [ "obj-20", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 175.833328, 285.0, 444.0, 285.0, 444.0, 339.0, 474.5, 339.0 ], "source" : [ "obj-7", 2 ] } } , { "patchline" : { "destination" : [ "obj-22", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 191.5, 276.0, 624.0, 276.0, 624.0, 339.0, 654.5, 339.0 ], "source" : [ "obj-7", 3 ] } } ], "dependency_cache" : [ ] } }