{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 1 } , "rect" : [ 10.0, 59.0, 600.0, 426.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" : 9.0, "id" : "obj-1", "linecount" : 7, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 318.0, 181.0, 195.0, 79.0 ], "text" : "notch: H(s) = (s^2 + 1) / (s^2 + s/Q + 1);\ra0 = 1;\ra1 = -2*cs;\ra2 = 1;\rb0 = 1 + alpha;\rb1 = -2*cs;\rb2 = 1 - alpha;\r" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-2", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 208.0, 315.0, 133.0, 17.0 ], "text" : "expr (1. - $f1) / (1. + $f1)" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-3", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 151.0, 280.0, 140.0, 17.0 ], "text" : "expr (-2. * $f2) / (1. + $f1)" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-4", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 132.0, 259.0, 98.0, 17.0 ], "text" : "expr 1. / (1. + $f1)" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-5", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 103.0, 227.0, 31.0, 17.0 ], "text" : "alpha" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-6", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 112.0, 195.0, 18.0, 17.0 ], "text" : "sn" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-7", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 317.0, 127.0, 152.0, 48.0 ], "text" : "omega = 2*PI*cf/sample_rate;\rsn = sin(omega);\rcs = cos(omega);\ralpha = sn/(2*Q);\r" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-8", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 275.0, 86.0, 27.0, 17.0 ], "text" : "/ 2." } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-9", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "int", "float", "int", "int" ], "patching_rect" : [ 254.0, 60.0, 52.0, 17.0 ], "text" : "dspstate~" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-10", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "bang", "float" ], "patching_rect" : [ 208.0, 60.0, 27.0, 17.0 ], "text" : "t b f" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-11", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 132.0, 95.0, 27.0, 17.0 ], "text" : "f" } } , { "box" : { "comment" : "List of Filter Coefs", "id" : "obj-12", "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 132.0, 377.0, 15.0, 15.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-13", "maxclass" : "newobj", "numinlets" : 5, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 132.0, 341.0, 88.0, 17.0 ], "text" : "pack 0. 0. 0. 0. 0." } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-14", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 225.0, 135.0, 27.0, 17.0 ], "text" : "* 2." } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-15", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 132.0, 208.0, 27.0, 17.0 ], "text" : "/ 1." } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-16", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 132.0, 181.0, 69.0, 17.0 ], "text" : "expr sin($f1)" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-17", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 212.0, 181.0, 71.0, 17.0 ], "text" : "expr cos($f1)" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-18", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 132.0, 140.0, 50.0, 17.0 ], "text" : "/ 22050." } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-19", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 132.0, 117.0, 63.0, 17.0 ], "text" : "* 3.141593" } } , { "box" : { "comment" : "Q (Resonance)", "id" : "obj-20", "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 208.0, 34.0, 15.0, 15.0 ] } } , { "box" : { "comment" : "Center Frequency (Hz.)", "id" : "obj-21", "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 132.0, 34.0, 15.0, 15.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-22", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 150.0, 34.0, 17.0, 17.0 ], "text" : "cf" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-23", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 228.0, 34.0, 16.0, 17.0 ], "text" : "Q" } } , { "box" : { "fontname" : "Arial", "fontsize" : 9.0, "id" : "obj-24", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 224.0, 199.0, 18.0, 17.0 ], "text" : "cs" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-11", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-10", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-10", 1 ] } } , { "patchline" : { "destination" : [ "obj-19", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-11", 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-2", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-15", 0 ] } } , { "patchline" : { "destination" : [ "obj-3", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-15", 0 ] } } , { "patchline" : { "destination" : [ "obj-4", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-15", 0 ] } } , { "patchline" : { "destination" : [ "obj-15", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-16", 0 ] } } , { "patchline" : { "destination" : [ "obj-3", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-17", 0 ] } } , { "patchline" : { "destination" : [ "obj-16", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-17", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-19", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 4 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-2", 0 ] } } , { "patchline" : { "destination" : [ "obj-10", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-20", 0 ] } } , { "patchline" : { "destination" : [ "obj-11", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-21", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 3 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-3", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-3", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 2 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-4", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-4", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-8", 0 ] } } , { "patchline" : { "destination" : [ "obj-8", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-9", 1 ] } } ], "dependency_cache" : [ ] } }