Proximity Measurement and OSC Communication via Grove Ultrasonic Ranger on Bela
Marlon Schumacher
14.03.25 f6ee107eb8024014b7792e0e4b97e16f05ce7d00
feat: add Testpatch in Max for Grove UR
1 files added
1413 ■■■■■ changed files
Grove-UR2 test.maxpat 1413 ●●●●● patch | view | raw | blame | history
Grove-UR2 test.maxpat
New file
@@ -0,0 +1,1413 @@
{
    "patcher" :     {
        "fileversion" : 1,
        "appversion" :         {
            "major" : 8,
            "minor" : 6,
            "revision" : 5,
            "architecture" : "x64",
            "modernui" : 1
        }
,
        "classnamespace" : "box",
        "rect" : [ 549.0, 247.0, 953.0, 670.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" : "",
        "assistshowspatchername" : 0,
        "boxes" : [             {
                "box" :                 {
                    "id" : "obj-24",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "float" ],
                    "patching_rect" : [ 661.0, 263.0, 29.5, 22.0 ],
                    "text" : "* 5."
                }
            }
,             {
                "box" :                 {
                    "format" : 6,
                    "id" : "obj-23",
                    "maxclass" : "flonum",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 728.0, 283.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-21",
                    "maxclass" : "ezdac~",
                    "numinlets" : 2,
                    "numoutlets" : 0,
                    "patching_rect" : [ 654.0, 610.0, 45.0, 45.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-20",
                    "maxclass" : "gain~",
                    "multichannelvariant" : 0,
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "signal", "" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 134.0, 430.0, 39.0, 105.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-7",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "float" ],
                    "patching_rect" : [ 661.0, 313.0, 42.0, 22.0 ],
                    "text" : "+ 500."
                }
            }
,             {
                "box" :                 {
                    "format" : 6,
                    "id" : "obj-8",
                    "maxclass" : "flonum",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 718.0, 350.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-10",
                    "maxclass" : "gain~",
                    "multichannelvariant" : 0,
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "signal", "" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 662.0, 486.0, 39.0, 105.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-15",
                    "maxclass" : "newobj",
                    "numinlets" : 3,
                    "numoutlets" : 1,
                    "outlettype" : [ "signal" ],
                    "patching_rect" : [ 661.0, 402.0, 100.0, 22.0 ],
                    "text" : "slide~ 1000 1000"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-17",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "signal" ],
                    "patching_rect" : [ 661.0, 350.0, 31.0, 22.0 ],
                    "text" : "sig~"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-18",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "signal" ],
                    "patching_rect" : [ 662.0, 435.0, 43.0, 22.0 ],
                    "text" : "cycle~"
                }
            }
,             {
                "box" :                 {
                    "format" : 6,
                    "id" : "obj-19",
                    "maxclass" : "flonum",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 661.0, 222.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-2",
                    "maxclass" : "newobj",
                    "numinlets" : 0,
                    "numoutlets" : 0,
                    "patching_rect" : [ 282.0, 217.0, 107.0, 22.0 ],
                    "text" : "dot.leakyintegrator"
                }
            }
,             {
                "box" :                 {
                    "fontname" : "Arial",
                    "fontsize" : 12.0,
                    "id" : "obj-16",
                    "maxclass" : "newobj",
                    "numinlets" : 3,
                    "numoutlets" : 1,
                    "outlettype" : [ "signal" ],
                    "patching_rect" : [ 89.5, 327.0, 121.0, 22.0 ],
                    "text" : "rampsmooth~ 20 20"
                }
            }
,             {
                "box" :                 {
                    "format" : 6,
                    "id" : "obj-44",
                    "maxclass" : "flonum",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 445.0, 50.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-39",
                    "maxclass" : "message",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 445.0, 80.0, 73.0, 22.0 ],
                    "text" : "/distance $1"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-1",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 0,
                    "patching_rect" : [ 445.0, 115.0, 135.0, 22.0 ],
                    "text" : "udpsend localhost 7474"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-38",
                    "maxclass" : "number",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 196.0, 262.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-36",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 187.0, 153.0, 77.0, 22.0 ],
                    "text" : "loadmess 50"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-35",
                    "maxclass" : "number",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 187.0, 185.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-33",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patcher" :                     {
                        "fileversion" : 1,
                        "appversion" :                         {
                            "major" : 8,
                            "minor" : 6,
                            "revision" : 5,
                            "architecture" : "x64",
                            "modernui" : 1
                        }
,
                        "classnamespace" : "box",
                        "rect" : [ 59.0, 119.0, 640.0, 480.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" : "",
                        "assistshowspatchername" : 0,
                        "boxes" : [                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-35",
                                    "maxclass" : "newobj",
                                    "numinlets" : 2,
                                    "numoutlets" : 2,
                                    "outlettype" : [ "", "" ],
                                    "patching_rect" : [ 35.0, 71.0, 74.0, 22.0 ],
                                    "text" : "zl stream 20"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-33",
                                    "maxclass" : "newobj",
                                    "numinlets" : 2,
                                    "numoutlets" : 2,
                                    "outlettype" : [ "", "" ],
                                    "patching_rect" : [ 35.0, 94.0, 62.0, 22.0 ],
                                    "text" : "zl median"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "comment" : "",
                                    "id" : "obj-7",
                                    "index" : 2,
                                    "maxclass" : "inlet",
                                    "numinlets" : 0,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "" ],
                                    "patching_rect" : [ 110.0, 26.0, 25.0, 25.0 ],
                                    "varname" : "inlet[1]"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "comment" : "",
                                    "id" : "obj-11",
                                    "index" : 1,
                                    "maxclass" : "outlet",
                                    "numinlets" : 1,
                                    "numoutlets" : 0,
                                    "patching_rect" : [ 35.0, 191.0, 25.0, 25.0 ]
                                }
                            }
,                             {
                                "box" :                                 {
                                    "comment" : "",
                                    "id" : "obj-12",
                                    "index" : 1,
                                    "maxclass" : "inlet",
                                    "numinlets" : 0,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "" ],
                                    "patching_rect" : [ 35.0, 26.0, 25.0, 25.0 ],
                                    "varname" : "inlet"
                                }
                            }
 ],
                        "lines" : [                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-35", 0 ],
                                    "source" : [ "obj-12", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-11", 0 ],
                                    "source" : [ "obj-33", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-33", 0 ],
                                    "source" : [ "obj-35", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-35", 1 ],
                                    "source" : [ "obj-7", 0 ]
                                }
                            }
 ]
                    }
,
                    "patching_rect" : [ 141.0, 217.0, 65.0, 22.0 ],
                    "saved_object_attributes" :                     {
                        "description" : "",
                        "digest" : "",
                        "globalpatchername" : "",
                        "tags" : ""
                    }
,
                    "text" : "p median2"
                }
            }
,             {
                "box" :                 {
                    "format" : 6,
                    "id" : "obj-32",
                    "maxclass" : "flonum",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 274.0, 352.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "contdata" : 1,
                    "id" : "obj-30",
                    "maxclass" : "multislider",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 246.0, 430.0, 159.0, 132.0 ],
                    "setminmax" : [ 0.0, 10.0 ],
                    "setstyle" : 2
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-29",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "float" ],
                    "patcher" :                     {
                        "fileversion" : 1,
                        "appversion" :                         {
                            "major" : 8,
                            "minor" : 6,
                            "revision" : 5,
                            "architecture" : "x64",
                            "modernui" : 1
                        }
,
                        "classnamespace" : "box",
                        "rect" : [ 59.0, 119.0, 640.0, 480.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" : "",
                        "assistshowspatchername" : 0,
                        "boxes" : [                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 11.595186999999999,
                                    "id" : "obj-31",
                                    "maxclass" : "newobj",
                                    "numinlets" : 2,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "float" ],
                                    "patching_rect" : [ 195.75, 313.0, 32.5, 21.0 ],
                                    "text" : "- 0."
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 11.595186999999999,
                                    "id" : "obj-32",
                                    "maxclass" : "newobj",
                                    "numinlets" : 1,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "bang" ],
                                    "patching_rect" : [ 184.0, 208.0, 27.0, 21.0 ],
                                    "text" : "b 1"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 11.595186999999999,
                                    "id" : "obj-33",
                                    "maxclass" : "newobj",
                                    "numinlets" : 1,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "float" ],
                                    "patching_rect" : [ 184.0, 234.0, 56.0, 21.0 ],
                                    "text" : "cpuclock"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-29",
                                    "maxclass" : "newobj",
                                    "numinlets" : 1,
                                    "numoutlets" : 2,
                                    "outlettype" : [ "float", "float" ],
                                    "patching_rect" : [ 184.0, 261.0, 32.5, 22.0 ],
                                    "text" : "t f f"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "comment" : "",
                                    "id" : "obj-7",
                                    "index" : 1,
                                    "maxclass" : "outlet",
                                    "numinlets" : 1,
                                    "numoutlets" : 0,
                                    "patching_rect" : [ 195.75, 353.0, 25.0, 25.0 ]
                                }
                            }
