live.toggle
Description
live.toggle sends a 0 as output when it is turned off and a 1 as output when it is turned on (when giving input, a non-zero number will turn it on, a will turn it off, and a will alternate the state of the toggle).
Examples

Arguments
None.
Attributes
active [int] (default: 1)
Toggles the object's active mode. When
is set to 0, mouse action does not cause output and the inactive colors are used.activebgcolor [4 floats]
Sets the background color when off and active is set to 1.
activebgoncolor [4 floats]
Sets the background color when on and active is set to 1.
annotation_name [symbol] (default: )
The string that is prepended to annotations. This shows up in the Info pane in Live, and the clue window in Max.
appearance [int] (default: 0)8.0.0
Defines the display style.
Possible values:
0 = 'Default'
All attributes, except those with 'lcd' in the name, are functional.
1 = 'LCD'
To adjust the colors of the object you must use the attributes with 'lcd' in the name, such as inactivelcdcolor, and lcdcolor.
bgcolor [4 floats]
Sets the background color when off and active is set to 0.
bgoncolor [4 floats]
Sets the background color when on and active is set to 0.
bordercolor [4 floats]
Sets the border color in RGBA format.
focusbordercolor [4 floats]
Sets the border color for focused live.toggle object in RGBA format.
inactivelcdcolor [4 floats]8.0.0
Sets the border and background color when the appearance attribute is set to 1:LCD, and the active attribute is set to 0.
lcdcolor [4 floats]8.0.0
Sets the border and background color when the appearance attribute is set to 1:LCD, and the active attribute is set to 1.
outputmode [int] (default: 0)8.0.0
Sets the output mode.
Possible values:
0 = 'Mouse down'
Send output on mouse down (default).
1 = 'Mouse up'
Send output on mouse up.
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.
rounded [float]
Set the roundness of the border
Common Box Attributes
Parameter Attributes
Messages
bang
int
Arguments
float
Arguments
assign
Arguments
init
(mouse)
outputvalue
set
Arguments
Output
int
A number received in the inlet is sent out the outlet. A live.toggle is being turned on or off.
or a mouse click sends or out the outlet, depending on whetherSee Also
Name | Description |
---|---|
Max For Live | Max For Live |
led | |
live.tab | |
matrixctrl | |
pictctrl | |
radiogroup | |
live.text | |
togedge | |
toggle | |
ubutton | |
Max Basic Tutorial 4: Metro and Toggle | Max Basic Tutorial 4: Metro and Toggle |