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

int Reference

Store an integer value

int

Description

int can store and output any given integer number.

Examples

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

Arguments

initial-value [number]

Optional

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. Float values are converted to integers.

Attributes

Common Box Attributes

Messages

bang

In left inlet: Sends the stored value out the outlet.

int

Arguments

input [int]
In left inlet: The number replaces the currently stored value and is sent out the outlet.

  (inlet1)

Arguments

set-input [int]
In right inlet: The number replaces the stored value without triggering output.

float

Arguments

input [float]
Converted to int.

send

Arguments

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

Arguments

set-input [int]
In left inlet: The word set, followed by a number, replaces the stored value without triggering output.

Output

int

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

See Also

Name Description
Working with OpenGL Working with OpenGL
Timing and Sequencing Events Timing and Sequencing Events
float
pv
value
Max Basic Tutorial 16: Remote Messaging Max Basic Tutorial 16: Remote Messaging