,                             {
                                "box" :                                 {
                                    "comment" : "",
                                    "id" : "obj-1",
                                    "index" : 1,
                                    "maxclass" : "inlet",
                                    "numinlets" : 0,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "" ],
                                    "patching_rect" : [ 184.0, 164.0, 25.0, 25.0 ]
                                }
                            }
 ],
                        "lines" : [                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-32", 0 ],
                                    "source" : [ "obj-1", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-31", 0 ],
                                    "source" : [ "obj-29", 1 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-31", 1 ],
                                    "source" : [ "obj-29", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-7", 0 ],
                                    "source" : [ "obj-31", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-33", 0 ],
                                    "source" : [ "obj-32", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-29", 0 ],
                                    "source" : [ "obj-33", 0 ]
                                }
                            }
 ]
                    }
,
                    "patching_rect" : [ 246.0, 296.0, 65.0, 22.0 ],
                    "saved_object_attributes" :                     {
                        "description" : "",
                        "digest" : "",
                        "globalpatchername" : "",
                        "tags" : ""
                    }
,
                    "text" : "p cputimer"
                }
            }
,             {
                "box" :                 {
                    "contdata" : 1,
                    "id" : "obj-28",
                    "maxclass" : "multislider",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 445.0, 153.0, 159.0, 132.0 ],
                    "setminmax" : [ 0.0, 300.0 ],
                    "setstyle" : 2
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-27",
                    "maxclass" : "newobj",
                    "numinlets" : 3,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patcher" :                     {
                        "fileversion" : 1,
                        "appversion" :                         {
                            "major" : 8,
                            "minor" : 6,
                            "revision" : 5,
                            "architecture" : "x64",
                            "modernui" : 1
                        }
,
                        "classnamespace" : "box",
                        "rect" : [ 59.0, 119.0, 640.0, 480.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" : "",
                        "assistshowspatchername" : 0,
                        "boxes" : [                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-18",
                                    "maxclass" : "newobj",
                                    "numinlets" : 1,
                                    "numoutlets" : 2,
                                    "outlettype" : [ "", "" ],
                                    "patching_rect" : [ 210.0, 30.0, 74.0, 22.0 ],
                                    "text" : "patcherargs"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "comment" : "(float) Ratio of output sample in sorted window (defaults to 0.5)",
                                    "hint" : "(float) Ratio of output sample in sorted window (defaults to 0.5)",
                                    "id" : "obj-14",
                                    "index" : 3,
                                    "maxclass" : "inlet",
                                    "numinlets" : 0,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "" ],
                                    "patching_rect" : [ 285.0, 30.0, 25.0, 25.0 ]
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-1",
                                    "maxclass" : "newobj",
                                    "numinlets" : 2,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "float" ],
                                    "patching_rect" : [ 210.0, 105.0, 61.0, 22.0 ],
                                    "text" : "* 0.5"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-2",
                                    "maxclass" : "newobj",
                                    "numinlets" : 2,
                                    "numoutlets" : 2,
                                    "outlettype" : [ "", "" ],
                                    "patching_rect" : [ 210.0, 60.0, 54.0, 22.0 ],
                                    "text" : "zl nth 50"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-3",
                                    "maxclass" : "newobj",
                                    "numinlets" : 2,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "float" ],
                                    "patching_rect" : [ 210.0, 135.0, 43.0, 22.0 ],
                                    "text" : "+ 0.5"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-4",
                                    "maxclass" : "newobj",
                                    "numinlets" : 2,
                                    "numoutlets" : 2,
                                    "outlettype" : [ "", "" ],
                                    "patching_rect" : [ 105.0, 165.0, 124.0, 22.0 ],
                                    "text" : "zl nth 1"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-5",
                                    "maxclass" : "newobj",
                                    "numinlets" : 2,
                                    "numoutlets" : 2,
                                    "outlettype" : [ "", "" ],
                                    "patching_rect" : [ 105.0, 135.0, 43.0, 22.0 ],
                                    "text" : "zl sort"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-6",
                                    "linecount" : 3,
                                    "maxclass" : "comment",
                                    "numinlets" : 1,
                                    "numoutlets" : 0,
                                    "patching_rect" : [ 315.0, 135.0, 95.0, 47.0 ],
                                    "text" : "Joseph Malloch IDMIL 2006 www.idmil.org"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "comment" : "(int) Window size in samples",
                                    "hint" : "(int) Window size in samples",
                                    "id" : "obj-7",
                                    "index" : 2,
                                    "maxclass" : "inlet",
                                    "numinlets" : 0,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "" ],
                                    "patching_rect" : [ 180.0, 30.0, 25.0, 25.0 ]
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-8",
                                    "maxclass" : "newobj",
                                    "numinlets" : 1,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "" ],
                                    "patching_rect" : [ 30.0, 90.0, 74.0, 22.0 ],
                                    "text" : "prepend set"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-9",
                                    "maxclass" : "newobj",
                                    "numinlets" : 1,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "" ],
                                    "patching_rect" : [ 105.0, 75.0, 51.0, 22.0 ],
                                    "text" : "append"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-10",
                                    "maxclass" : "newobj",
                                    "numinlets" : 2,
                                    "numoutlets" : 2,
                                    "outlettype" : [ "", "" ],
                                    "patching_rect" : [ 105.0, 105.0, 61.0, 22.0 ],
                                    "text" : "zl slice 50"
                                }
                            }
