From: Jeffrey Lubow Date: Sat, 7 May 2016 04:56:38 +0000 (-0700) Subject: updated legacy code to support new xyz ordering and improved docs X-Git-Url: https://git.dabkitsch.com/?a=commitdiff_plain;h=f6e75cd6ffeaf9bda529fa1c837c61a442133944;p=zeropointnine.git updated legacy code to support new xyz ordering and improved docs --- diff --git a/max/externals/o.io.leap.mxo/Contents/Info.plist b/max/externals/o.io.leap.mxo/Contents/Info.plist new file mode 100644 index 0000000..fce6429 --- /dev/null +++ b/max/externals/o.io.leap.mxo/Contents/Info.plist @@ -0,0 +1,44 @@ + + + + + BuildMachineOSBuild + 14F1713 + CFBundleDevelopmentRegion + English + CFBundleExecutable + o.io.leap + CFBundleIdentifier + edu.cnmat.berkeley.o.io.leap + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + iLaX + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1.0 + CSResourcesFileMapped + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 7A1001 + DTPlatformVersion + GM + DTSDKBuild + 15A278 + DTSDKName + macosx10.11 + DTXcode + 0701 + DTXcodeBuild + 7A1001 + LSApplicationCategoryType + + + diff --git a/max/externals/o.io.leap.mxo/Contents/MacOS/libLeap.dylib b/max/externals/o.io.leap.mxo/Contents/MacOS/libLeap.dylib new file mode 100755 index 0000000..1dc439e Binary files /dev/null and b/max/externals/o.io.leap.mxo/Contents/MacOS/libLeap.dylib differ diff --git a/max/externals/o.io.leap.mxo/Contents/MacOS/o.io.leap b/max/externals/o.io.leap.mxo/Contents/MacOS/o.io.leap new file mode 100755 index 0000000..187b0d4 Binary files /dev/null and b/max/externals/o.io.leap.mxo/Contents/MacOS/o.io.leap differ diff --git a/max/externals/o.io.leap.mxo/Contents/PkgInfo b/max/externals/o.io.leap.mxo/Contents/PkgInfo new file mode 100644 index 0000000..925ce4a --- /dev/null +++ b/max/externals/o.io.leap.mxo/Contents/PkgInfo @@ -0,0 +1 @@ +iLaX???? \ No newline at end of file diff --git a/max/help/zpn_mig_hover.maxhelp b/max/help/zpn_mig_hover.maxhelp index 078f741..fc3ab29 100644 --- a/max/help/zpn_mig_hover.maxhelp +++ b/max/help/zpn_mig_hover.maxhelp @@ -3,9 +3,9 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , @@ -54,14 +54,11 @@ "fontface" : 0, "fontsize" : 12.0, "id" : "obj-19", - "linecount" : 15, "maxclass" : "o.display", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 585.0, 60.0, 360.0, 224.0 ], - "presentation_rect" : [ 387.0, 224.0, 0.0, 0.0 ], - "text" : "/xyz : [0.5, 0.5, 0.],\n/ampval : 0.,\n/mig/var : [\"var\", 0.500005],\n/id : 0,\n/len : 21,\n/len/part : 7,\n/idx : [0, 3, 6, 9, 12, 15, 18],\n/allfreqs : [13., 24.31, 35.62, 46.93, 58.24, 69.55, 80.86, 92.17, 103.48, 114.79, 126.1, 137.41, 148.72, 160.03, 171.34, 182.65, 193.96, 205.27, 216.58, 227.89, 239.2],\n/picked : [13., 46.93, 80.86, 114.79, 148.72, 182.65, 216.58],\n/amplist : [0., 0., 0., 0., 0., 0., 0.],\n/mig/list : [0., 0.]", + "patching_rect" : [ 585.0, 60.0, 360.0, 34.0 ], "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } @@ -87,7 +84,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 268.5, 120.0, 29.5, 22.0 ], - "presentation_rect" : [ 286.0, 106.0, 0.0, 0.0 ], "style" : "", "text" : "3" } @@ -101,7 +97,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 221.0, 120.0, 29.5, 22.0 ], - "presentation_rect" : [ 239.0, 106.0, 0.0, 0.0 ], "style" : "", "text" : "2" } @@ -125,13 +120,11 @@ "fontface" : 0, "fontsize" : 12.0, "id" : "obj-3", - "linecount" : 2, "maxclass" : "o.display", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 450.0, 344.0, 300.0, 48.0 ], - "text" : "/mig/var : [\"var\", 0.500005],\n/mig/list : [0., 0.]", + "patching_rect" : [ 450.0, 344.0, 300.0, 34.0 ], "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } @@ -154,8 +147,8 @@ "id" : "obj-5", "maxclass" : "newobj", "numinlets" : 2, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], "patching_rect" : [ 102.0, 192.0, 93.0, 22.0 ], "style" : "", "text" : "zpn_mig_hover" @@ -340,15 +333,6 @@ "source" : [ "obj-4", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-20", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-5", 1 ] - } - } , { "patchline" : { @@ -389,19 +373,19 @@ ], "dependency_cache" : [ { "name" : "cardiod_spread~.maxpat", - "bootpath" : "~/Documents/BCNM/zero_point_nine/_zpn_max/util", + "bootpath" : "~/Documents/programming/git_equilet/zeropointnine/max/util", "type" : "JSON", "implicit" : 1 } , { "name" : "zpn_synth_migration~.maxpat", - "bootpath" : "~/Documents/BCNM/zero_point_nine/_zpn_max/lib_audiorate", + "bootpath" : "~/Documents/programming/git_equilet/zeropointnine/max/lib_audiorate", "type" : "JSON", "implicit" : 1 } , { "name" : "zpn_mig_hover.maxpat", - "bootpath" : "~/Documents/BCNM/zero_point_nine/_zpn_max/lib_krate", + "bootpath" : "~/Documents/programming/git_equilet/zeropointnine/max/lib_krate", "type" : "JSON", "implicit" : 1 } @@ -481,6 +465,10 @@ "name" : "o.timetag.mxo", "type" : "iLaX" } +, { + "name" : "o.if.mxo", + "type" : "iLaX" + } , { "name" : "o.display.mxo", "type" : "iLaX" diff --git a/max/help/zpn_swipe.maxhelp b/max/help/zpn_swipe.maxhelp index 7683f96..b3edb40 100644 --- a/max/help/zpn_swipe.maxhelp +++ b/max/help/zpn_swipe.maxhelp @@ -3,13 +3,13 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , - "rect" : [ 65.0, 110.0, 895.0, 644.0 ], + "rect" : [ 167.0, 79.0, 895.0, 644.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -37,17 +37,75 @@ "style" : "", "subpatcher_template" : "gridded", "boxes" : [ { + "box" : { + "id" : "obj-12", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 330.0, 135.0, 129.0, 22.0 ], + "style" : "", + "text" : "o.route /gesture/swipe" + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "patching_rect" : [ 510.0, 15.0, 60.0, 22.0 ], + "style" : "", + "text" : "loadbang" + } + + } +, { + "box" : { + "fontface" : 0, + "fontsize" : 12.0, + "id" : "obj-9", + "maxclass" : "o.compose", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 525.0, 96.75, 203.0, 24.0 ], + "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 47, 103, 101, 115, 116, 117, 114, 101, 47, 115, 119, 105, 112, 101, 47, 97, 99, 116, 105, 118, 101, 0, 0, 0, 44, 105, 0, 0, 0, 0, 0, 0 ], + "saved_bundle_length" : 52, + "text" : "/gesture/swipe/active : 0", + "textcolor" : [ 0.188, 0.188, 0.188, 1.0 ] + } + + } +, { + "box" : { + "fontface" : 0, + "fontsize" : 12.0, + "id" : "obj-8", + "maxclass" : "o.compose", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 525.0, 60.0, 203.0, 24.0 ], + "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 47, 103, 101, 115, 116, 117, 114, 101, 47, 115, 119, 105, 112, 101, 47, 97, 99, 116, 105, 118, 101, 0, 0, 0, 44, 105, 0, 0, 0, 0, 0, 1 ], + "saved_bundle_length" : 52, + "text" : "/gesture/swipe/active : 1", + "textcolor" : [ 0.188, 0.188, 0.188, 1.0 ] + } + + } +, { "box" : { "fontface" : 0, "fontsize" : 12.0, "id" : "obj-4", - "linecount" : 15, "maxclass" : "o.display", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 360.0, 225.0, 480.0, 224.0 ], - "text" : "/gesture/swipe/state : 0.,\n/gesture/swipe/direction/xyz : [0.850996, 0.476404, 0.0406685],\n/gesture/swipe/position/xyz : [168.153, -30.0028, 94.3132],\n/gesture/swipe/pitch : 1.88839,\n/gesture/swipe/yaw : 1.75312,\n/gesture/swipe/roll : 2.08195,\n/gesture/swipe/speed : 195.273,\n/gesture/swipe/duration/sec : 0.043437,\n/gesture/swipe/xyz : [107.099, -97.8595, 101.976],\n/gesture/swipe/normalized/xyz : [0.955264, 0., 0.0833151],\n/gesture/swipe/amp : 50.988,\n/gesture/swipe/time : 304.059,\n/gesture/swipe/up : [49.5, 0, 58.79, 304.059],\n/gesture/swipe/down : [58.79, 0, 49.5, 304.059],\n/gesture/swipe/c/msg : [49.5, 0, 58.79, 304.059]", + "patching_rect" : [ 360.0, 225.0, 480.0, 34.0 ], "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } @@ -81,8 +139,8 @@ "id" : "obj-10", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "signal" ], + "numoutlets" : 2, + "outlettype" : [ "signal", "" ], "patching_rect" : [ 105.0, 257.75, 95.0, 22.0 ], "style" : "", "text" : "zpn_synth_roll~" @@ -109,7 +167,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 105.0, 162.25, 67.0, 22.0 ], + "patching_rect" : [ 105.0, 180.0, 67.0, 22.0 ], "style" : "", "text" : "zpn_swipe" } @@ -175,6 +233,15 @@ "source" : [ "obj-1", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-1", 0 ] + } + } , { "patchline" : { @@ -193,6 +260,15 @@ "source" : [ "obj-10", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-11", 0 ] + } + } , { "patchline" : { @@ -208,7 +284,7 @@ "destination" : [ "obj-4", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-118", 0 ] + "source" : [ "obj-12", 0 ] } } @@ -247,23 +323,41 @@ "source" : [ "obj-77", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-9", 0 ] + } + } ], "dependency_cache" : [ { "name" : "cardiod_spread~.maxpat", - "bootpath" : "~/Documents/BCNM/zero_point_nine/_zpn_max/util", + "bootpath" : "~/Documents/programming/git_equilet/zeropointnine/max/util", "type" : "JSON", "implicit" : 1 } , { "name" : "zpn_swipe.maxpat", - "bootpath" : "~/Documents/BCNM/zero_point_nine/_zpn_max/lib_krate", + "bootpath" : "~/Documents/programming/git_equilet/zeropointnine/max/lib_krate", "type" : "JSON", "implicit" : 1 } , { "name" : "zpn_synth_roll~.maxpat", - "bootpath" : "~/Documents/BCNM/zero_point_nine/_zpn_max/lib_audiorate", + "bootpath" : "~/Documents/programming/git_equilet/zeropointnine/max/lib_audiorate", "type" : "JSON", "implicit" : 1 } @@ -279,6 +373,10 @@ "name" : "o.pack.mxo", "type" : "iLaX" } +, { + "name" : "o.collect.mxo", + "type" : "iLaX" + } , { "name" : "o.expr.codebox.mxo", "type" : "iLaX" @@ -295,10 +393,18 @@ "name" : "o.if.mxo", "type" : "iLaX" } +, { + "name" : "o.select.mxo", + "type" : "iLaX" + } , { "name" : "o.display.mxo", "type" : "iLaX" } +, { + "name" : "o.compose.mxo", + "type" : "iLaX" + } ], "autosave" : 0, "bgfillcolor_type" : "gradient", diff --git a/max/help/zpn_warp.maxhelp b/max/help/zpn_warp.maxhelp index 222e559..399df2b 100644 --- a/max/help/zpn_warp.maxhelp +++ b/max/help/zpn_warp.maxhelp @@ -3,9 +3,9 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , @@ -37,6 +37,94 @@ "style" : "", "subpatcher_template" : "gridded", "boxes" : [ { + "box" : { + "fontface" : 0, + "fontsize" : 12.0, + "id" : "obj-9", + "maxclass" : "o.display", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 195.0, 240.0, 330.0, 34.0 ], + "presentation_rect" : [ 240.0, 247.0, 0.0, 0.0 ], + "text" : "/hands : 0.", + "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 240.0, 210.0, 92.0, 22.0 ], + "style" : "", + "text" : "o.select /hands" + } + + } +, { + "box" : { + "fontface" : 0, + "fontsize" : 12.0, + "id" : "obj-7", + "maxclass" : "o.compose", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 285.0, 142.93866, 231.0, 24.0 ], + "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 47, 103, 101, 115, 116, 117, 114, 101, 47, 111, 112, 101, 110, 99, 108, 111, 115, 101, 47, 97, 99, 116, 105, 118, 101, 0, 0, 0, 44, 105, 0, 0, 0, 0, 0, 0 ], + "saved_bundle_length" : 56, + "text" : "/gesture/openclose/active : 0", + "textcolor" : [ 0.188, 0.188, 0.188, 1.0 ] + } + + } +, { + "box" : { + "fontface" : 0, + "fontsize" : 12.0, + "id" : "obj-6", + "maxclass" : "o.compose", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 314.0, 105.0, 231.0, 24.0 ], + "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 47, 103, 101, 115, 116, 117, 114, 101, 47, 111, 112, 101, 110, 99, 108, 111, 115, 101, 47, 97, 99, 116, 105, 118, 101, 0, 0, 0, 44, 105, 0, 0, 0, 0, 0, 1 ], + "saved_bundle_length" : 56, + "text" : "/gesture/openclose/active : 1", + "textcolor" : [ 0.188, 0.188, 0.188, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "gain~", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "signal", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 195.0, 420.0, 30.0, 75.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 0, + "patching_rect" : [ 195.0, 525.0, 57.0, 22.0 ], + "style" : "", + "text" : "dac~ 1 2" + } + + } +, { "box" : { "fontface" : 0, "fontsize" : 12.0, @@ -45,7 +133,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 240.0, 255.0, 330.0, 34.0 ], + "patching_rect" : [ 240.0, 330.0, 330.0, 34.0 ], "text" : "/gesture/openclose/active : 0", "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } @@ -67,8 +155,8 @@ "id" : "obj-25", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "signal" ], + "numoutlets" : 3, + "outlettype" : [ "signal", "", "FullPacket" ], "patching_rect" : [ 15.0, 285.0, 102.0, 22.0 ], "style" : "", "text" : "zpn_wavefolder~" @@ -108,7 +196,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 150.0, 75.0, 162.0, 114.0 ], + "patching_rect" : [ 121.0, 45.0, 162.0, 114.0 ], "style" : "", "text" : "both hands enter box with right hand folded downward\n\nleft hand middle finger and thumb dist control\n\nright hand extending - ends event" } @@ -162,6 +250,15 @@ "source" : [ "obj-1", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-1", 0 ] + } + } , { "patchline" : { @@ -198,6 +295,51 @@ "source" : [ "obj-25", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-25", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-21", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-21", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-7", 0 ] + } + } , { "patchline" : { @@ -216,11 +358,20 @@ "source" : [ "obj-77", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-8", 0 ] + } + } ], "dependency_cache" : [ { "name" : "zpn_warp.maxpat", - "bootpath" : "~/Documents/BCNM/zero_point_nine/_zpn_max/lib_krate", + "bootpath" : "~/Documents/programming/git_equilet/zeropointnine/max/lib_krate", "type" : "JSON", "implicit" : 1 } @@ -238,13 +389,7 @@ } , { "name" : "zpn_wavefolder~.maxpat", - "bootpath" : "~/Documents/BCNM/zero_point_nine/_zpn_max/lib_audiorate", - "type" : "JSON", - "implicit" : 1 - } -, { - "name" : "cardiod_spread~.maxpat", - "bootpath" : "~/Documents/BCNM/zero_point_nine/_zpn_max/lib_audiorate/util", + "bootpath" : "~/Documents/programming/git_equilet/zeropointnine/max/lib_audiorate", "type" : "JSON", "implicit" : 1 } @@ -257,23 +402,23 @@ "type" : "iLaX" } , { - "name" : "o.if.mxo", + "name" : "o.intersection.mxo", "type" : "iLaX" } , { - "name" : "o.compose.mxo", + "name" : "o.collect.mxo", "type" : "iLaX" } , { - "name" : "o.change.mxo", + "name" : "o.difference.mxo", "type" : "iLaX" } , { - "name" : "o.route.mxo", + "name" : "o.compose.mxo", "type" : "iLaX" } , { - "name" : "o.union.mxo", + "name" : "o.prepend.mxo", "type" : "iLaX" } , { @@ -281,29 +426,25 @@ "type" : "iLaX" } , { - "name" : "o.intersection.mxo", + "name" : "o.change.mxo", "type" : "iLaX" } , { - "name" : "o.collect.mxo", + "name" : "o.if.mxo", "type" : "iLaX" } , { - "name" : "o.difference.mxo", + "name" : "o.cond.mxo", "type" : "iLaX" } , { - "name" : "o.prepend.mxo", + "name" : "o.route.mxo", "type" : "iLaX" } , { "name" : "o.display.mxo", "type" : "iLaX" } -, { - "name" : "o.pack.mxo", - "type" : "iLaX" - } ], "autosave" : 0, "bgfillcolor_type" : "gradient", diff --git a/max/lib_audiorate/unused/zpn_slipperline~.maxpat b/max/lib_audiorate/unused/zpn_slipperline~.maxpat index 26318a8..efadc46 100644 --- a/max/lib_audiorate/unused/zpn_slipperline~.maxpat +++ b/max/lib_audiorate/unused/zpn_slipperline~.maxpat @@ -3,9 +3,9 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , @@ -44,7 +44,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 405.0, 270.0, 34.0, 22.0 ], - "presentation_rect" : [ 400.0, 268.0, 0.0, 0.0 ], "style" : "", "text" : "$1 5" } @@ -129,13 +128,13 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , - "rect" : [ 0.0, 0.0, 640.0, 480.0 ], + "rect" : [ 59.0, 104.0, 640.0, 480.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -310,7 +309,7 @@ ] } , - "patching_rect" : [ 30.0, 120.0, 130.0, 22.0 ], + "patching_rect" : [ 30.0, 120.0, 97.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -320,7 +319,7 @@ } , "style" : "", - "text" : "p good_ethical_values" + "text" : "p ethical_values" } } diff --git a/max/lib_audiorate/zpn_presets.json b/max/lib_audiorate/zpn_presets.json index 269fdbb..f3538fb 100644 --- a/max/lib_audiorate/zpn_presets.json +++ b/max/lib_audiorate/zpn_presets.json @@ -1,223 +1,7 @@ { "pattrstorage" : { - "name" : "u601003953", + "name" : "u333004034", "slots" : { - "1" : { - "id" : 1, - "data" : { - "all_poke" : [ 0 ], - "all_swipe" : [ 0 ], - "all_warp" : [ 0 ], - "all_summon" : [ 0 ], - "all_migrate" : [ 0 ], - "all_slip" : [ 0 ], - "client1::tog_migrate" : [ ], - "client1::tog_openclose" : [ ], - "client1::tog_poke" : [ ], - "client1::tog_slip" : [ ], - "client1::tog_summon" : [ ], - "client1::tog_swipe" : [ ], - "client2::tog_migrate" : [ ], - "client2::tog_openclose" : [ ], - "client2::tog_poke" : [ ], - "client2::tog_slip" : [ ], - "client2::tog_summon" : [ ], - "client2::tog_swipe" : [ ], - "client3::tog_migrate" : [ ], - "client3::tog_openclose" : [ ], - "client3::tog_poke" : [ ], - "client3::tog_slip" : [ ], - "client3::tog_summon" : [ ], - "client3::tog_swipe" : [ ] - } - - } -, - "2" : { - "id" : 2, - "data" : { - "all_poke" : [ 0 ], - "all_swipe" : [ 0 ], - "all_warp" : [ 0 ], - "all_summon" : [ 93 ], - "all_migrate" : [ 87 ], - "all_slip" : [ 86 ], - "client1::tog_migrate" : [ ], - "client1::tog_openclose" : [ ], - "client1::tog_poke" : [ ], - "client1::tog_slip" : [ ], - "client1::tog_summon" : [ ], - "client1::tog_swipe" : [ ], - "client2::tog_migrate" : [ ], - "client2::tog_openclose" : [ ], - "client2::tog_poke" : [ ], - "client2::tog_slip" : [ ], - "client2::tog_summon" : [ ], - "client2::tog_swipe" : [ ], - "client3::tog_migrate" : [ ], - "client3::tog_openclose" : [ ], - "client3::tog_poke" : [ ], - "client3::tog_slip" : [ ], - "client3::tog_summon" : [ ], - "client3::tog_swipe" : [ ] - } - - } -, - "3" : { - "id" : 3, - "data" : { - "all_poke" : [ 0 ], - "all_swipe" : [ 0 ], - "all_warp" : [ 0 ], - "all_summon" : [ 0 ], - "all_migrate" : [ 87 ], - "all_slip" : [ 86 ], - "client1::tog_migrate" : [ ], - "client1::tog_openclose" : [ ], - "client1::tog_poke" : [ ], - "client1::tog_slip" : [ ], - "client1::tog_summon" : [ ], - "client1::tog_swipe" : [ ], - "client2::tog_migrate" : [ ], - "client2::tog_openclose" : [ ], - "client2::tog_poke" : [ ], - "client2::tog_slip" : [ ], - "client2::tog_summon" : [ ], - "client2::tog_swipe" : [ ], - "client3::tog_migrate" : [ ], - "client3::tog_openclose" : [ ], - "client3::tog_poke" : [ ], - "client3::tog_slip" : [ ], - "client3::tog_summon" : [ ], - "client3::tog_swipe" : [ ] - } - - } -, - "4" : { - "id" : 4, - "data" : { - "all_poke" : [ 0 ], - "all_swipe" : [ 0 ], - "all_warp" : [ 91 ], - "all_summon" : [ 0 ], - "all_migrate" : [ 0 ], - "all_slip" : [ 0 ], - "client1::tog_migrate" : [ ], - "client1::tog_openclose" : [ ], - "client1::tog_poke" : [ ], - "client1::tog_slip" : [ ], - "client1::tog_summon" : [ ], - "client1::tog_swipe" : [ ], - "client2::tog_migrate" : [ ], - "client2::tog_openclose" : [ ], - "client2::tog_poke" : [ ], - "client2::tog_slip" : [ ], - "client2::tog_summon" : [ ], - "client2::tog_swipe" : [ ], - "client3::tog_migrate" : [ ], - "client3::tog_openclose" : [ ], - "client3::tog_poke" : [ ], - "client3::tog_slip" : [ ], - "client3::tog_summon" : [ ], - "client3::tog_swipe" : [ ] - } - - } -, - "6" : { - "id" : 6, - "data" : { - "all_poke" : [ 0 ], - "all_swipe" : [ 0 ], - "all_warp" : [ 0 ], - "all_summon" : [ 0 ], - "all_migrate" : [ 87 ], - "all_slip" : [ 86 ], - "client1::tog_migrate" : [ ], - "client1::tog_openclose" : [ ], - "client1::tog_poke" : [ ], - "client1::tog_slip" : [ ], - "client1::tog_summon" : [ ], - "client1::tog_swipe" : [ ], - "client2::tog_migrate" : [ ], - "client2::tog_openclose" : [ ], - "client2::tog_poke" : [ ], - "client2::tog_slip" : [ ], - "client2::tog_summon" : [ ], - "client2::tog_swipe" : [ ], - "client3::tog_migrate" : [ ], - "client3::tog_openclose" : [ ], - "client3::tog_poke" : [ ], - "client3::tog_slip" : [ ], - "client3::tog_summon" : [ ], - "client3::tog_swipe" : [ ] - } - - } -, - "7" : { - "id" : 7, - "data" : { - "all_poke" : [ 0 ], - "all_swipe" : [ 0 ], - "all_warp" : [ 91 ], - "all_summon" : [ 93 ], - "all_migrate" : [ 87 ], - "all_slip" : [ 86 ], - "client1::tog_migrate" : [ ], - "client1::tog_openclose" : [ ], - "client1::tog_poke" : [ ], - "client1::tog_slip" : [ ], - "client1::tog_summon" : [ ], - "client1::tog_swipe" : [ ], - "client2::tog_migrate" : [ ], - "client2::tog_openclose" : [ ], - "client2::tog_poke" : [ ], - "client2::tog_slip" : [ ], - "client2::tog_summon" : [ ], - "client2::tog_swipe" : [ ], - "client3::tog_migrate" : [ ], - "client3::tog_openclose" : [ ], - "client3::tog_poke" : [ ], - "client3::tog_slip" : [ ], - "client3::tog_summon" : [ ], - "client3::tog_swipe" : [ ] - } - - } -, - "8" : { - "id" : 8, - "data" : { - "all_poke" : [ 0 ], - "all_swipe" : [ 0 ], - "all_warp" : [ 0 ], - "all_summon" : [ 0 ], - "all_migrate" : [ 0 ], - "all_slip" : [ 0 ], - "client1::tog_migrate" : [ ], - "client1::tog_openclose" : [ ], - "client1::tog_poke" : [ ], - "client1::tog_slip" : [ ], - "client1::tog_summon" : [ ], - "client1::tog_swipe" : [ ], - "client2::tog_migrate" : [ ], - "client2::tog_openclose" : [ ], - "client2::tog_poke" : [ ], - "client2::tog_slip" : [ ], - "client2::tog_summon" : [ ], - "client2::tog_swipe" : [ ], - "client3::tog_migrate" : [ ], - "client3::tog_openclose" : [ ], - "client3::tog_poke" : [ ], - "client3::tog_slip" : [ ], - "client3::tog_summon" : [ ], - "client3::tog_swipe" : [ ] - } - - } } diff --git a/max/lib_krate/zpn_mig_hover.maxpat b/max/lib_krate/zpn_mig_hover.maxpat index bf4aa28..93be441 100644 --- a/max/lib_krate/zpn_mig_hover.maxpat +++ b/max/lib_krate/zpn_mig_hover.maxpat @@ -3,13 +3,13 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , - "rect" : [ 178.0, 173.0, 1057.0, 949.0 ], + "rect" : [ 224.0, 79.0, 1057.0, 949.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -37,6 +37,47 @@ "style" : "", "subpatcher_template" : "gridded", "boxes" : [ { + "box" : { + "id" : "obj-29", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 728.0, 41.0, 34.0, 20.0 ], + "style" : "", + "text" : "prev" + } + + } +, { + "box" : { + "fontface" : 0, + "fontsize" : 12.0, + "id" : "obj-26", + "linecount" : 3, + "maxclass" : "o.expr.codebox", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 635.5, 63.0, 416.0, 59.0 ], + "text" : "/ampval = pow(/xyz[[2]], 3.),\n/on = bool(/xyz[[2]] > 0.),\n/mig/var = [\"var\", scale(/xyz[[0]], 0., 1., 0.00001, 1)]", + "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-24", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 315.0, 26.0, 150.0, 47.0 ], + "style" : "", + "text" : "remap: \n/xyz 2 should be 1\n/xyz 1 should be 2" + } + + } +, { "box" : { "fontface" : 0, "fontsize" : 12.0, @@ -139,7 +180,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 424.0, 45.0, 150.0, 20.0 ], + "patching_rect" : [ 490.0, 26.0, 150.0, 20.0 ], "style" : "", "text" : "/client/*/hover/migrate/" } @@ -155,9 +196,9 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , @@ -411,7 +452,7 @@ "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], "patching_rect" : [ 44.5, 184.5, 424.0, 59.0 ], - "text" : "/ampval = pow(/xyz[[2]], 3.),\n/on = bool(/xyz[[2]] > 0.),\n/mig/var = [\"var\", scale(/xyz[[0]], 0., 1., 0.00001, 1)]", + "text" : "/ampval = pow(/xyz[[1]], 3.),\n/on = bool(/xyz[[1]] > 0.),\n/mig/var = [\"var\", scale(/xyz[[0]], 0., 1., 0.00001, 1)]", "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] } @@ -478,9 +519,9 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , diff --git a/max/lib_krate/zpn_slip_hover.maxpat b/max/lib_krate/zpn_slip_hover.maxpat index 074b9a5..ecf9829 100644 --- a/max/lib_krate/zpn_slip_hover.maxpat +++ b/max/lib_krate/zpn_slip_hover.maxpat @@ -3,13 +3,13 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , - "rect" : [ 694.0, 202.0, 717.0, 836.0 ], + "rect" : [ 34.0, 79.0, 1372.0, 783.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -40,17 +40,43 @@ "box" : { "fontface" : 0, "fontsize" : 11.0, - "id" : "obj-7", - "linecount" : 9, + "id" : "obj-13", + "linecount" : 7, "maxclass" : "o.expr.codebox", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 193.0, 5.0, 435.0, 131.0 ], - "text" : "/freq = scale(/xyz[[0]], 0., 1., 2, 20),\n/scale/min = 25,\n/scale/max = 240,\n/exponent = scale(/xyz[[1]], 0., 1., 0.5, 33),\nif(/xyz[[0]] > 0.5,\n /add = scale(/xyz[[0]], 0.5, 1., 0., 0.125),\n /add = 0\n),\nif(exists(/ampkill), /amp = 0., /amp = (/xyz[[2]] * 0.8) + /add)", + "patching_rect" : [ 564.0, 287.0, 501.0, 106.0 ], + "presentation_rect" : [ 564.0, 287.0, 0.0, 0.0 ], + "text" : "/freq = scale(/xyz[[0]], 0., 1., 2, 20),\n/exponent = scale(/xyz[[1]], 0., 1., 0.5, 33),\nif(/xyz[[0]] > 0.5,\n /add = scale(/xyz[[0]], 0.5, 1., 0., 0.125),\n /add = 0\n),\nif(exists(/ampkill), /amp = 0., /amp = pow((/xyz[[2]] * 0.8) + /add, 3.))", "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] } + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 99.0, 31.0, 150.0, 20.0 ], + "style" : "", + "text" : "/client/*/hover/slip" + } + + } +, { + "box" : { + "id" : "obj-24", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 152.5, 78.0, 150.0, 47.0 ], + "style" : "", + "text" : "remap: \n/xyz 2 should be 1\n/xyz 1 should be 2" + } + } , { "box" : { @@ -250,7 +276,7 @@ "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], "patching_rect" : [ 83.0, 490.0, 501.0, 106.0 ], - "text" : "/freq = scale(/xyz[[0]], 0., 1., 2, 20),\n/exponent = scale(/xyz[[1]], 0., 1., 0.5, 33),\nif(/xyz[[0]] > 0.5,\n /add = scale(/xyz[[0]], 0.5, 1., 0., 0.125),\n /add = 0\n),\nif(exists(/ampkill), /amp = 0., /amp = pow((/xyz[[2]] * 0.8) + /add, 3.))", + "text" : "/freq = scale(/xyz[[0]], 0., 1., 2, 20),\n/exponent = scale(/xyz[[2]], 0., 1., 0.5, 33),\nif(/xyz[[0]] > 0.5,\n /add = scale(/xyz[[0]], 0.5, 1., 0., 0.125),\n /add = 0\n),\nif(exists(/ampkill), /amp = 0., /amp = pow((/xyz[[1]] * 0.8) + /add, 3.))", "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] } diff --git a/max/lib_krate/zpn_swipe.maxpat b/max/lib_krate/zpn_swipe.maxpat index 9e93410..7cd4cd8 100644 --- a/max/lib_krate/zpn_swipe.maxpat +++ b/max/lib_krate/zpn_swipe.maxpat @@ -3,13 +3,13 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , - "rect" : [ 817.0, 375.0, 644.0, 664.0 ], + "rect" : [ 51.0, 111.0, 964.0, 664.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -37,13 +37,54 @@ "style" : "", "subpatcher_template" : "gridded", "boxes" : [ { + "box" : { + "fontface" : 0, + "fontsize" : 10.0, + "id" : "obj-19", + "linecount" : 8, + "maxclass" : "o.expr.codebox", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 585.0, 257.0, 259.0, 109.0 ], + "text" : "/amp = /xyz[[2]] / 2.,\n/time = /duration/sec * 7000.,\n/up = [49.5 + /rand, 0, 58.79, /time],\n/down = [58.79, 0, 49.5 + /rand, /time],\nif(/direction/xyz[[0]] > 0., \n /c/msg = /up,\n /c/msg = /down\n)", + "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-18", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 541.0, 28.0, 150.0, 20.0 ], + "style" : "", + "text" : "/client/*/gesture/swipe" + } + + } +, { + "box" : { + "id" : "obj-24", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 523.0, 149.56488, 150.0, 47.0 ], + "style" : "", + "text" : "remap: \n/xyz 2 should be 1\n/xyz 1 should be 2" + } + + } +, { "box" : { "id" : "obj-15", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "bang" ], - "patching_rect" : [ 186.0, 164.0, 30.0, 22.0 ], + "patching_rect" : [ 189.0, 244.0, 30.0, 22.0 ], "style" : "", "text" : "t l b" } @@ -56,7 +97,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 328.0, 209.0, 77.0, 22.0 ], + "patching_rect" : [ 331.0, 289.0, 77.0, 22.0 ], "style" : "", "text" : "o.pack /rand" } @@ -71,8 +112,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 328.0, 234.56488, 175.0, 30.0 ], - "presentation_rect" : [ 367.5, 200.56488, 0.0, 0.0 ], + "patching_rect" : [ 331.0, 314.56488, 175.0, 30.0 ], "text" : "/rand = (/rand / 999.) * 2.", "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] } @@ -85,7 +125,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], - "patching_rect" : [ 328.0, 179.0, 81.0, 22.0 ], + "patching_rect" : [ 331.0, 259.0, 81.0, 22.0 ], "style" : "", "text" : "random 1000" } @@ -98,7 +138,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], - "patching_rect" : [ 328.0, 143.0, 60.0, 22.0 ], + "patching_rect" : [ 331.0, 223.0, 60.0, 22.0 ], "style" : "", "text" : "loadbang" } @@ -111,8 +151,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 186.0, 264.0, 50.0, 22.0 ], - "presentation_rect" : [ 111.0, 247.56488, 0.0, 0.0 ], + "patching_rect" : [ 189.0, 344.0, 50.0, 22.0 ], "style" : "", "text" : "o.union" } @@ -125,7 +164,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 482.0, 344.0, 92.0, 22.0 ], + "patching_rect" : [ 485.0, 424.0, 92.0, 22.0 ], "style" : "", "text" : "o.if /active == 0" } @@ -138,7 +177,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 115.0, 94.56488, 90.0, 22.0 ], + "patching_rect" : [ 118.0, 174.56488, 90.0, 22.0 ], "style" : "", "text" : "o.select /active" } @@ -154,24 +193,11 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 482.0, 372.56488, 127.0, 52.0 ], + "patching_rect" : [ 485.0, 452.56488, 127.0, 52.0 ], "text" : "/c/msg = [0, 100],\n/amp = 0.,\n/time = 10.", "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] } - } -, { - "box" : { - "id" : "obj-2", - "maxclass" : "newobj", - "numinlets" : 3, - "numoutlets" : 2, - "outlettype" : [ "signal", "bang" ], - "patching_rect" : [ 448.0, 481.0, 47.0, 22.0 ], - "style" : "", - "text" : "curve~" - } - } , { "box" : { @@ -180,7 +206,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 186.0, 293.0, 129.0, 22.0 ], + "patching_rect" : [ 189.0, 373.0, 129.0, 22.0 ], "style" : "", "text" : "o.if /duration/sec < 0.2" } @@ -193,7 +219,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 186.0, 499.0, 145.0, 22.0 ], + "patching_rect" : [ 189.0, 579.0, 145.0, 22.0 ], "style" : "", "text" : "o.prepend /gesture/swipe" } @@ -210,9 +236,9 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , @@ -422,7 +448,7 @@ ] } , - "patching_rect" : [ 482.0, 276.56488, 69.0, 22.0 ], + "patching_rect" : [ 485.0, 356.56488, 69.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -443,7 +469,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 186.0, 126.56488, 110.5, 22.0 ], + "patching_rect" : [ 189.0, 206.56488, 110.5, 22.0 ], "style" : "", "text" : "o.union" } @@ -459,8 +485,8 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 186.0, 347.56488, 259.0, 109.0 ], - "text" : "/amp = /xyz[[2]] / 2.,\n/time = /duration/sec * 7000.,\n/up = [49.5 + /rand, 0, 58.79, /time],\n/down = [58.79, 0, 49.5 + /rand, /time],\nif(/direction/xyz[[0]] > 0., \n /c/msg = /up,\n /c/msg = /down\n)", + "patching_rect" : [ 189.0, 427.56488, 259.0, 109.0 ], + "text" : "/amp = /xyz[[1]] / 2.,\n/time = /duration/sec * 7000.,\n/up = [49.5 + /rand, 0, 58.79, /time],\n/down = [58.79, 0, 49.5 + /rand, /time],\nif(/direction/xyz[[0]] > 0., \n /c/msg = /up,\n /c/msg = /down\n)", "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] } @@ -498,7 +524,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 186.0, 538.56488, 30.0, 30.0 ], + "patching_rect" : [ 189.0, 618.56488, 30.0, 30.0 ], "style" : "" } @@ -563,7 +589,7 @@ "destination" : [ "obj-7", 0 ], "disabled" : 0, "hidden" : 0, - "midpoints" : [ 195.5, 211.0 ], + "midpoints" : [ 198.5, 291.0 ], "source" : [ "obj-15", 0 ] } diff --git a/max/lib_krate/zpn_warp.maxpat b/max/lib_krate/zpn_warp.maxpat index 9950a81..523bf89 100644 --- a/max/lib_krate/zpn_warp.maxpat +++ b/max/lib_krate/zpn_warp.maxpat @@ -3,13 +3,13 @@ "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , - "rect" : [ 242.0, 97.0, 804.0, 555.0 ], + "rect" : [ 519.0, 79.0, 642.0, 711.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -37,66 +37,92 @@ "style" : "", "subpatcher_template" : "gridded", "boxes" : [ { + "box" : { + "id" : "obj-23", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 179.0, 230.833328, 78.0, 22.0 ], + "style" : "", + "text" : "o.route /gate" + } + + } +, { "box" : { "fontface" : 0, - "fontsize" : 11.0, - "id" : "obj-4", - "linecount" : 8, + "fontsize" : 12.0, + "id" : "obj-22", + "linecount" : 2, "maxclass" : "o.expr.codebox", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 34.5, 412.0, 415.0, 118.0 ], - "text" : "/f0 = /hand/leftmost/finger/1/distance/to/finger/3,\n/gain = /hand/leftmost/finger/1/distance/to/finger/4,\n/modulator = /hand/leftmost/finger/1/distance/to/finger/5,\n/f0 = scale(/f0, 0, 1, 14, 240),\n/gain = scale(/gain, 0, 1, 25, 60),\n/modulator = scale(/modulator, 0, 1, 1., 3.333333),\n/p1/freq = /modulator * 0.5,\n/p2/freq = /modulator * 0.125", + "patching_rect" : [ 179.0, 174.777786, 358.0, 46.0 ], + "presentation_rect" : [ 312.5, 181.0, 0.0, 0.0 ], + "text" : "if(/hands != 2, /gesture/openclose/active = 0),\n/gate = (/hands == 2)", "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] } } , { "box" : { - "id" : "obj-12", + "id" : "obj-18", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 586.5, 242.0, 193.0, 22.0 ], + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 427.5, 337.0, 90.0, 22.0 ], "style" : "", - "text" : "o.if /gesture/openclose/active == 0" + "text" : "o.select /active" } } , { "box" : { - "fontface" : 0, - "fontsize" : 12.0, - "id" : "obj-7", - "maxclass" : "o.expr.codebox", + "id" : "obj-17", + "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 586.5, 271.0, 85.0, 32.0 ], - "text" : "/hands = 0", - "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 427.5, 309.0, 153.0, 22.0 ], + "style" : "", + "text" : "o.route /gesture/openclose" } } , { "box" : { - "id" : "obj-2", + "id" : "obj-6", "maxclass" : "newobj", - "numinlets" : 0, - "numoutlets" : 0, + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 10.5, 257.0, 34.0, 22.0 ], + "style" : "", + "text" : "gate" + } + + } +, { + "box" : { + "id" : "obj-91", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], "patcher" : { "fileversion" : 1, "appversion" : { "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", + "minor" : 2, + "revision" : 2, + "architecture" : "x64", "modernui" : 1 } , - "rect" : [ 0.0, 0.0, 640.0, 480.0 ], + "rect" : [ 59.0, 104.0, 295.0, 291.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -127,26 +153,14 @@ "box" : { "fontface" : 0, "fontsize" : 12.0, - "id" : "obj-7", - "maxclass" : "o.display", + "id" : "obj-1", + "maxclass" : "o.expr.codebox", "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 251.0, 422.0, 282.0, 34.0 ], - "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] - } - - } -, { - "box" : { - "id" : "obj-6", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 201.0, 352.0, 50.0, 22.0 ], - "style" : "", - "text" : "o.union" + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 97.0, 111.0, 92.0, 32.0 ], + "text" : "/active = 0", + "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] } } @@ -154,121 +168,105 @@ "box" : { "fontface" : 0, "fontsize" : 12.0, - "id" : "obj-4", - "linecount" : 3, + "id" : "obj-6", "maxclass" : "o.expr.codebox", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 334.0, 244.5, 230.0, 59.0 ], - "text" : "/active = /interactionBox/hands/present && /hands", + "patching_rect" : [ 39.0, 154.0, 92.0, 32.0 ], + "text" : "/active = 1", "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] } } , { "box" : { - "id" : "obj-2", + "id" : "obj-37", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 291.0, 139.0, 256.0, 22.0 ], + "numoutlets" : 3, + "outlettype" : [ "FullPacket", "FullPacket", "FullPacket" ], + "patching_rect" : [ 39.0, 58.0, 184.0, 22.0 ], "style" : "", - "text" : "o.gather /interactionBox/hands/present /hands" + "text" : "o.cond /hands == 2\\, /hands == 1" } } , { "box" : { - "fontface" : 0, - "fontsize" : 12.0, - "id" : "obj-117", - "maxclass" : "o.compose", - "numinlets" : 2, + "comment" : "", + "id" : "obj-89", + "maxclass" : "inlet", + "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 501.0, 372.0, 102.0, 24.0 ], - "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 47, 97, 99, 116, 105, 118, 101, 0, 44, 105, 0, 0, 0, 0, 0, 0 ], - "saved_bundle_length" : 36, - "text" : "/active : 0", - "textcolor" : [ 0.188, 0.188, 0.188, 1.0 ] + "patching_rect" : [ 39.0, 17.0, 30.0, 30.0 ], + "style" : "" } } , { "box" : { - "fontface" : 0, - "fontsize" : 12.0, - "id" : "obj-108", - "maxclass" : "o.expr.codebox", + "comment" : "", + "id" : "obj-90", + "maxclass" : "outlet", "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 50.0, 169.0, 402.0, 32.0 ], - "text" : "if(!/interactionBox/hands/present, /active = 0, NULL) ", - "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] + "numoutlets" : 0, + "patching_rect" : [ 47.0, 230.0, 30.0, 30.0 ], + "style" : "" } } -, { - "box" : { - "id" : "obj-100", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 50.0, 130.0, 60.0, 22.0 ], - "style" : "", - "text" : "o.change" + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-90", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-1", 0 ] } } , { - "box" : { - "id" : "obj-51", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 50.0, 100.0, 214.0, 22.0 ], - "style" : "", - "text" : "o.select /interactionBox/hands/present" + "patchline" : { + "destination" : [ "obj-1", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-37", 1 ] } } - ], - "lines" : [ { +, { "patchline" : { - "destination" : [ "obj-108", 0 ], + "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-100", 0 ] + "source" : [ "obj-37", 0 ] } } , { "patchline" : { - "destination" : [ "obj-100", 0 ], + "destination" : [ "obj-90", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-51", 0 ] + "source" : [ "obj-6", 0 ] } } , { "patchline" : { - "destination" : [ "obj-7", 0 ], + "destination" : [ "obj-37", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-6", 0 ] + "source" : [ "obj-89", 0 ] } } ] } , - "patching_rect" : [ 684.5, 324.0, 27.0, 22.0 ], + "patching_rect" : [ 153.0, 9.5, 162.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -278,36 +276,49 @@ } , "style" : "", - "text" : "p ?" + "text" : "p pass_if_right_indexExtend" + } + + } +, { + "box" : { + "id" : "obj-24", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 153.0, 43.5, 150.0, 47.0 ], + "style" : "", + "text" : "remap: \n/xyz 2 should be 1\n/xyz 1 should be 2" } } , { "box" : { "fontface" : 0, - "fontsize" : 12.0, - "id" : "obj-11", - "linecount" : 2, + "fontsize" : 11.0, + "id" : "obj-4", + "linecount" : 8, "maxclass" : "o.expr.codebox", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 480.5, 331.0, 157.0, 46.0 ], - "text" : "/active = 0,\ndelete(/hands)", + "patching_rect" : [ 10.5, 527.5, 415.0, 118.0 ], + "text" : "/f0 = /hand/leftmost/finger/1/distance/to/finger/3,\n/gain = /hand/rightmost/palm/position/normalized/xyz[[2]],\n/modulator = /hand/leftmost/finger/1/distance/to/finger/5,\n/f0 = scale(/f0, 0, 1, 14, 240),\n/gain/fold = scale(/gain, 0, 1, 25., 60.),\n/modulator = scale(/modulator, 0, 1, 1., 12.333333),\n/p1/freq = /modulator * 0.5,\n/p2/freq = /modulator * 0.125", "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] } } , { "box" : { - "id" : "obj-10", + "id" : "obj-12", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 480.5, 276.0, 86.0, 22.0 ], + "patching_rect" : [ 427.5, 285.0, 193.0, 22.0 ], "style" : "", - "text" : "o.if /hands < 1" + "text" : "o.if /gesture/openclose/active == 0" } } @@ -318,7 +329,7 @@ "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 480.5, 242.0, 60.0, 22.0 ], + "patching_rect" : [ 179.0, 147.888885, 60.0, 22.0 ], "style" : "", "text" : "o.change" } @@ -331,7 +342,7 @@ "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "", "", "FullPacket" ], - "patching_rect" : [ 480.5, 213.0, 231.0, 22.0 ], + "patching_rect" : [ 179.0, 121.0, 231.0, 22.0 ], "style" : "", "text" : "o.select /hands /gesture/openclose/active" } @@ -344,7 +355,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 24.0, 59.0, 29.5, 22.0 ], + "patching_rect" : [ 25.5, 80.0, 29.5, 22.0 ], "style" : "", "text" : "t l l" } @@ -357,7 +368,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 480.5, 412.0, 169.0, 22.0 ], + "patching_rect" : [ 427.5, 470.0, 169.0, 22.0 ], "style" : "", "text" : "o.prepend /gesture/openclose" } @@ -370,330 +381,24 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 34.5, 276.0, 339.0, 22.0 ], + "patching_rect" : [ 10.5, 423.0, 339.0, 22.0 ], "style" : "", "text" : "o.gather /f0 /gain /modulator /active /p1/freq /p2/freq /gain/fold" } - } -, { - "box" : { - "id" : "obj-91", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 7, - "minor" : 1, - "revision" : 0, - "architecture" : "x86", - "modernui" : 1 - } -, - "rect" : [ 59.0, 104.0, 565.0, 561.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" : { - "id" : "obj-69", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 210.0, 72.0, 249.0, 22.0 ], - "style" : "", - "text" : "o.select /hand/rightmost/finger/2/is_extended" - } - - } -, { - "box" : { - "fontface" : 0, - "fontsize" : 12.0, - "id" : "obj-72", - "maxclass" : "o.expr.codebox", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 215.0, 132.0, 359.0, 32.0 ], - "text" : "/active = !/hand/rightmost/finger/2/is_extended", - "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] - } - - } -, { - "box" : { - "id" : "obj-7", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 215.0, 198.0, 50.0, 22.0 ], - "style" : "", - "text" : "o.union" - } - - } -, { - "box" : { - "id" : "obj-74", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "", "", "" ], - "patching_rect" : [ 215.0, 39.0, 94.0, 22.0 ], - "style" : "", - "text" : "t l l l" - } - - } -, { - "box" : { - "id" : "obj-78", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 290.0, 521.0, 91.0, 22.0 ], - "style" : "", - "text" : "o.route /extend" - } - - } -, { - "box" : { - "id" : "obj-70", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 290.0, 489.0, 60.0, 22.0 ], - "style" : "", - "text" : "o.change" - } - - } -, { - "box" : { - "fontface" : 0, - "fontsize" : 12.0, - "id" : "obj-6", - "maxclass" : "o.expr.codebox", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 39.0, 85.0, 92.0, 32.0 ], - "text" : "/active = 1", - "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] - } - - } -, { - "box" : { - "fontface" : 0, - "fontsize" : 12.0, - "id" : "obj-5", - "maxclass" : "o.compose", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 248.0, 313.0, 102.0, 24.0 ], - "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 47, 97, 99, 116, 105, 118, 101, 0, 44, 105, 0, 0, 0, 0, 0, 0 ], - "saved_bundle_length" : 36, - "text" : "/active : 0", - "textcolor" : [ 0.188, 0.188, 0.188, 1.0 ] - } - - } -, { - "box" : { - "id" : "obj-4", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "patching_rect" : [ 248.0, 278.0, 24.0, 22.0 ], - "style" : "", - "text" : "t b" - } - - } -, { - "box" : { - "id" : "obj-37", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 39.0, 58.0, 93.0, 22.0 ], - "style" : "", - "text" : "o.if /hands == 2" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-89", - "maxclass" : "inlet", - "numinlets" : 0, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 39.0, 17.0, 30.0, 30.0 ], - "style" : "" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-90", - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 26.0, 422.0, 30.0, 30.0 ], - "style" : "" - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-6", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-37", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-5", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-4", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-90", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-6", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-72", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-69", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-78", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-70", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-7", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-72", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-69", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-74", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-7", 1 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-74", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-37", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-89", 0 ] - } - - } - ] - } -, - "patching_rect" : [ 34.5, 119.0, 162.0, 22.0 ], - "saved_object_attributes" : { - "description" : "", - "digest" : "", - "globalpatchername" : "", - "style" : "", - "tags" : "" - } -, - "style" : "", - "text" : "p pass_if_right_indexExtend" - } - } , { "box" : { "fontface" : 0, "fontsize" : 11.0, "id" : "obj-3", - "linecount" : 8, + "linecount" : 9, "maxclass" : "o.expr.codebox", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 34.5, 150.0, 415.0, 118.0 ], - "text" : "/f0 = /hand/leftmost/finger/1/distance/to/finger/3,\n/gain = /hand/rightmost/palm/position/normalized/xyz[[2]],\n/modulator = /hand/leftmost/finger/1/distance/to/finger/5,\n/f0 = scale(/f0, 0, 1, 14, 240),\n/gain/fold = scale(/gain, 0, 1, 25., 60.),\n/modulator = scale(/modulator, 0, 1, 1., 12.333333),\n/p1/freq = /modulator * 0.5,\n/p2/freq = /modulator * 0.125", + "patching_rect" : [ 10.5, 285.0, 399.5, 130.0 ], + "text" : "/f0 = /hand/leftmost/finger/1/distance/to/finger/3,\n/gain = /hand/rightmost/palm/position/normalized/xyz[[1]],\n/modulator = /hand/leftmost/finger/1/distance/to/finger/5,\n/f0 = scale(/f0, 0, 1, 14, 240),\n/gain/fold = scale(/gain, 0, 1, 25., 60.),\n/modulator = scale(/modulator, 0, 1, 1., 12.333333),\n/p1/freq = /modulator * 0.5,\n/p2/freq = /modulator * 0.125,\n/active = 1", "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] } @@ -706,7 +411,7 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 24.0, 19.0, 30.0, 30.0 ], + "patching_rect" : [ 25.5, 19.5, 30.0, 30.0 ], "style" : "" } @@ -718,7 +423,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 480.5, 488.0, 30.0, 30.0 ], + "patching_rect" : [ 463.5, 636.0, 30.0, 30.0 ], "style" : "" } @@ -726,7 +431,7 @@ ], "lines" : [ { "patchline" : { - "destination" : [ "obj-8", 0 ], + "destination" : [ "obj-6", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] @@ -735,7 +440,7 @@ } , { "patchline" : { - "destination" : [ "obj-91", 0 ], + "destination" : [ "obj-8", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 1 ] @@ -744,10 +449,10 @@ } , { "patchline" : { - "destination" : [ "obj-11", 0 ], + "destination" : [ "obj-17", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-10", 0 ] + "source" : [ "obj-12", 0 ] } } @@ -756,34 +461,34 @@ "destination" : [ "obj-20", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-11", 0 ] + "source" : [ "obj-120", 0 ] } } , { "patchline" : { - "destination" : [ "obj-7", 0 ], + "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-12", 0 ] + "source" : [ "obj-15", 0 ] } } , { "patchline" : { - "destination" : [ "obj-20", 0 ], + "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-120", 0 ] + "source" : [ "obj-17", 0 ] } } , { "patchline" : { - "destination" : [ "obj-1", 0 ], + "destination" : [ "obj-20", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-15", 0 ] + "source" : [ "obj-18", 0 ] } } @@ -798,55 +503,73 @@ } , { "patchline" : { - "destination" : [ "obj-120", 0 ], + "destination" : [ "obj-23", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-3", 0 ] + "source" : [ "obj-22", 0 ] } } , { "patchline" : { - "destination" : [ "obj-11", 0 ], + "destination" : [ "obj-12", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-7", 0 ] + "source" : [ "obj-23", 1 ] } } , { "patchline" : { - "destination" : [ "obj-12", 0 ], + "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-8", 1 ] + "source" : [ "obj-23", 0 ] } } , { "patchline" : { - "destination" : [ "obj-9", 0 ], + "destination" : [ "obj-120", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-8", 0 ] + "source" : [ "obj-3", 0 ] } } , { "patchline" : { - "destination" : [ "obj-10", 0 ], + "destination" : [ "obj-3", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-9", 0 ] + "source" : [ "obj-6", 0 ] } } , { "patchline" : { - "destination" : [ "obj-3", 0 ], + "destination" : [ "obj-12", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-8", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-91", 0 ] + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-9", 0 ] } } @@ -868,23 +591,23 @@ "type" : "iLaX" } , { - "name" : "o.if.mxo", + "name" : "o.intersection.mxo", "type" : "iLaX" } , { - "name" : "o.compose.mxo", + "name" : "o.collect.mxo", "type" : "iLaX" } , { - "name" : "o.change.mxo", + "name" : "o.difference.mxo", "type" : "iLaX" } , { - "name" : "o.route.mxo", + "name" : "o.compose.mxo", "type" : "iLaX" } , { - "name" : "o.union.mxo", + "name" : "o.prepend.mxo", "type" : "iLaX" } , { @@ -892,23 +615,19 @@ "type" : "iLaX" } , { - "name" : "o.intersection.mxo", - "type" : "iLaX" - } -, { - "name" : "o.collect.mxo", + "name" : "o.change.mxo", "type" : "iLaX" } , { - "name" : "o.difference.mxo", + "name" : "o.if.mxo", "type" : "iLaX" } , { - "name" : "o.prepend.mxo", + "name" : "o.cond.mxo", "type" : "iLaX" } , { - "name" : "o.display.mxo", + "name" : "o.route.mxo", "type" : "iLaX" } ], diff --git a/max/test/basic_leaptest.maxpat b/max/test/basic_leaptest.maxpat new file mode 100644 index 0000000..d6b7fe4 --- /dev/null +++ b/max/test/basic_leaptest.maxpat @@ -0,0 +1,1384 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 7, + "minor" : 2, + "revision" : 2, + "architecture" : "x64", + "modernui" : 1 + } +, + "rect" : [ 54.0, 86.0, 1438.0, 721.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 2, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 2, + "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" : 12.0, + "id" : "obj-72", + "maxclass" : "o.display", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 915.0, 75.0, 407.0, 34.0 ], + "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-71", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 7, + "minor" : 2, + "revision" : 2, + "architecture" : "x64", + "modernui" : 1 + } +, + "rect" : [ 0.0, 0.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" : { + "id" : "obj-44", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 7, + "minor" : 2, + "revision" : 2, + "architecture" : "x64", + "modernui" : 1 + } +, + "rect" : [ 59.0, 104.0, 820.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" : { + "id" : "obj-15", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 359.0, 287.0, 90.0, 22.0 ], + "style" : "", + "text" : "o.select /active" + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 300.0, 250.0, 78.0, 22.0 ], + "style" : "", + "text" : "o.route /gate" + } + + } +, { + "box" : { + "fontface" : 0, + "fontsize" : 12.0, + "id" : "obj-22", + "maxclass" : "o.expr.codebox", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 300.0, 195.0, 236.0, 32.0 ], + "text" : "/gate = /active = (/hands == 2)", + "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 300.0, 168.111099, 60.0, 22.0 ], + "style" : "", + "text" : "o.change" + } + + } +, { + "box" : { + "id" : "obj-37", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 50.0, 310.0, 34.0, 22.0 ], + "style" : "", + "text" : "gate" + } + + } +, { + "box" : { + "id" : "obj-36", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 300.0, 139.0, 91.0, 22.0 ], + "style" : "", + "text" : "o.select /hands" + } + + } +, { + "box" : { + "id" : "obj-34", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 65.0, 100.0, 29.5, 22.0 ], + "style" : "", + "text" : "t l l" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-42", + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 65.0, 40.0, 30.0, 30.0 ], + "style" : "" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-43", + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 50.0, 392.0, 30.0, 30.0 ], + "style" : "" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-15", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-14", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-37", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-14", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-43", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-15", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-14", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-36", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-34", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-37", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-34", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-36", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-43", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-37", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-34", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-42", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 50.0, 100.0, 53.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "style" : "", + "tags" : "" + } +, + "style" : "", + "text" : "p hands" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 50.0, 124.0, 534.0, 22.0 ], + "style" : "", + "text" : "o.gather /hand/leftmost/palm/position/normalized/xyz /hand/rightmost/palm/position/normalized/xyz" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-68", + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ], + "style" : "" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-69", + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 50.0, 206.0, 30.0, 30.0 ], + "style" : "" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-70", + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 565.0, 206.0, 30.0, 30.0 ], + "style" : "" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-44", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-44", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-68", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-69", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-70", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-7", 1 ] + } + + } + ] + } +, + "patching_rect" : [ 780.0, 45.0, 103.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "style" : "", + "tags" : "" + } +, + "style" : "", + "text" : "p capture_motion" + } + + } +, { + "box" : { + "id" : "obj-67", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "signal" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 7, + "minor" : 2, + "revision" : 2, + "architecture" : "x64", + "modernui" : 1 + } +, + "rect" : [ 59.0, 104.0, 275.0, 424.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" : { + "id" : "obj-58", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "signal", "bang" ], + "patching_rect" : [ 169.0, 209.0, 50.0, 22.0 ], + "style" : "", + "text" : "line~ 0." + } + + } +, { + "box" : { + "id" : "obj-57", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 169.0, 162.0, 47.0, 22.0 ], + "style" : "", + "text" : "$1 100" + } + + } +, { + "box" : { + "id" : "obj-55", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "signal" ], + "patching_rect" : [ 43.0, 274.0, 79.0, 22.0 ], + "style" : "", + "text" : "*~" + } + + } +, { + "box" : { + "id" : "obj-33", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 43.0, 145.0, 47.0, 22.0 ], + "style" : "", + "text" : "$1 100" + } + + } +, { + "box" : { + "id" : "obj-29", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "signal", "bang" ], + "patching_rect" : [ 43.0, 175.0, 50.0, 22.0 ], + "style" : "", + "text" : "line~ 0." + } + + } +, { + "box" : { + "id" : "obj-28", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "signal" ], + "patching_rect" : [ 43.0, 235.0, 79.0, 22.0 ], + "style" : "", + "text" : "*~" + } + + } +, { + "box" : { + "id" : "obj-27", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "signal" ], + "patching_rect" : [ 103.0, 175.0, 46.0, 22.0 ], + "style" : "", + "text" : "noise~" + } + + } +, { + "box" : { + "id" : "obj-15", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "FullPacket" ], + "patching_rect" : [ 43.0, 95.0, 121.0, 22.0 ], + "style" : "", + "text" : "o.route /d/line /active" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-64", + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patching_rect" : [ 43.0, 35.0, 30.0, 30.0 ], + "style" : "" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-66", + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 43.0, 373.5, 30.0, 30.0 ], + "style" : "" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-33", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-15", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-57", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-15", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-27", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-55", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-28", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-29", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-33", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-66", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-55", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-58", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-57", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-55", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-58", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-15", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-64", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 780.0, 105.0, 52.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "style" : "", + "tags" : "" + } +, + "style" : "", + "text" : "p sonify" + } + + } +, { + "box" : { + "id" : "obj-63", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 7, + "minor" : 2, + "revision" : 2, + "architecture" : "x64", + "modernui" : 1 + } +, + "rect" : [ 0.0, 0.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" : 12.0, + "id" : "obj-4", + "linecount" : 11, + "maxclass" : "o.expr.codebox", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 50.0, 100.0, 560.0, 168.0 ], + "text" : "/hand/rightmost/palm/position/normalized/xyz ??= [0., 0., 0.],\n/hand/leftmost/palm/position/normalized/xyz ??= [0., 0., 0.],\n/l/x = /hand/leftmost/palm/position/normalized/xyz[[0]],\n/l/y = /hand/leftmost/palm/position/normalized/xyz[[1]],\n/l/z = /hand/leftmost/palm/position/normalized/xyz[[2]],\n/r/x = /hand/rightmost/palm/position/normalized/xyz[[0]],\n/r/y = /hand/rightmost/palm/position/normalized/xyz[[1]],\n/r/z = /hand/rightmost/palm/position/normalized/xyz[[2]],\n\n/d = sqrt(pow(/r/x - /l/x, 2) + pow(/r/y - /l/y, 2) + pow(/r/z - /l/z, 2)),\n/d/line = 1.0 - clip(/d, 0., 1.)", + "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-61", + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ], + "style" : "" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-62", + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 50.0, 328.0, 30.0, 30.0 ], + "style" : "" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-62", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-61", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 780.0, 75.0, 119.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "style" : "", + "tags" : "" + } +, + "style" : "", + "text" : "p calculate_distance" + } + + } +, { + "box" : { + "id" : "obj-49", + "maxclass" : "gain~", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "signal", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 930.0, 195.0, 22.0, 140.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-48", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 0, + "patching_rect" : [ 930.0, 351.0, 57.0, 22.0 ], + "style" : "", + "text" : "dac~ 1 2" + } + + } +, { + "box" : { + "id" : "obj-31", + "maxclass" : "scope~", + "numinlets" : 2, + "numoutlets" : 0, + "patching_rect" : [ 780.0, 195.0, 130.0, 130.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-21", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 30.0, 465.0, 93.0, 22.0 ], + "style" : "", + "text" : "o.gather /x /y /z" + } + + } +, { + "box" : { + "fontface" : 0, + "fontsize" : 12.0, + "id" : "obj-22", + "linecount" : 3, + "maxclass" : "o.expr.codebox", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 30.0, 390.0, 309.0, 59.0 ], + "text" : "/x = /palm/position/normalized/xyz[[0]],\n/y = /palm/position/normalized/xyz[[1]],\n/z = /palm/position/normalized/xyz[[2]]", + "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-23", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 30.0, 315.0, 24.0, 24.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-24", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 30.0, 360.0, 34.0, 22.0 ], + "style" : "", + "text" : "gate" + } + + } +, { + "box" : { + "fontface" : 0, + "fontsize" : 12.0, + "id" : "obj-25", + "maxclass" : "o.display", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 30.0, 540.0, 240.0, 34.0 ], + "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-20", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 457.5, 465.0, 93.0, 22.0 ], + "style" : "", + "text" : "o.gather /x /y /z" + } + + } +, { + "box" : { + "fontface" : 0, + "fontsize" : 12.0, + "id" : "obj-19", + "linecount" : 3, + "maxclass" : "o.expr.codebox", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 457.5, 390.0, 309.0, 59.0 ], + "text" : "/x = /palm/position/normalized/xyz[[0]],\n/y = /palm/position/normalized/xyz[[1]],\n/z = /palm/position/normalized/xyz[[2]]", + "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-16", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 457.5, 315.0, 24.0, 24.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-17", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 457.5, 360.0, 34.0, 22.0 ], + "style" : "", + "text" : "gate" + } + + } +, { + "box" : { + "fontface" : 0, + "fontsize" : 12.0, + "id" : "obj-18", + "linecount" : 3, + "maxclass" : "o.display", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 457.5, 540.0, 240.0, 61.0 ], + "text" : "/x : 0.5,\n/y : 0.,\n/z : 0.5", + "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "FullPacket" ], + "patching_rect" : [ 104.0, 150.0, 213.0, 22.0 ], + "style" : "", + "text" : "o.route /hand/leftmost /hand/rightmost" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 104.0, 15.0, 24.0, 24.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "patching_rect" : [ 104.0, 45.0, 51.0, 22.0 ], + "style" : "", + "text" : "metro 3" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "button", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "patching_rect" : [ 104.0, 75.0, 24.0, 24.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 104.0, 120.0, 56.0, 22.0 ], + "style" : "", + "text" : "o.io.leap" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-71", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-17", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-16", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-19", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-17", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-20", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-19", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-18", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-20", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-25", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-21", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-21", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-24", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-23", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-24", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-48", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-49", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-48", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-49", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-67", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-63", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-31", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-67", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-49", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-67", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-63", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-71", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-67", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-71", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-72", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-71", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-17", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-9", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-24", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-9", 0 ] + } + + } + ], + "dependency_cache" : [ { + "name" : "o.gather.maxpat", + "bootpath" : "~/Documents/Max 7/Packages/odot/patchers/namespace", + "type" : "JSON", + "implicit" : 1 + } +, { + "name" : "o.righttoleft.maxpat", + "bootpath" : "~/Documents/Max 7/Packages/odot/patchers/ordering", + "type" : "JSON", + "implicit" : 1 + } +, { + "name" : "o.io.leap.mxo", + "type" : "iLaX" + } +, { + "name" : "o.route.mxo", + "type" : "iLaX" + } +, { + "name" : "o.display.mxo", + "type" : "iLaX" + } +, { + "name" : "o.expr.codebox.mxo", + "type" : "iLaX" + } +, { + "name" : "o.intersection.mxo", + "type" : "iLaX" + } +, { + "name" : "o.collect.mxo", + "type" : "iLaX" + } +, { + "name" : "o.difference.mxo", + "type" : "iLaX" + } +, { + "name" : "o.compose.mxo", + "type" : "iLaX" + } +, { + "name" : "o.select.mxo", + "type" : "iLaX" + } +, { + "name" : "o.change.mxo", + "type" : "iLaX" + } + ], + "autosave" : 0, + "bgfillcolor_type" : "gradient", + "bgfillcolor_color1" : [ 0.376471, 0.384314, 0.4, 1.0 ], + "bgfillcolor_color2" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "bgfillcolor_color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "bgfillcolor_angle" : 270.0, + "bgfillcolor_proportion" : 0.39 + } + +}