From: equilet Date: Sat, 26 May 2018 23:03:15 +0000 (-0500) Subject: reverting to prior state of active detection X-Git-Url: https://git.dabkitsch.com/?a=commitdiff_plain;h=79f876fce0dddd2f057b6bc39690269e38ad74c8;p=zeropointnine.git reverting to prior state of active detection --- diff --git a/max/lib_krate/zpn_warp.maxpat b/max/lib_krate/zpn_warp.maxpat index 034b22a..fa3f614 100644 --- a/max/lib_krate/zpn_warp.maxpat +++ b/max/lib_krate/zpn_warp.maxpat @@ -37,6 +37,157 @@ "style" : "", "subpatcher_template" : "gridded", "boxes" : [ { + "box" : { + "id" : "obj-13", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 7, + "minor" : 3, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "rect" : [ 59.0, 104.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" : "gridded", + "boxes" : [ { + "box" : { + "fontface" : 0, + "fontsize" : 10.0, + "id" : "obj-22", + "linecount" : 4, + "maxclass" : "o.expr.codebox", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 50.0, 126.888901, 205.0, 64.0 ], + "text" : "if(/hands != 2, \n /gesture/openclose/active = 0\n),\n/gate = (/hands == 2)" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 50.0, 100.0, 60.0, 22.0 ], + "style" : "", + "text" : "o.change" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-10", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ], + "style" : "" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-11", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 50.0, 250.888885, 30.0, 30.0 ], + "style" : "" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "source" : [ "obj-10", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "source" : [ "obj-9", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 179.0, 147.888885, 137.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "style" : "", + "tags" : "" + } +, + "style" : "", + "text" : "p detect_active_change" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 502.5, 327.0, 153.0, 22.0 ], + "style" : "", + "text" : "o.route /gesture/openclose" + } + + } +, { "box" : { "fontface" : 0, "fontsize" : 10.0, @@ -47,7 +198,6 @@ "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], "patching_rect" : [ 463.5, 43.5, 218.0, 75.0 ], - "presentation_rect" : [ 465.0, 42.777786, 0.0, 0.0 ], "text" : "if(/hands == 2, \n /gesture/openclose/active = 1, \n /gesture/openclose/active = 0\n),\n/gate = (/hands == 2)" } @@ -74,9 +224,9 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 502.5, 334.0, 191.0, 22.0 ], + "patching_rect" : [ 502.5, 354.0, 90.0, 22.0 ], "style" : "", - "text" : "o.select /gesture/openclose/active" + "text" : "o.select /active" } } @@ -87,26 +237,11 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 179.0, 246.0, 78.0, 22.0 ], + "patching_rect" : [ 179.0, 175.0, 78.0, 22.0 ], "style" : "", "text" : "o.route /gate" } - } -, { - "box" : { - "fontface" : 0, - "fontsize" : 10.0, - "id" : "obj-22", - "linecount" : 4, - "maxclass" : "o.expr.codebox", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 179.0, 174.777786, 205.0, 64.0 ], - "text" : "if(/hands != 2, \n /gesture/openclose/active = 0\n),\n/gate = (/hands == 2)" - } - } , { "box" : { @@ -326,19 +461,6 @@ "text" : "o.if /gesture/openclose/active == 0" } - } -, { - "box" : { - "id" : "obj-9", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 179.0, 147.888885, 60.0, 22.0 ], - "style" : "", - "text" : "o.change" - } - } , { "box" : { @@ -451,7 +573,7 @@ } , { "patchline" : { - "destination" : [ "obj-2", 0 ], + "destination" : [ "obj-7", 0 ], "source" : [ "obj-12", 0 ] } @@ -465,29 +587,29 @@ } , { "patchline" : { - "destination" : [ "obj-1", 0 ], - "source" : [ "obj-15", 0 ] + "destination" : [ "obj-23", 0 ], + "source" : [ "obj-13", 0 ] } } , { "patchline" : { - "destination" : [ "obj-16", 0 ], - "source" : [ "obj-2", 0 ] + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-15", 0 ] } } , { "patchline" : { - "destination" : [ "obj-16", 0 ], - "source" : [ "obj-20", 0 ] + "destination" : [ "obj-20", 0 ], + "source" : [ "obj-2", 0 ] } } , { "patchline" : { - "destination" : [ "obj-23", 0 ], - "source" : [ "obj-22", 0 ] + "destination" : [ "obj-16", 0 ], + "source" : [ "obj-20", 0 ] } } @@ -521,22 +643,22 @@ } , { "patchline" : { - "destination" : [ "obj-12", 0 ], - "source" : [ "obj-8", 1 ] + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-7", 0 ] } } , { "patchline" : { - "destination" : [ "obj-9", 0 ], - "source" : [ "obj-8", 0 ] + "destination" : [ "obj-12", 0 ], + "source" : [ "obj-8", 1 ] } } , { "patchline" : { - "destination" : [ "obj-22", 0 ], - "source" : [ "obj-9", 0 ] + "destination" : [ "obj-13", 0 ], + "source" : [ "obj-8", 0 ] } } @@ -583,10 +705,6 @@ "name" : "o.select.mxo", "type" : "iLaX" } -, { - "name" : "o.change.mxo", - "type" : "iLaX" - } , { "name" : "o.if.mxo", "type" : "iLaX" @@ -599,6 +717,10 @@ "name" : "o.route.mxo", "type" : "iLaX" } +, { + "name" : "o.change.mxo", + "type" : "iLaX" + } ], "autosave" : 0 }