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

int

Store an integer value

Description

int can store and output any given integer number.

Arguments

Name Type Opt Description
initial-value int opt Sets an initial value to be stored in int. If there is no argument, the initial value is 0. An int argument by itself, without the word int, is another way of creating and initializing an int object.
initial-value float Converted to int.

Messages

bang In left inlet: Sends the stored value out the outlet.
int input [int]
In left inlet: The number replaces the currently stored value and is sent out the outlet.
  (inlet1) set-input [int]
In right inlet: The number replaces the stored value without triggering output.
float input [float]
Converted to int.
send receive-object-name [list]
In left inlet: The word send, followed by the name of a receive object, sends the value stored in int to all receive objects with that name, without sending it out the outlet of the int .
set set-input [int]
In left inlet: The word set, followed by a number, replaces the stored value without triggering output.

Information for box attributes common to all objects

Output

int: A number is stored in (and output from) int as a long (32-bit) integer.

Examples

Output the stored value... Replace the stored value and output it... Initial value is given

See Also

Name Description
float Store a decimal number
pv Share variables specific to a patch and its subpatches
value Share a stored number with other objects
Max Basic Tutorial 16: Remote Messaging Max Basic Tutorial 16: Remote Messaging