Studienprojekt zum Einsatz von 6DOF Cubes für diverse Anwendungen
5 files added
622 ■■■■■ changed files
.gitattributes 5 ●●●●● patch | view | raw | blame | history
.gitignore 12 ●●●●● patch | view | raw | blame | history
README.md 7 ●●●●● patch | view | raw | blame | history
library/ori-calibrate.maxpat 322 ●●●●● patch | view | raw | blame | history
library/side-detector.maxpat 276 ●●●●● patch | view | raw | blame | history
.gitattributes
New file
@@ -0,0 +1,5 @@
# Auto detect text files and perform LF normalization
* text=auto
# no diff for Max files
*.maxpat -text merge=binary
.gitignore
New file
@@ -0,0 +1,12 @@
# Mac OSX Finder ---
.DS_Store
# *(Autosaved).*
.finderinfo
# don't track dev-files:
/_dev
changelog.*
# archives for local backups
*.zip
README.md
New file
@@ -0,0 +1,7 @@
Max patches for abstracting a higher-level semantic sensing layer for 6DOF cubes
## Dependencies
- G4Export: https://git.marlonschumacher.de/summary/~streib!g4export.git
- OSC Externals: https://github.com/CNMAT/CNMAT-Externs/releases/tag/v1.0.4d
- Odot Externals: https://github.com/CNMAT/CNMAT-odot/releases/tag/1.3.6
library/ori-calibrate.maxpat
New file
@@ -0,0 +1,322 @@
{
    "patcher" :     {
        "fileversion" : 1,
        "appversion" :         {
            "major" : 8,
            "minor" : 6,
            "revision" : 5,
            "architecture" : "x64",
            "modernui" : 1
        }
,
        "classnamespace" : "box",
        "rect" : [ 59.0, 119.0, 623.0, 470.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-27",
                    "maxclass" : "comment",
                    "numinlets" : 1,
                    "numoutlets" : 0,
                    "patching_rect" : [ 465.0, 274.0, 54.0, 20.0 ],
                    "text" : "calibrate"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-25",
                    "maxclass" : "button",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 465.0, 296.0, 24.0, 24.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-23",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "bang", "" ],
                    "patching_rect" : [ 417.0, 224.0, 29.5, 22.0 ],
                    "text" : "t b l"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-20",
                    "linecount" : 2,
                    "maxclass" : "message",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 339.0, 350.0, 50.0, 35.0 ],
                    "text" : "6.85 4.7 23."
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-18",
                    "maxclass" : "button",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 417.0, 157.0, 24.0, 24.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-16",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 417.0, 194.0, 100.0, 22.0 ],
                    "text" : "loadmess 0. 0. 0."
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-13",
                    "maxclass" : "message",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 99.0, 389.0, 128.0, 22.0 ],
                    "text" : "0.22 0. 0."
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-11",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 208.0, 329.0, 79.0, 22.0 ],
                    "text" : "vexpr $f1-$f2"
                }
            }
