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

button Reference

Blink and send a bang

button

Description

button blinks when you send it any message, and it sends out a bang when you click on it.

Examples

Triggers other messages and processes.... Converts other messages to a bang

Arguments

None.

Attributes

bgcolor [4 floats]

Sets the background color of the button object in RGBA format.

blinkcolor [4 floats]

Sets the blink color of the button object in RGBA format. The blinkcolor attribute is mapped to the color style color.

blinktime [int] (default: 200)

The time in milliseconds that the button will light up when clicked or triggered by a message.

outlinecolor [4 floats]

Sets the outline color of the button object in RGBA format. The outlinecolor attribute is mapped to the elementcolor style color.

parameter_enable [int]

Enables use of this object with Max for Live Parameters and allows for setting initial parameter values in the Max environment.

parameter_mappable [int] (default: 1)

When parameter_mappable is enabled, the object will be available for mapping to keyboard or MIDI input using the Mappings feature.

style [symbol] (default: )7.0.0

Sets the style to be applied to the object. Styles can be set using the Format palette.

Common Box Attributes

Parameter Attributes

Messages

bang

See the anything listing

int

Arguments

input [int]
See the anything listing

float

Arguments

input [float]
See the anything listing

list

Arguments

input [list]
See the anything listing

anything

Arguments

input [list]
When any message is received in the inlet, button flashes briefly and a bang is sent out the outlet.

(mouse)

Clicking on the button object will cause it to blink briefly and send a bang out the outlet.

Output

bang

A mouse click or any message in the inlet causes button to blink and output a bang.

See Also

Name Description
Max For Live Max For Live
bangbang
loadbang
loadmess
matrixctrl
pictctrl
trigger
ubutton
Max Basic Tutorial 2: Bang! Max Basic Tutorial 2: Bang!