Duplicated structures without interferences using "----" ?

Roald Baudoux's icon

Hello,

#0 is a way to give specific names to objets within a subpatch to avoid interferences between multiple instances. However as it implies random numbers, I remember that a long time ago it was possible to use "----" as a prefix to achieve the same results.

Max Patch
Copy patch and select New From Clipboard in Max.

It doesn't seem to work anymore. Or am I using it the wrong way?

Emmanuel Jourdan's icon

"---" only worked in the pluggo context (it now works in Max for Live). If you want to have independent bpatchers, you can use #0, if you want them all to communicate, pass an argument to the bpatchers, and grab it with #1.

Roald Baudoux's icon

Ok thanks !

pid's icon

hi emanuel. i knew all this. but when vizzie was released i noticed that it too uses "---". seeing as vizzie is just a collection of bpatchers, how is it using the "---"? i asked this in another thread but no-one picked up. i'd be interested if there was a way to utilise it in a vizzie-like context. could you clarify?

thanks.

Gregory Taylor's icon

The original idea was that this would be a polite thing to do for Max for Live users. The unintended consequence of this would-be act of charity was that it implied to Max users that --- worked in Max proper, which (as my colleague Emmanuel has pointed out) isn't so. In any case, it works fine - it merely confuses people who actually write and look at Max patches, which would seem to argue for its elimination. :-)

pid's icon

thanks gregory. funny, i really enjoy reading your replies when they are directed at someone else, but directed at me and i just think, well, that was completely useless and cryptic. so, anyone else wanna reply? preferably in english equipped for a 2 year old to understand?

Emmanuel Jourdan's icon

in frenglish, it sounds like this… The --- used in vizzie actually don't do anything specific. But it'll make your life easier if you want to use vizzie modules in the Max for Live context.

Gregory Taylor's icon

Thanks, Emmanuel.

Was that clear?

pid's icon

yes very! i get it now... thanks.

mudang's icon

#0 is a way to give specific names to objets within a subpatch to avoid interferences between multiple instances. However as it implies random numbers

I don't think, that #0 is generated randomly...it should be perfectly unique for every open patch (but could well be different every time a patch is opened).

Emmanuel Jourdan's icon

#0 value starts at 1000 or something, and each time a new abstraction requires it, the value is incremented. So unless you have the habit to give names of your send/receive (and whatnot) object which start with a number >1000 you are safe.