universal

Send messages to all instances of the same class in a patcher

Description

universal can be used to send a specific message to all instances of the same class of object in a patcher. Note: The order in which the messages arrive is not defined.

Arguments

Name Type Opt Description
targetting-mode (0 or 1) int opt If a 1 is present as an argument, universal will send messages it receives to objects of the specified class in subpatchers of its patcher as well as in the patcher containing the universal object.

Messages

bang Sends a bang to all instances of the same class of object within the patcher.
int message [int]
Sends an int to all instances of the same class of object within the patcher.
float message [float]
Sends a float to all instances of the same class of object within the patcher.
list message [list]
Sends a list to all instances of the same class of object within the patcher.
anything message [list]
Sends anything to all instances of the same class of object within the patcher.
send message [list]
To send messages to certain objects whose class names are also reserved Max message names (such as int and float), you need to start the message with the send message. send can be used with any class.

Information for box attributes common to all objects

methodnote

Output

None: The object has no outlets, but objects receiving the message(s) it sends may have some form of output from their outlets. However, the order in which the message is sent to various objects is not guaranteed. This is also true when using the send and receive objects.

Examples

Send a message to all objects of the same class at once

See Also

Name Description
forward Send remote messages to a variety of objects
receive Receive messages without patch cords
send Send messages without patch cords
value Share a stored number with other objects