Local Send Receive - #0 vs ---
Cheers everyone,
Have a bit of a basic question about the local send/receive functionality. I've seen some sporadic posts about this topic, but can't find anything comprehensive on the matter.
What exactly is the difference between the #0send/receive and ---send/receive methods?
So as best as I understand, --- is only for use in M4L, while #0 works in either platform. #0 is more for use within an abstraction to prevent it from talking to other parts of the rest of a patch. Whereas #0 seems useful for preventing multiple instances of a M4L device having crosstalk. Is this a decently accurate understanding, or am I missing anything significant regarding this?
I've been developing with Max for a few years now, but I don't really have any acquaintances that use it other than for using existing M4L devices. And I had just kind of jumped straight into the deep end, and am almost entirely self-taught, so I'm attempting to go back and fill in some of the holes that I've missed.
Hi Luke,
think of #0 as a"unique" prefix for the send/receive names (or other objects). It is unique in every abstraction and poly~'s instance but in plain subpatchers it is the same as its parent's.
In an abstraction, all the #0 will be the replaced by the same unique (for this abstraction) number i.e. a [send #0_val] will become [send~ 12345_val], there will not be another [send~ 12345_val] in another instance of this abstraction (unless of course you name it yourself!).
It is essentially a way to create unique names in places that you don't have control to rename the send/receive, or any objects that you want to have a unique argument, like a buffer~.
If I create an abstraction that uses a buffer, i will probably name the buffer like [buffer~ #0_sample] so every instance of the abstraction uses a different buffer.
I haven't gotten into M4L so I can't answer for that, but I suppose the same rules apply.
-N.
Well, I just now realized the question... didn't notice the —.
Just ignore anything irrelevant!
actually in m4l, the --- is the equivalent of the #0 in Max. So if you re using a m4l device, you need ---, not #0. I'm not entirely sure #0 doesn't work in m4l devices, but i think so. Anyway, if you put something like a ---#0 in your send/receive par, you should be fine in all cases :)
Awesome, thanks so much for the input!