,                             {
                                "box" :                                 {
                                    "comment" : "(int or float) Filtered data",
                                    "hint" : "(int or float) Filtered data",
                                    "id" : "obj-11",
                                    "index" : 1,
                                    "maxclass" : "outlet",
                                    "numinlets" : 1,
                                    "numoutlets" : 0,
                                    "patching_rect" : [ 105.0, 195.0, 25.0, 25.0 ]
                                }
                            }
,                             {
                                "box" :                                 {
                                    "comment" : "(int, float, list) Data to be filtered",
                                    "hint" : "(int, float, list) Data to be filtered",
                                    "id" : "obj-12",
                                    "index" : 1,
                                    "maxclass" : "inlet",
                                    "numinlets" : 0,
                                    "numoutlets" : 1,
                                    "outlettype" : [ "" ],
                                    "patching_rect" : [ 105.0, 30.0, 25.0, 25.0 ]
                                }
                            }
,                             {
                                "box" :                                 {
                                    "fontname" : "Arial",
                                    "fontsize" : 12.0,
                                    "id" : "obj-13",
                                    "linecount" : 3,
                                    "maxclass" : "comment",
                                    "numinlets" : 1,
                                    "numoutlets" : 0,
                                    "patching_rect" : [ 315.0, 75.0, 131.0, 47.0 ],
                                    "text" : "outputs median sample of the last n samples"
                                }
                            }
 ],
                        "lines" : [                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-3", 0 ],
                                    "source" : [ "obj-1", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-5", 0 ],
                                    "order" : 0,
                                    "source" : [ "obj-10", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-8", 0 ],
                                    "order" : 1,
                                    "source" : [ "obj-10", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-9", 0 ],
                                    "source" : [ "obj-12", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-1", 1 ],
                                    "midpoints" : [ 294.5, 90.5, 261.5, 90.5 ],
                                    "source" : [ "obj-14", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-2", 0 ],
                                    "source" : [ "obj-18", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-1", 1 ],
                                    "source" : [ "obj-2", 1 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-1", 0 ],
                                    "source" : [ "obj-2", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-4", 1 ],
                                    "source" : [ "obj-3", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-11", 0 ],
                                    "source" : [ "obj-4", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-4", 0 ],
                                    "source" : [ "obj-5", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-1", 0 ],
                                    "midpoints" : [ 189.5, 90.0, 219.5, 90.0 ],
                                    "order" : 0,
                                    "source" : [ "obj-7", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-10", 1 ],
                                    "midpoints" : [ 189.5, 90.0, 156.5, 90.0 ],
                                    "order" : 1,
                                    "source" : [ "obj-7", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-9", 0 ],
                                    "source" : [ "obj-8", 0 ]
                                }
                            }
,                             {
                                "patchline" :                                 {
                                    "destination" : [ "obj-10", 0 ],
                                    "source" : [ "obj-9", 0 ]
                                }
                            }
 ]
                    }
,
                    "patching_rect" : [ 57.0, 166.0, 81.0, 22.0 ],
                    "saved_object_attributes" :                     {
                        "description" : "",
                        "digest" : "",
                        "globalpatchername" : "",
                        "tags" : ""
                    }
,
                    "text" : "p medianfilter"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-14",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "signal" ],
                    "patching_rect" : [ 141.0, 358.0, 40.0, 22.0 ],
                    "text" : "*~ 10."
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-13",
                    "maxclass" : "ezdac~",
                    "numinlets" : 2,
                    "numoutlets" : 0,
                    "patching_rect" : [ 134.0, 571.0, 45.0, 45.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-12",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "signal" ],
                    "patching_rect" : [ 141.0, 393.0, 43.0, 22.0 ],
                    "text" : "cycle~"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-11",
                    "maxclass" : "newobj",
                    "numinlets" : 3,
                    "numoutlets" : 1,
                    "outlettype" : [ "signal" ],
                    "patching_rect" : [ 141.0, 296.0, 74.0, 22.0 ],
                    "text" : "slide~ 10 10"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-9",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "signal" ],
                    "patching_rect" : [ 141.0, 262.0, 31.0, 22.0 ],
                    "text" : "sig~"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-6",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "" ],
                    "patching_rect" : [ 246.0, 97.0, 87.0, 22.0 ],
                    "text" : "route /distance"
                }
            }
,             {
                "box" :                 {
                    "contdata" : 1,
                    "id" : "obj-5",
                    "maxclass" : "multislider",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 445.0, 303.0, 159.0, 132.0 ],
                    "setminmax" : [ 0.0, 300.0 ],
                    "setstyle" : 2
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-4",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 0,
                    "patching_rect" : [ 134.0, 97.0, 32.0, 22.0 ],
                    "text" : "print"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-3",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 246.0, 56.0, 97.0, 22.0 ],
                    "text" : "udpreceive 7474"
                }
            }
 ],
        "lines" : [             {
                "patchline" :                 {
                    "destination" : [ "obj-21", 1 ],
                    "order" : 0,
                    "source" : [ "obj-10", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-21", 0 ],
                    "order" : 1,
                    "source" : [ "obj-10", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-14", 0 ],
                    "source" : [ "obj-11", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-20", 0 ],
                    "source" : [ "obj-12", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-12", 0 ],
                    "source" : [ "obj-14", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-18", 0 ],
                    "source" : [ "obj-15", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-15", 0 ],
                    "source" : [ "obj-17", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-10", 0 ],
                    "source" : [ "obj-18", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-24", 0 ],
                    "source" : [ "obj-19", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-13", 1 ],
                    "order" : 0,
                    "source" : [ "obj-20", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-13", 0 ],
                    "order" : 1,
                    "source" : [ "obj-20", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-7", 1 ],
                    "source" : [ "obj-23", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-7", 0 ],
                    "source" : [ "obj-24", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-30", 0 ],
                    "order" : 1,
                    "source" : [ "obj-29", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-32", 0 ],
                    "order" : 0,
                    "source" : [ "obj-29", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-4", 0 ],
                    "order" : 1,
                    "source" : [ "obj-3", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-6", 0 ],
                    "order" : 0,
                    "source" : [ "obj-3", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-5", 0 ],
                    "order" : 0,
                    "source" : [ "obj-33", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-9", 0 ],
                    "order" : 1,
                    "source" : [ "obj-33", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-33", 1 ],
                    "source" : [ "obj-35", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-35", 0 ],
                    "source" : [ "obj-36", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-11", 2 ],
                    "order" : 0,
                    "source" : [ "obj-38", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-11", 1 ],
                    "order" : 1,
                    "source" : [ "obj-38", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-1", 0 ],
                    "source" : [ "obj-39", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-39", 0 ],
                    "source" : [ "obj-44", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-19", 0 ],
                    "order" : 0,
                    "source" : [ "obj-6", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-27", 0 ],
                    "order" : 4,
                    "source" : [ "obj-6", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-28", 0 ],
                    "order" : 1,
                    "source" : [ "obj-6", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-29", 0 ],
                    "order" : 2,
                    "source" : [ "obj-6", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-33", 0 ],
                    "order" : 3,
                    "source" : [ "obj-6", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-17", 0 ],
                    "source" : [ "obj-7", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-15", 2 ],
                    "order" : 0,
                    "source" : [ "obj-8", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-15", 1 ],
                    "order" : 1,
                    "source" : [ "obj-8", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-11", 0 ],
                    "source" : [ "obj-9", 0 ]
                }
            }
 ],
        "dependency_cache" : [  ],
        "autosave" : 0
    }
}