receive

Receive messages without patch cords

Description

receive will receive and output messages from send objects which are named by the same argument and will allow you to send any kind of message between Patcher windows or within a window without using patch cords. The order of reception by two or more receive objects is not deterministic.
A receive object can be instantiated simply by typing into an object box the short-form letter "r".

Arguments

Name Type Opt Description
object-name symbol opt Gives a name to receive. If there is no argument, receive has one inlet, and a name must be provided by a set message before anything can be received.

Messages

(mouse) Double-clicking on a receive object looks for and opens a loaded patcher window containing a send object with the same name. Repeatedly doubleclicking on the receive object looks for and opens more such windows.
set object-name [symbol] If there is no typed-in argument, receive has one inlet. The word set, followed by a symbol, provides a name for receive, as if that name had been typed in as an argument.

Information for box attributes common to all objects

Output

anything: Any message received in the inlet of any send or forward object with the same name, or sent explicitly from an int, float, grab, or message box, is passed out the outlet of receive, even if the sending object is in a different loaded patch.

Examples

Virtual connections exist between all send and receive objects that share the same name

See Also

Name Description
float Store a decimal number
forward Send remote messages to a variety of objects
int Store an integer value
message Send any message
pattrforward Send any message to a named object anywhere in the patcher hierarchy
pvar Connect to a named object in a patcher
route Selectively pass the input out a specific outlet
send Send messages without patch cords
value Share a stored message with other objects
Max Tutorial 16: Remote Messaging Max Tutorial 16: Remote Messaging