Skip to content

Instantly share code, notes, and snippets.

Created December 26, 2013 18:12
Show Gist options
  • Save anonymous/8136853 to your computer and use it in GitHub Desktop.
Save anonymous/8136853 to your computer and use it in GitHub Desktop.
Max Patch of Analysis/Synthesis Filter.
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 2,
"architecture" : "x86"
}
,
"rect" : [ 63.0, 118.0, 838.0, 757.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" : {
"bgcolor" : [ 0.956863, 0.956863, 0.956863, 0.501961 ],
"bubblepoint" : 0.0,
"fontface" : 1,
"fontname" : "Garamond",
"fontsize" : 24.0,
"frgb" : 0.0,
"id" : "obj-3",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 74.25, 425.0, 177.0, 33.0 ],
"text" : "Synthesis Filter",
"textcolor" : [ 0.360784, 0.360784, 0.360784, 1.0 ]
}
}
, {
"box" : {
"id" : "obj-1",
"maxclass" : "spectroscope~",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 74.25, 533.5, 138.0, 70.0 ],
"sono" : 1
}
}
, {
"box" : {
"fontface" : 1,
"fontname" : "Garamond",
"fontsize" : 24.0,
"frgb" : 0.0,
"id" : "obj-49",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 621.0, 81.5, 34.0, 33.0 ],
"text" : "Q",
"textcolor" : [ 0.360784, 0.360784, 0.360784, 1.0 ]
}
}
, {
"box" : {
"fontface" : 1,
"fontname" : "Garamond",
"fontsize" : 24.0,
"frgb" : 0.0,
"id" : "obj-48",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 503.0, 81.5, 62.0, 33.0 ],
"text" : "Gain",
"textcolor" : [ 0.360784, 0.360784, 0.360784, 1.0 ]
}
}
, {
"box" : {
"fontface" : 1,
"fontname" : "Garamond",
"fontsize" : 24.0,
"frgb" : 0.0,
"id" : "obj-47",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 389.5, 81.5, 39.0, 33.0 ],
"text" : "Fc",
"textcolor" : [ 0.360784, 0.360784, 0.360784, 1.0 ]
}
}
, {
"box" : {
"fontface" : 1,
"fontname" : "Garamond",
"fontsize" : 30.0,
"frgb" : 0.0,
"id" : "obj-46",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 19.0, 17.5, 344.0, 40.0 ],
"text" : "Analysis/Synthesis Filter",
"textcolor" : [ 0.360784, 0.360784, 0.360784, 1.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-45",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"patching_rect" : [ 74.25, 86.0, 46.0, 20.0 ],
"text" : "noise~"
}
}
, {
"box" : {
"bgcolor" : [ 0.956863, 0.956863, 0.956863, 0.501961 ],
"bubblepoint" : 0.0,
"fontface" : 1,
"fontname" : "Garamond",
"fontsize" : 24.0,
"frgb" : 0.0,
"id" : "obj-39",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 69.0, 157.0, 177.0, 33.0 ],
"text" : "Analysis Filter",
"textcolor" : [ 0.360784, 0.360784, 0.360784, 1.0 ]
}
}
, {
"box" : {
"id" : "obj-35",
"maxclass" : "spectroscope~",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 91.25, 272.5, 133.0, 71.0 ],
"sono" : 1
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-34",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 680.25, 47.5, 20.0, 20.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"hidden" : 1,
"id" : "obj-30",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 687.75, 98.5, 82.0, 20.0 ],
"text" : "expr sqrt(2)/2"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-28",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"patching_rect" : [ 74.25, 506.0, 130.25, 20.0 ],
"text" : "+~"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-26",
"maxclass" : "newobj",
"numinlets" : 6,
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"patching_rect" : [ 185.5, 472.0, 92.0, 21.0 ],
"text" : "biquad~"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-27",
"maxclass" : "newobj",
"numinlets" : 6,
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"patching_rect" : [ 74.25, 472.0, 92.0, 21.0 ],
"text" : "biquad~"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-23",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"patching_rect" : [ 91.25, 247.0, 132.5, 20.0 ],
"text" : "+~"
}
}
, {
"box" : {
"id" : "obj-22",
"maxclass" : "ezdac~",
"numinlets" : 2,
"numoutlets" : 0,
"patching_rect" : [ 428.0, 581.0, 45.0, 45.0 ]
}
}
, {
"box" : {
"autoout" : 1,
"bgcolor" : [ 0.913725, 0.913725, 1.0, 1.0 ],
"bwidthcolor" : [ 0.462745, 0.47451, 0.65098, 1.0 ],
"domain" : [ 0.0, 22050.0 ],
"fgcolor" : [ 0.756863, 0.756863, 1.0, 1.0 ],
"fontname" : "Arial",
"fontsize" : 12.0,
"hbwidthcolor" : [ 0.823529, 0.290196, 0.211765, 1.0 ],
"hcurvecolor" : [ 1.0, 0.086275, 0.086275, 1.0 ],
"id" : "obj-15",
"ignoreclick" : 1,
"logfreq" : 0,
"markercolor" : [ 0.509804, 0.509804, 0.509804, 1.0 ],
"maxclass" : "filtergraph~",
"nfilters" : 1,
"numinlets" : 8,
"numoutlets" : 7,
"outlettype" : [ "list", "float", "float", "float", "float", "list", "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 545.25, 232.5, 198.5, 97.0 ],
"setfilter" : [ 0, 2, 0, 0, 0, 10000.0, 1.0, 0.707107, 0.0001, 22050.0, 0.0001, 16.0, 0.5, 25.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-19",
"maxclass" : "newobj",
"numinlets" : 6,
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"patching_rect" : [ 185.5, 205.0, 92.0, 21.0 ],
"text" : "biquad~"
}
}
, {
"box" : {
"attr" : "edit_mode",
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-20",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"orientation" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 545.25, 179.5, 82.5, 42.0 ],
"text_width" : 83.0
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"hidden" : 1,
"id" : "obj-10",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 614.0, 81.5, 48.0, 19.0 ],
"text" : "set $1"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"hidden" : 1,
"id" : "obj-9",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 503.0, 81.5, 48.0, 19.0 ],
"text" : "set $1"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"hidden" : 1,
"id" : "obj-8",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 385.0, 81.5, 48.0, 19.0 ],
"text" : "set $1"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-72",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 614.0, 114.0, 61.0, 21.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-74",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 503.0, 114.0, 55.0, 21.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-75",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 385.0, 114.0, 57.0, 21.0 ]
}
}
, {
"box" : {
"autoout" : 1,
"bgcolor" : [ 0.913725, 0.913725, 1.0, 1.0 ],
"bwidthcolor" : [ 0.462745, 0.47451, 0.65098, 1.0 ],
"domain" : [ 0.0, 22050.0 ],
"fgcolor" : [ 0.756863, 0.756863, 1.0, 1.0 ],
"fontname" : "Arial",
"fontsize" : 12.0,
"hbwidthcolor" : [ 0.823529, 0.290196, 0.211765, 1.0 ],
"hcurvecolor" : [ 1.0, 0.086275, 0.086275, 1.0 ],
"id" : "obj-81",
"ignoreclick" : 1,
"logfreq" : 0,
"markercolor" : [ 0.509804, 0.509804, 0.509804, 1.0 ],
"maxclass" : "filtergraph~",
"nfilters" : 1,
"numinlets" : 8,
"numoutlets" : 7,
"outlettype" : [ "list", "float", "float", "float", "float", "list", "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 325.5, 232.5, 198.5, 97.0 ],
"setfilter" : [ 0, 1, 0, 0, 0, 10000.0, 1.0, 0.707107, 0.0001, 22050.0, 0.0001, 16.0, 0.5, 25.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-6",
"maxclass" : "newobj",
"numinlets" : 6,
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"patching_rect" : [ 74.25, 205.0, 92.0, 21.0 ],
"text" : "biquad~"
}
}
, {
"box" : {
"attr" : "edit_mode",
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-12",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"orientation" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 325.5, 172.5, 82.5, 42.0 ],
"text_width" : 83.0
}
}
, {
"box" : {
"bgcolor" : [ 0.694118, 0.694118, 0.694118, 0.501961 ],
"border" : 3,
"bordercolor" : [ 0.360784, 0.360784, 0.360784, 1.0 ],
"id" : "obj-44",
"maxclass" : "panel",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 54.0, 145.5, 239.5, 219.0 ],
"rounded" : 20
}
}
, {
"box" : {
"bgcolor" : [ 0.694118, 0.694118, 0.694118, 0.501961 ],
"border" : 3,
"bordercolor" : [ 0.360784, 0.360784, 0.360784, 1.0 ],
"id" : "obj-2",
"maxclass" : "panel",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 54.0, 406.0, 239.5, 220.0 ],
"rounded" : 20
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-72", 0 ],
"disabled" : 0,
"hidden" : 1,
"source" : [ "obj-10", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-81", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"color" : [ 0.882353, 0.333333, 0.756863, 1.0 ],
"destination" : [ "obj-19", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-15", 0 ]
}
}
, {
"patchline" : {
"color" : [ 0.882353, 0.333333, 0.756863, 1.0 ],
"destination" : [ "obj-26", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-15", 0 ]
}
}
, {
"patchline" : {
"color" : [ 0.941176, 0.27451, 0.823529, 1.0 ],
"destination" : [ "obj-23", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 195.0, 235.0, 214.25, 235.0 ],
"source" : [ "obj-19", 0 ]
}
}
, {
"patchline" : {
"color" : [ 0.941176, 0.27451, 0.823529, 1.0 ],
"destination" : [ "obj-26", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 195.0, 240.0, 195.0, 240.0 ],
"source" : [ "obj-19", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-15", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-35", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-23", 0 ]
}
}
, {
"patchline" : {
"color" : [ 0.941176, 0.27451, 0.823529, 1.0 ],
"destination" : [ "obj-28", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-26", 0 ]
}
}
, {
"patchline" : {
"color" : [ 0.047059, 0.913725, 0.913725, 1.0 ],
"destination" : [ "obj-28", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-27", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-28", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-72", 0 ],
"disabled" : 0,
"hidden" : 1,
"source" : [ "obj-30", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-30", 0 ],
"disabled" : 0,
"hidden" : 1,
"source" : [ "obj-34", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-19", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 83.75, 135.0, 195.0, 135.0 ],
"source" : [ "obj-45", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-45", 0 ]
}
}
, {
"patchline" : {
"color" : [ 0.047059, 0.968627, 0.94902, 1.0 ],
"destination" : [ "obj-23", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 83.75, 235.0, 100.75, 235.0 ],
"source" : [ "obj-6", 0 ]
}
}
, {
"patchline" : {
"color" : [ 0.047059, 0.968627, 0.94902, 1.0 ],
"destination" : [ "obj-27", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 83.75, 256.0, 83.75, 256.0 ],
"source" : [ "obj-6", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-15", 7 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-72", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-81", 7 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-72", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-15", 6 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-74", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-81", 6 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-74", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-15", 5 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-75", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-81", 5 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-75", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-75", 0 ],
"disabled" : 0,
"hidden" : 1,
"source" : [ "obj-8", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"disabled" : 0,
"hidden" : 1,
"source" : [ "obj-81", 3 ]
}
}
, {
"patchline" : {
"color" : [ 0.101961, 0.913725, 0.913725, 1.0 ],
"destination" : [ "obj-27", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-81", 0 ]
}
}
, {
"patchline" : {
"color" : [ 0.101961, 0.913725, 0.913725, 1.0 ],
"destination" : [ "obj-6", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-81", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 0 ],
"disabled" : 0,
"hidden" : 1,
"source" : [ "obj-81", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"disabled" : 0,
"hidden" : 1,
"source" : [ "obj-81", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-74", 0 ],
"disabled" : 0,
"hidden" : 1,
"source" : [ "obj-9", 0 ]
}
}
],
"dependency_cache" : [ {
"name" : "attrui.mxe",
"type" : "iLaF"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment