A newer version of Max is available. Click here to access the latest version of this document.

value

Share a stored number with other objects

Description

value takes a symbol through which all value objects of the same name are linked. If you send any one a message (number, list, or anything else) it is set for all of them. You can get the contents out of a particular value object by sending it a bang.

Arguments

Name Type Opt Description
object-name symbol Obligatory. Gives a name to value.
any message anything opt Additional arguments after the naming symbol initialize the contents of value. If no additional arguments are present, value contains nothing.

Messages

bang Sends out the stored message.
int input [int]
Performs the same function as anything.
float input [float]
Performs the same function as anything.
list input [list]
Performs the same function as anything.
anything input [list]
The message is stored, to be shared by all other value objects with the same name, even if they are in another patch. A message received in any other value object that has the same name will change the stored value.
(mouse) Double-clicking on a value object opens all windows containing value objects with the same name.
symbol input [symbol]
Performs the same function as anything.

Information for box attributes common to all objects

Output

any message: A bang in the inlet causes the stored message to be sent out.

Examples

One value (or any type of message) is shared between all value objects that share the same name

See Also

Name Description
float Store a decimal number
int Store an integer value
pv Share variables specific to a patch and its subpatches
pvar Connect to a named object in a patcher
send Send messages without patch cords
receive Receive messages without patch cords
Max Basic Tutorial 16: Remote Messaging Max Basic Tutorial 16: Remote Messaging