Namespaces

Variants
Actions

receive

From Cycling '74 Wiki
Revision as of 20:32, 1 August 2013 by Corymetcalf (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

receive online refpage

Using the receive object

The receive object is an important object for connecting objects without patch cords and communicating across patches.

receive Tutorials

receive is introduced in the Max Basic Tutorial 16: Remote Messaging.

receive Tips and Workarounds

receive is so commonly used that it can be abbreviated as simply "r". If used with a name argument after the object name, it will have a single outlet that will pass messages from any object that sends to it. If no argument is given, the object will also have an inlet which can be used to set the name of the receive object at any time using the "set <name>" message.

Double-clicking a send or receive object will bring up a contextual window showing all other instances of sends or receives with the same name. Clicking on one of the menu items will bring the patcher window containing that instance to the front and highlight the object. If the object is contained within a subpatch, abstraction, or bpatcher, it will open the patcher and highlight the object. Furthermore, if the object is outside the viewable area of the patcher, it will adjust the view so you can see the highlighted object. This can be very helpful for quickly identifying where the data is going or to make sure that there is a named receive associated with the send.

By tagging data with an index number or symbol, you can send lots of commands through a single send/receive pair, which can help keep larger patches clean.

-- Pasted Max Patch, click to expand. --

There are many different ways to pass data without patch cords. This patch shows a few different ways to send data without patch cords.

-- Pasted Max Patch, click to expand. --

For sending data over a network, take a look at udpsend and udpreceive. You can also use the "mxj net" objects such as mxj net.maxhole.

Also take a look in ./examples/max-tricks/send-receive-tricks:

  • send-receive-hoard-#0.maxpat shows how to use send and receive with the #0 variable to create instance specific send/receive pairs for use in abstractions.
  • send-receive-hoard-#1.maxpat shows how you can set forward/receive names in abstractions using arguments.
  • send-receive-share offers a few different ways to have different UI elements share values with each reflecting updates made in the others, including useful abstractions to simplify the process.

Third-Party Max externals similar to the receive object

Maxobjects.com listing for the receive object

People who looked at/used this object also looked at....

Errors or Clarifications

(please list things that you believe to be errors or omissions from the existing refpage)