Connect automatically patch cord between patches

Diego Mauricio Murillo Gómez's icon

Hello I have the following a problem,

I have 64 patches with 64 outlets each of them, theses oulets must be connected to a single patch with 64 inlets. It is insane to do this manually.

I usually use an external tool called maxtool but it does not work in this case. I can't connect just one patch (64 oulets) with the other (64 inlets) using max tool box, I have tried all the commands it does not work.

madjax's icon

sounds like a self-inflicted problem. Consider reducing the number of outlets on your patches by prepending arguments before values and passing everything out a single or limited number of outlets. Then you can route for those arguments with a route object after the inlet of your patch. This gives you the ability to have a multitude of data streams pass through a single outlet and inlet.

Luke Woodbury's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You should probably try to follow Madjax's advice, but you can also do this with scripting like in this example (note that each patch has been given a script name of 'out' and 'in'):

Floating Point's icon

you can also use a send with the same name in each sub-patch /abstraction instance and a corresponding receive in your receiving patch for all the common connections

Nicholas Davis's icon

(I didn't read, sorry.)

metamax's icon

Design considerations aside... (you really don't want 4000+ patch cords in your patch)

One scenario:

1. Give your objects scripting names:
example:
• 64 sub patchers named sub[0] to sub[63].
• 64 outlets in each subpatch named myout[0] to myout[63].
• Main subpatch named main has 64 inlets named myin[0] to myin[63].

2. Send scripts to [thispatcher] in each subpatch
• scripting syntax: connect var1 0 to var2 0 (connect first object outlet 0 to second object inlet 0)

3. Use [sprintf] to generate scripts.
examples:
//connect subs to main
[sprintf "sub[%d] %d main[0] %d"] --> [prepend connect] or [prepend disconnect] --> [prepend script] --> [thispatcher]

//connect single object named myobject to the sub outs
[sprintf "myobject %d myout[%d] 0"] --> [prepend connect] or [prepend disconnect] --> [prepend script] --> [thispatcher]

//connect multiple objects named many[0] to many[n] to sub outs
[sprintf "many[%d] 0 myout[%d] 0"] --> [prepend connect] or [prepend disconnect] --> [prepend script] --> [thispatcher]

ALPHY PSYCHE's icon

its nice . but how can we connect abjects patchcords from outlet to inlet automaticly or with a short cut?

Luke Woodbury's icon

Checkit! https://cycling74.com/tools/max-toolbox

Roman Thilenius's icon

[key] -> scripting command