One preset for several windows


    Nov 06 2011 | 1:42 pm
    Hi from France,
    I am creating a mixing console on Max/Msp for live applications with several patches connected by send and receive (fader window, master window...).
    My problem is that I would like to find a solution to save/recall all parameters with only one preset.
    Could you help me ?
    Moreover, my "compressors-eq" window is inside a bpatcher.
    (when you touch a fader, it moves the bpatcher to display EQ1, EQ6...)
    Thanks
    Pascal

    • Nov 06 2011 | 4:14 pm
      How to do the same thing with autopattr ?
      {
      	"boxes" : [ 		{
      			"box" : 			{
      				"maxclass" : "newobj",
      				"text" : "s forPreset",
      				"patching_rect" : [ 220.0, 181.0, 69.0, 20.0 ],
      				"id" : "obj-8",
      				"fontname" : "Arial",
      				"numinlets" : 1,
      				"fontsize" : 12.0,
      				"numoutlets" : 0
      			}
      
      		}
      , 		{
      			"box" : 			{
      				"maxclass" : "newobj",
      				"text" : "p thing",
      				"patching_rect" : [ 429.0, 237.0, 47.0, 20.0 ],
      				"id" : "obj-7",
      				"fontname" : "Arial",
      				"numinlets" : 0,
      				"fontsize" : 12.0,
      				"numoutlets" : 0,
      				"patcher" : 				{
      					"fileversion" : 1,
      					"appversion" : 					{
      						"major" : 6,
      						"minor" : 0,
      						"revision" : 0
      					}
      ,
      					"rect" : [ 1012.0, 62.0, 640.0, 480.0 ],
      					"bglocked" : 0,
      					"openinpresentation" : 0,
      					"default_fontsize" : 12.0,
      					"default_fontface" : 0,
      					"default_fontname" : "Arial",
      					"gridonopen" : 0,
      					"gridsize" : [ 15.0, 15.0 ],
      					"gridsnaponopen" : 0,
      					"statusbarvisible" : 2,
      					"toolbarvisible" : 1,
      					"boxanimatetime" : 200,
      					"imprint" : 0,
      					"enablehscroll" : 1,
      					"enablevscroll" : 1,
      					"devicewidth" : 0.0,
      					"description" : "",
      					"digest" : "",
      					"tags" : "",
      					"boxes" : [ 						{
      							"box" : 							{
      								"maxclass" : "newobj",
      								"text" : "r forPreset",
      								"patching_rect" : [ 159.0, 59.0, 67.0, 20.0 ],
      								"id" : "obj-2",
      								"fontname" : "Arial",
      								"numinlets" : 0,
      								"fontsize" : 12.0,
      								"numoutlets" : 1,
      								"outlettype" : [ "" ]
      							}
      
      						}
      , 						{
      							"box" : 							{
      								"maxclass" : "flonum",
      								"patching_rect" : [ 225.0, 286.0, 50.0, 20.0 ],
      								"id" : "obj-6",
      								"fontname" : "Arial",
      								"parameter_enable" : 0,
      								"numinlets" : 1,
      								"fontsize" : 12.0,
      								"numoutlets" : 2,
      								"outlettype" : [ "float", "bang" ]
      							}
      
      						}
      , 						{
      							"box" : 							{
      								"maxclass" : "number",
      								"patching_rect" : [ 225.0, 248.0, 50.0, 20.0 ],
      								"id" : "obj-4",
      								"fontname" : "Arial",
      								"parameter_enable" : 0,
      								"numinlets" : 1,
      								"fontsize" : 12.0,
      								"numoutlets" : 2,
      								"outlettype" : [ "int", "bang" ]
      							}
      
      						}
      , 						{
      							"box" : 							{
      								"maxclass" : "preset",
      								"patching_rect" : [ 174.0, 102.0, 100.0, 40.0 ],
      								"id" : "obj-1",
      								"numinlets" : 1,
      								"numoutlets" : 4,
      								"outlettype" : [ "preset", "int", "preset", "int" ],
      								"preset_data" : [ 									{
      										"number" : 1,
      										"data" : [ 5, "obj-4", "number", "int", -21, 5, "obj-6", "flonum", "float", 9.2 ]
      									}
      , 									{
      										"number" : 2,
      										"data" : [ 5, "obj-4", "number", "int", 97, 5, "obj-6", "flonum", "float", -129.0 ]
      									}
      , 									{
      										"number" : 3,
      										"data" : [ 5, "obj-4", "number", "int", -21, 5, "obj-6", "flonum", "float", 9.2 ]
      									}
       ]
      							}
      
      						}
       ],
      					"lines" : [ 						{
      							"patchline" : 							{
      								"source" : [ "obj-2", 0 ],
      								"destination" : [ "obj-1", 0 ],
      								"hidden" : 0,
      								"disabled" : 0
      							}
      
      						}
       ],
      					"dependency_cache" : [  ]
      				}
      ,
      				"saved_object_attributes" : 				{
      					"default_fontname" : "Arial",
      					"fontname" : "Arial",
      					"tags" : "",
      					"default_fontsize" : 12.0,
      					"description" : "",
      					"globalpatchername" : "",
      					"fontface" : 0,
      					"fontsize" : 12.0,
      					"default_fontface" : 0,
      					"digest" : ""
      				}
      
      			}
      
      		}
      , 		{
      			"box" : 			{
      				"maxclass" : "flonum",
      				"patching_rect" : [ 225.0, 286.0, 50.0, 20.0 ],
      				"id" : "obj-6",
      				"fontname" : "Arial",
      				"parameter_enable" : 0,
      				"numinlets" : 1,
      				"fontsize" : 12.0,
      				"numoutlets" : 2,
      				"outlettype" : [ "float", "bang" ]
      			}
      
      		}
      , 		{
      			"box" : 			{
      				"maxclass" : "number",
      				"patching_rect" : [ 224.0, 229.0, 50.0, 20.0 ],
      				"id" : "obj-4",
      				"fontname" : "Arial",
      				"parameter_enable" : 0,
      				"numinlets" : 1,
      				"fontsize" : 12.0,
      				"numoutlets" : 2,
      				"outlettype" : [ "int", "bang" ]
      			}
      
      		}
      , 		{
      			"box" : 			{
      				"maxclass" : "preset",
      				"patching_rect" : [ 174.0, 102.0, 100.0, 40.0 ],
      				"id" : "obj-1",
      				"numinlets" : 1,
      				"numoutlets" : 4,
      				"outlettype" : [ "preset", "int", "preset", "int" ],
      				"preset_data" : [ 					{
      						"number" : 1,
      						"data" : [ 5, "obj-4", "number", "int", 6, 5, "obj-6", "flonum", "float", 0.015 ]
      					}
      , 					{
      						"number" : 2,
      						"data" : [ 5, "obj-4", "number", "int", 59, 5, "obj-6", "flonum", "float", 55.0 ]
      					}
      , 					{
      						"number" : 3,
      						"data" : [ 5, "obj-4", "number", "int", 6, 5, "obj-6", "flonum", "float", 0.015 ]
      					}
       ]
      			}
      
      		}
      , 		{
      			"box" : 			{
      				"maxclass" : "message",
      				"text" : "store $1",
      				"patching_rect" : [ 251.0, 153.0, 52.0, 18.0 ],
      				"id" : "obj-9",
      				"fontname" : "Arial",
      				"numinlets" : 2,
      				"fontsize" : 12.0,
      				"numoutlets" : 1,
      				"outlettype" : [ "" ]
      			}
      
      		}
       ],
      	"lines" : [ 		{
      			"patchline" : 			{
      				"source" : [ "obj-1", 3 ],
      				"destination" : [ "obj-9", 0 ],
      				"hidden" : 0,
      				"disabled" : 0
      			}
      
      		}
      , 		{
      			"patchline" : 			{
      				"source" : [ "obj-9", 0 ],
      				"destination" : [ "obj-8", 0 ],
      				"hidden" : 0,
      				"disabled" : 0
      			}
      
      		}
      , 		{
      			"patchline" : 			{
      				"source" : [ "obj-1", 1 ],
      				"destination" : [ "obj-8", 0 ],
      				"hidden" : 0,
      				"disabled" : 0
      			}
      
      		}
       ]
      }
    • Nov 06 2011 | 5:00 pm
      For again if you want to post patch highlight everything and go to Edit Menu and Copy Compressed and then paste that to the forum.
      Maybe try looking at these tutorials:
      There are 3 on using the pattr family.
    • Nov 07 2011 | 7:50 am
      Do it with pattrstorage and bind the preset object to it...