{
	"patcher" : 	{
		"fileversion" : 1,
		"rect" : [ 25.0, 69.0, 251.0, 152.0 ],
		"bglocked" : 0,
		"defrect" : [ 25.0, 69.0, 251.0, 152.0 ],
		"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
		"openinpresentation" : 0,
		"default_fontsize" : 10.0,
		"default_fontface" : 0,
		"default_fontname" : "Arial Bold",
		"gridonopen" : 0,
		"gridsize" : [ 8.0, 8.0 ],
		"gridsnaponopen" : 0,
		"toolbarvisible" : 1,
		"boxanimatetime" : 200,
		"imprint" : 0,
		"enablehscroll" : 1,
		"enablevscroll" : 1,
		"devicewidth" : 0.0,
		"description" : "Browse a menu and get the ID of selected Ableton Live MIDI tracks.",
		"tags" : "\"max for live\"",
		"boxes" : [ 			{
				"box" : 				{
					"annotation" : "## Browse a menu and get the ID of selected Ableton Live MIDI tracks. ##",
					"maxclass" : "newobj",
					"text" : "p StoreID",
					"fontsize" : 10.0,
					"numinlets" : 1,
					"patching_rect" : [ 140.0, 24.0, 55.0, 18.0 ],
					"numoutlets" : 1,
					"id" : "obj-36",
					"fontname" : "Arial Bold",
					"outlettype" : [ "" ],
					"patcher" : 					{
						"fileversion" : 1,
						"rect" : [ 25.0, 69.0, 356.0, 218.0 ],
						"bglocked" : 0,
						"defrect" : [ 25.0, 69.0, 356.0, 218.0 ],
						"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
						"openinpresentation" : 0,
						"default_fontsize" : 10.0,
						"default_fontface" : 0,
						"default_fontname" : "Arial Bold",
						"gridonopen" : 0,
						"gridsize" : [ 8.0, 8.0 ],
						"gridsnaponopen" : 0,
						"toolbarvisible" : 1,
						"boxanimatetime" : 200,
						"imprint" : 0,
						"enablehscroll" : 1,
						"enablevscroll" : 1,
						"devicewidth" : 0.0,
						"boxes" : [ 							{
								"box" : 								{
									"maxclass" : "comment",
									"text" : "Restore ID",
									"fontsize" : 10.0,
									"numinlets" : 1,
									"patching_rect" : [ 64.0, 160.0, 61.0, 18.0 ],
									"numoutlets" : 0,
									"id" : "obj-3",
									"fontname" : "Arial Bold"
								}

							}
, 							{
								"box" : 								{
									"maxclass" : "comment",
									"text" : "Store ID",
									"fontsize" : 10.0,
									"numinlets" : 1,
									"patching_rect" : [ 144.0, 64.0, 49.0, 18.0 ],
									"numoutlets" : 0,
									"id" : "obj-2",
									"fontname" : "Arial Bold"
								}

							}
, 							{
								"box" : 								{
									"maxclass" : "newobj",
									"text" : "gate",
									"fontsize" : 10.0,
									"numinlets" : 2,
									"patching_rect" : [ 80.0, 96.0, 58.5, 18.0 ],
									"numoutlets" : 1,
									"id" : "obj-28",
									"fontname" : "Arial Bold",
									"outlettype" : [ "" ]
								}

							}
, 							{
								"box" : 								{
									"maxclass" : "newobj",
									"text" : "t 1 b",
									"fontsize" : 10.0,
									"numinlets" : 1,
									"patching_rect" : [ 80.0, 40.0, 32.5, 18.0 ],
									"numoutlets" : 2,
									"id" : "obj-27",
									"fontname" : "Arial Bold",
									"outlettype" : [ "int", "bang" ]
								}

							}
, 							{
								"box" : 								{
									"maxclass" : "newobj",
									"text" : "live.thisdevice",
									"fontsize" : 10.0,
									"numinlets" : 1,
									"patching_rect" : [ 80.0, 16.0, 79.0, 18.0 ],
									"numoutlets" : 3,
									"id" : "obj-26",
									"fontname" : "Arial Bold",
									"outlettype" : [ "bang", "int", "int" ]
								}

							}
, 							{
								"box" : 								{
									"maxclass" : "comment",
									"text" : "< The blue live.object object has its \"Use Persistent Mapping\" attribute enabled, which means that it will retain the ID of the parameter which is selected when you save the Live set.",
									"linecount" : 6,
									"fontsize" : 10.0,
									"numinlets" : 1,
									"patching_rect" : [ 160.0, 120.0, 165.0, 75.0 ],
									"numoutlets" : 0,
									"id" : "obj-45",
									"fontname" : "Arial Bold"
								}

							}
, 							{
								"box" : 								{
									"maxclass" : "comment",
									"text" : "< Bang when the device is loaded",
									"linecount" : 2,
									"fontsize" : 10.0,
									"numinlets" : 1,
									"patching_rect" : [ 160.0, 16.0, 88.0, 29.0 ],
									"numoutlets" : 0,
									"id" : "obj-81",
									"fontname" : "Arial"
								}

							}
, 							{
								"box" : 								{
									"maxclass" : "comment",
									"text" : "< Store ID (but not when restoring)",
									"fontsize" : 10.0,
									"numinlets" : 1,
									"patching_rect" : [ 160.0, 96.0, 163.0, 18.0 ],
									"numoutlets" : 0,
									"id" : "obj-82",
									"fontname" : "Arial"
								}

							}
, 							{
								"box" : 								{
									"maxclass" : "message",
									"text" : "getid",
									"fontsize" : 10.0,
									"numinlets" : 2,
									"patching_rect" : [ 40.0, 96.0, 34.0, 16.0 ],
									"numoutlets" : 1,
									"id" : "obj-91",
									"fontname" : "Arial Bold",
									"outlettype" : [ "" ]
								}

							}
, 							{
								"box" : 								{
									"maxclass" : "newobj",
									"text" : "live.object",
									"color" : [ 0.239216, 0.643137, 0.709804, 1.0 ],
									"fontsize" : 10.0,
									"numinlets" : 2,
									"patching_rect" : [ 40.0, 120.0, 59.0, 18.0 ],
									"numoutlets" : 1,
									"id" : "obj-93",
									"fontname" : "Arial Bold",
									"outlettype" : [ "" ],
									"saved_object_attributes" : 									{
										"_persistence" : 1
									}

								}

							}
, 							{
								"box" : 								{
									"maxclass" : "inlet",
									"numinlets" : 0,
									"patching_rect" : [ 120.0, 64.0, 18.0, 18.0 ],
									"numoutlets" : 1,
									"id" : "obj-18",
									"outlettype" : [ "" ],
									"comment" : ""
								}

							}
, 							{
								"box" : 								{
									"maxclass" : "outlet",
									"numinlets" : 1,
									"patching_rect" : [ 40.0, 160.0, 18.0, 18.0 ],
									"numoutlets" : 0,
									"id" : "obj-34",
									"comment" : ""
								}

							}
 ],
						"lines" : [ 							{
								"patchline" : 								{
									"source" : [ "obj-93", 0 ],
									"destination" : [ "obj-34", 0 ],
									"hidden" : 0,
									"midpoints" : [  ]
								}

							}
, 							{
								"patchline" : 								{
									"source" : [ "obj-18", 0 ],
									"destination" : [ "obj-28", 1 ],
									"hidden" : 0,
									"midpoints" : [  ]
								}

							}
, 							{
								"patchline" : 								{
									"source" : [ "obj-27", 0 ],
									"destination" : [ "obj-28", 0 ],
									"hidden" : 0,
									"midpoints" : [  ]
								}

							}
, 							{
								"patchline" : 								{
									"source" : [ "obj-28", 0 ],
									"destination" : [ "obj-93", 1 ],
									"hidden" : 0,
									"midpoints" : [  ]
								}

							}
, 							{
								"patchline" : 								{
									"source" : [ "obj-27", 1 ],
									"destination" : [ "obj-91", 0 ],
									"hidden" : 0,
									"midpoints" : [  ]
								}

							}
, 							{
								"patchline" : 								{
									"source" : [ "obj-26", 0 ],
									"destination" : [ "obj-27", 0 ],
									"hidden" : 0,
									"midpoints" : [  ]
								}

							}
, 							{
								"patchline" : 								{
									"source" : [ "obj-91", 0 ],
									"destination" : [ "obj-93", 0 ],
									"hidden" : 0,
									"midpoints" : [  ]
								}

							}
 ]
					}
,
					"saved_object_attributes" : 					{
						"fontface" : 0,
						"fontsize" : 10.0,
						"default_fontface" : 0,
						"default_fontname" : "Arial Bold",
						"fontname" : "Arial Bold",
						"default_fontsize" : 10.0,
						"globalpatchername" : ""
					}

				}

			}
, 			{
				"box" : 				{
					"maxclass" : "newobj",
					"text" : "substitute iterate id",
					"fontsize" : 10.0,
					"numinlets" : 2,
					"patching_rect" : [ 72.0, 88.0, 103.0, 18.0 ],
					"numoutlets" : 2,
					"id" : "obj-2",
					"fontname" : "Arial Bold",
					"outlettype" : [ "", "" ]
				}

			}
, 			{
				"box" : 				{
					"maxclass" : "bpatcher",
					"varname" : "M4L.api.BrowseClips",
					"args" : [ "trackmidi" ],
					"offset" : [ -9.0, -9.0 ],
					"numinlets" : 2,
					"patching_rect" : [ 72.0, 48.0, 87.0, 31.0 ],
					"numoutlets" : 2,
					"id" : "obj-4",
					"name" : "M4L.Chooser.maxpat",
					"outlettype" : [ "", "" ]
				}

			}
, 			{
				"box" : 				{
					"maxclass" : "comment",
					"text" : "ID",
					"fontsize" : 10.0,
					"numinlets" : 1,
					"patching_rect" : [ 48.0, 104.0, 20.0, 18.0 ],
					"numoutlets" : 0,
					"id" : "obj-9",
					"fontname" : "Arial"
				}

			}
, 			{
				"box" : 				{
					"maxclass" : "message",
					"text" : "id 0",
					"fontsize" : 10.0,
					"numinlets" : 2,
					"patching_rect" : [ 40.0, 120.0, 51.0, 16.0 ],
					"numoutlets" : 1,
					"id" : "obj-7",
					"fontname" : "Arial Bold",
					"outlettype" : [ "" ]
				}

			}
, 			{
				"box" : 				{
					"maxclass" : "comment",
					"text" : "Browse MIDI tracks",
					"linecount" : 2,
					"fontsize" : 10.0,
					"numinlets" : 1,
					"patching_rect" : [ 72.0, 16.0, 61.0, 29.0 ],
					"numoutlets" : 0,
					"id" : "obj-5",
					"fontname" : "Arial"
				}

			}
 ],
		"lines" : [ 			{
				"patchline" : 				{
					"source" : [ "obj-2", 0 ],
					"destination" : [ "obj-36", 0 ],
					"hidden" : 0,
					"midpoints" : [ 81.5, 115.0, 204.5, 115.0, 204.5, 14.0, 149.5, 14.0 ]
				}

			}
, 			{
				"patchline" : 				{
					"source" : [ "obj-36", 0 ],
					"destination" : [ "obj-4", 1 ],
					"hidden" : 0,
					"midpoints" : [  ]
				}

			}
, 			{
				"patchline" : 				{
					"source" : [ "obj-2", 0 ],
					"destination" : [ "obj-7", 1 ],
					"hidden" : 0,
					"midpoints" : [  ]
				}

			}
, 			{
				"patchline" : 				{
					"source" : [ "obj-4", 0 ],
					"destination" : [ "obj-2", 0 ],
					"hidden" : 0,
					"midpoints" : [  ]
				}

			}
 ],
		"parameters" : 		{
			"obj-4::obj-25" : [ "ListItems", "ListItems", 0 ]
		}

	}

}