,             {
                "box" :                 {
                    "format" : 6,
                    "id" : "obj-10",
                    "maxclass" : "flonum",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 338.0, 44.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "format" : 6,
                    "id" : "obj-8",
                    "maxclass" : "flonum",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 273.0, 44.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "format" : 6,
                    "id" : "obj-6",
                    "maxclass" : "flonum",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 207.0, 44.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-4",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 310.0, 252.0, 47.0, 22.0 ],
                    "text" : "v offset"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-3",
                    "linecount" : 2,
                    "maxclass" : "message",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 323.0, 174.0, 50.0, 35.0 ],
                    "text" : "7.07 4.7 23."
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-1",
                    "maxclass" : "newobj",
                    "numinlets" : 3,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 208.0, 120.0, 149.0, 22.0 ],
                    "text" : "pak f f f"
                }
            }
 ],
        "lines" : [             {
                "patchline" :                 {
                    "destination" : [ "obj-11", 0 ],
                    "order" : 2,
                    "source" : [ "obj-1", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-3", 1 ],
                    "order" : 0,
                    "source" : [ "obj-1", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-4", 0 ],
                    "order" : 1,
                    "source" : [ "obj-1", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-1", 2 ],
                    "source" : [ "obj-10", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-13", 1 ],
                    "source" : [ "obj-11", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-23", 0 ],
                    "source" : [ "obj-16", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-16", 0 ],
                    "source" : [ "obj-18", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-4", 0 ],
                    "source" : [ "obj-23", 1 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-4", 0 ],
                    "source" : [ "obj-23", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-4", 0 ],
                    "source" : [ "obj-25", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-11", 1 ],
                    "order" : 1,
                    "source" : [ "obj-4", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-20", 1 ],
                    "order" : 0,
                    "source" : [ "obj-4", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-1", 0 ],
                    "source" : [ "obj-6", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-1", 1 ],
                    "source" : [ "obj-8", 0 ]
                }
            }
 ],
        "dependency_cache" : [  ],
        "autosave" : 0
    }
}
library/side-detector.maxpat
New file
@@ -0,0 +1,276 @@
{
    "patcher" :     {
        "fileversion" : 1,
        "appversion" :         {
            "major" : 8,
            "minor" : 6,
            "revision" : 5,
            "architecture" : "x64",
            "modernui" : 1
        }
,
        "classnamespace" : "box",
        "rect" : [ 222.0, 305.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" :                 {
                    "id" : "obj-21",
                    "maxclass" : "button",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 515.0, 361.0, 24.0, 24.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-20",
                    "maxclass" : "button",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 372.0, 353.0, 24.0, 24.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-18",
                    "maxclass" : "message",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 465.0, 337.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-17",
                    "maxclass" : "message",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 302.0, 337.0, 50.0, 22.0 ],
                    "text" : "1"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-15",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "" ],
                    "patching_rect" : [ 333.0, 294.0, 201.0, 22.0 ],
                    "text" : "if $i1<2&&$i2<3 then 1 else out2 $i1"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-12",
                    "maxclass" : "message",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 259.0, 289.0, 50.0, 22.0 ],
                    "text" : "1 2 0"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-9",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "" ],
                    "patching_rect" : [ 290.0, 250.0, 60.0, 22.0 ],
                    "text" : "zl change"
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-2",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 290.0, 193.0, 74.0, 22.0 ],
                    "text" : "vexpr $i1/60"
                }
            }
,             {
                "box" :                 {
                    "format" : 6,
                    "id" : "obj-10",
                    "maxclass" : "flonum",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 268.0, 40.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "format" : 6,
                    "id" : "obj-8",
                    "maxclass" : "flonum",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 203.0, 40.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "format" : 6,
                    "id" : "obj-6",
                    "maxclass" : "flonum",
                    "numinlets" : 1,
                    "numoutlets" : 2,
                    "outlettype" : [ "", "bang" ],
                    "parameter_enable" : 0,
                    "patching_rect" : [ 137.0, 40.0, 50.0, 22.0 ]
                }
            }
,             {
                "box" :                 {
                    "id" : "obj-1",
                    "maxclass" : "newobj",
                    "numinlets" : 3,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 138.0, 116.0, 149.0, 22.0 ],
                    "text" : "pak f f f"
                }
            }
 ],
        "lines" : [             {
                "patchline" :                 {
                    "destination" : [ "obj-2", 0 ],
                    "source" : [ "obj-1", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-1", 2 ],
                    "source" : [ "obj-10", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-17", 1 ],
                    "order" : 1,
                    "source" : [ "obj-15", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-18", 1 ],
                    "order" : 1,
                    "source" : [ "obj-15", 1 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-20", 0 ],
                    "order" : 0,
                    "source" : [ "obj-15", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-21", 0 ],
                    "order" : 0,
                    "source" : [ "obj-15", 1 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-9", 0 ],
                    "source" : [ "obj-2", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-1", 0 ],
                    "source" : [ "obj-6", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-1", 1 ],
                    "source" : [ "obj-8", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-12", 1 ],
                    "order" : 1,
                    "source" : [ "obj-9", 0 ]
                }
            }
,             {
                "patchline" :                 {
                    "destination" : [ "obj-15", 0 ],
                    "order" : 0,
                    "source" : [ "obj-9", 0 ]
                }
            }
 ],
        "dependency_cache" : [  ],
        "autosave" : 0
    }
}