Understanding Sends and Receives

Aug 24, 2013 at 10:08pm

Understanding Sends and Receives

I’m dissecting a Max patch and still learning much of the basics. I’m confused by the Sends and Receives in this patch.

There’s an object [s ---rec]. To my understanding that should be sending to another object that has the same argument name [r ---rec]. However in the screenshot attached has a live.text object set up as a toggle called “Mute”. This toggle is sending to [s ---rec] but there are no corresponding receive objects with the same argument name. Any explanations?

There is a patcher with the name “rec” though. The “Mute” button is sending information to that patch but why and how? Thanks in advance.

Attachments:
  1. Screen-Shot-2013-08-24-at-9.55.00-PM
#259913
Aug 24, 2013 at 10:19pm

There is probably a [r ---rec] inside the [p rec] patcher, otherwise the [s ---rec] would make no sense.

#259915
Aug 24, 2013 at 10:25pm

Oh yes. Thank you. So you can send and receive to sub-patches. I guess I didn’t realize that. So the “—” is not some special kind of syntax in Max?

#259916
Aug 24, 2013 at 10:38pm

Named objects (like send, receive, buffer etc.) share a global namespace. That means, if you have a [s foo] object in one device, any [r foo] object in any m4l device will receive the messages you send to [s foo]. Even if it’s a completely different m4l device (let’s say the [send] is inside a max-midi-effect and the [receive] inside a max-audio-effect.
To prevent that, you can put “—” at the beginning of the name. The “—” gets replaced by a different number for each m4l device, for example the [s ---foo] will become [s 001foo] in the first device [s 002foo] in the second and so on.
There’s a very short explanation here : http://cycling74.com/docs/max6/dynamic/c74_docs.html#live_symbols

#259918
Aug 24, 2013 at 10:58pm

Thanks a lot for that clarification.

#259919
Aug 24, 2013 at 11:33pm

When Thé patch is locked, click (or cmd-click maybe)on any send / receive and you will get a list of all objects in that namespace in your patch or sub patches. Choosing one in the list will select it.

#259920
Aug 25, 2013 at 2:17am

oh, didn’t know Live had its own unique identifiers

#259928
Aug 25, 2013 at 3:01pm

that --- comes from the old pluggo times, and they were just leaving it like it was.

#259962

You must be logged in to reply to this topic.