From 2828679730852d5f5633d3dcf90e7e0e5b5fa4f6 Mon Sep 17 00:00:00 2001
From: mzed <github@mikezed.com>
Date: Tue, 9 Jul 2019 15:21:46 +0100
Subject: [PATCH] advancing pattr idea

---
 .../patchers/gsi.router.maxpat                | 71 ++++++++++++++++---
 1 file changed, 61 insertions(+), 10 deletions(-)

diff --git a/gesture_sound_interaction_2.0/patchers/gsi.router.maxpat b/gesture_sound_interaction_2.0/patchers/gsi.router.maxpat
index ac020e3..e69ee03 100644
--- a/gesture_sound_interaction_2.0/patchers/gsi.router.maxpat
+++ b/gesture_sound_interaction_2.0/patchers/gsi.router.maxpat
@@ -10,7 +10,7 @@
 		}
 ,
 		"classnamespace" : "box",
-		"rect" : [ 284.0, 144.0, 730.0, 534.0 ],
+		"rect" : [ 663.0, 127.0, 730.0, 534.0 ],
 		"bglocked" : 0,
 		"openinpresentation" : 0,
 		"default_fontsize" : 12.0,
@@ -38,6 +38,50 @@
 		"style" : "",
 		"subpatcher_template" : "mzed_default",
 		"boxes" : [ 			{
+				"box" : 				{
+					"id" : "obj-15",
+					"linecount" : 3,
+					"maxclass" : "comment",
+					"numinlets" : 1,
+					"numoutlets" : 0,
+					"patching_rect" : [ 221.0, 300.0, 152.0, 48.0 ],
+					"presentation_linecount" : 3,
+					"text" : "This might be a better way to attach to all the UI objects - mz"
+				}
+
+			}
+, 			{
+				"box" : 				{
+					"id" : "obj-14",
+					"maxclass" : "number",
+					"numinlets" : 1,
+					"numoutlets" : 2,
+					"outlettype" : [ "", "bang" ],
+					"parameter_enable" : 0,
+					"patching_rect" : [ 130.0, 300.0, 50.0, 22.0 ]
+				}
+
+			}
+, 			{
+				"box" : 				{
+					"id" : "obj-4",
+					"maxclass" : "newobj",
+					"numinlets" : 1,
+					"numoutlets" : 3,
+					"outlettype" : [ "", "", "" ],
+					"patching_rect" : [ 130.0, 267.0, 189.0, 22.0 ],
+					"restore" : [ 1 ],
+					"saved_object_attributes" : 					{
+						"parameter_enable" : 0,
+						"parameter_mappable" : 0
+					}
+,
+					"text" : "pattr @bindto parent::gsi_selector",
+					"varname" : "u659001462"
+				}
+
+			}
+, 			{
 				"box" : 				{
 					"annotation" : "Main GUI input",
 					"comment" : "Main GUI input",
@@ -60,7 +104,7 @@
 					"maxclass" : "outlet",
 					"numinlets" : 1,
 					"numoutlets" : 0,
-					"patching_rect" : [ 191.0, 405.0, 30.0, 30.0 ]
+					"patching_rect" : [ 191.0, 416.0, 30.0, 30.0 ]
 				}
 
 			}
@@ -72,7 +116,7 @@
 					"maxclass" : "outlet",
 					"numinlets" : 1,
 					"numoutlets" : 0,
-					"patching_rect" : [ 329.0, 410.0, 30.0, 30.0 ]
+					"patching_rect" : [ 329.0, 416.0, 30.0, 30.0 ]
 				}
 
 			}
@@ -84,7 +128,7 @@
 					"maxclass" : "outlet",
 					"numinlets" : 1,
 					"numoutlets" : 0,
-					"patching_rect" : [ 272.0, 410.0, 30.0, 30.0 ]
+					"patching_rect" : [ 272.0, 416.0, 30.0, 30.0 ]
 				}
 
 			}
@@ -109,7 +153,7 @@
 					"numinlets" : 0,
 					"numoutlets" : 1,
 					"outlettype" : [ "" ],
-					"patching_rect" : [ 425.0, 80.0, 30.0, 30.0 ]
+					"patching_rect" : [ 425.0, 84.0, 30.0, 30.0 ]
 				}
 
 			}
@@ -122,7 +166,7 @@
 					"numinlets" : 0,
 					"numoutlets" : 1,
 					"outlettype" : [ "" ],
-					"patching_rect" : [ 354.0, 80.0, 30.0, 30.0 ]
+					"patching_rect" : [ 354.0, 84.0, 30.0, 30.0 ]
 				}
 
 			}
@@ -135,7 +179,7 @@
 					"numinlets" : 0,
 					"numoutlets" : 1,
 					"outlettype" : [ "" ],
-					"patching_rect" : [ 282.0, 80.0, 30.0, 30.0 ]
+					"patching_rect" : [ 282.0, 84.0, 30.0, 30.0 ]
 				}
 
 			}
@@ -148,7 +192,7 @@
 					"numinlets" : 0,
 					"numoutlets" : 1,
 					"outlettype" : [ "" ],
-					"patching_rect" : [ 183.0, 80.0, 30.0, 30.0 ]
+					"patching_rect" : [ 183.0, 84.0, 30.0, 30.0 ]
 				}
 
 			}
@@ -161,7 +205,7 @@
 					"numinlets" : 0,
 					"numoutlets" : 1,
 					"outlettype" : [ "" ],
-					"patching_rect" : [ 138.0, 80.0, 30.0, 30.0 ]
+					"patching_rect" : [ 138.0, 84.0, 30.0, 30.0 ]
 				}
 
 			}
@@ -178,7 +222,14 @@
 
 			}
  ],
-		"lines" : [  ],
+		"lines" : [ 			{
+				"patchline" : 				{
+					"destination" : [ "obj-14", 0 ],
+					"source" : [ "obj-4", 0 ]
+				}
+
+			}
+ ],
 		"editing_bgcolor" : [ 0.886274509803922, 0.996078431372549, 0.850980392156863, 1.0 ]
 	}
 
-- 
GitLab