<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="live.toggle" module="m4l" category="Live UI Objects">
	<digest>
		Switch between off and on (0/1)
	</digest>
	<description>
		<o>live.toggle</o> 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 <m>0</m> will turn it off, and a <m>bang</m> will alternate the state of the toggle).
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Live
		</metadata>
		<metadata name="tag">
			Live UI Objects
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				int Sets Toggle, bang Reverses It
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="int">
			<digest>
				Output 1 or 0 When Toggle Is Set
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--parameter-->
	<parameter />
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Alternate toggle state
			</digest>
			<description>
				Switches <o>live.toggle</o> on if it is off; switches it off if it is on.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Switch toggle and pass through number
			</digest>
			<description>
				The number is sent out the outlet. If the number is not 0, <o>live.toggle</o> displays an X, showing it is on. If it is <m>0</m>, <o>live.toggle</o> is blank, showing it is off.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Converted to <m>int</m>. See <m>int</m> listing.
			</digest>
			<description>
				TEXT_HERE
			</description>
		</method>
		<method name="assign">
			<arglist>
				<arg name="assign-input" optional="0" type="float" />
			</arglist>
			<digest>
				Display and output a value
			</digest>
			<description>
				The word <m>assign</m>, followed by a floating point value, causes that value to be displayed and sent out the <o>live.toggle</o> object's outlet. The value, however, will not be stored. If the Parameter Visibility attribute is set to Stored Only, the <m>assign</m> message will not add the new value to the Live application’s undo chain.
			</description>
		</method>
		<method name="init">
			<arglist />
			<digest>
				Restore and output the initial value
			</digest>
			<description>
				Restores and outputs the initial value.
			</description>
		</method>
		<method name="(mouse)">
			<digest>
				Switch toggle state
			</digest>
			<description>
				A mouse click on <o>live.toggle</o> switches the object on if it is off and off if it is on.
			</description>
		</method>
		<method name="outputvalue">
			<arglist />
			<digest>
				Send the current value out the outlet
			</digest>
			<description>
				Sends the current value out the outlet.
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="set-input" optional="0" type="int" />
			</arglist>
			<digest>
				Switch toggle state without output
			</digest>
			<description>
				Switches the <o>live.toggle</o> on or off without sending anything out the outlet. The word <m>set</m>, followed by any non-zero number, sets toggle to on; <m>set 0</m> sets it to off.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="active" get="1" set="1" type="int" size="1">
			<digest>
				Active mode enable
			</digest>
			<description>
				Toggles the object's active mode. When <m>active</m> is set to 0, mouse action does not cause output and the inactive colors are used.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Behavior" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Enabled" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="activebgcolor" get="1" set="1" type="float" size="4">
			<digest>
				Background Color Off (Active)
			</digest>
			<description>
				Sets the background color when off and <at>active</at> is set to 1.
			</description>
			<attributelist>
				<attribute name="attr_attr_save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="0.647059 0.647059 0.647059 1." />
				<attribute name="dynamiccolor_default" get="1" set="1" type="symbol" size="1" value="live_control_bg" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Background Color Off (Active)" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="activebgoncolor" get="1" set="1" type="float" size="4">
			<digest>
				Background Color On (Active)
			</digest>
			<description>
				Sets the background color when on and <at>active</at> is set to 1.
			</description>
			<attributelist>
				<attribute name="attr_attr_save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="1. 0.709804 0.196078 1." />
				<attribute name="dynamiccolor_default" get="1" set="1" type="symbol" size="1" value="live_control_selection" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Background Color On (Active)" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="annotation_name" get="1" set="1" type="symbol" size="1">
			<digest>
				Annotation Name
			</digest>
			<description>
				The string that is prepended to annotations. This shows up in the Info pane in Live, and the clue window in Max.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Description" />
				<attribute name="default" get="1" set="1" type="symbol" size="1" value="" />
				<attribute name="invisible" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Info View Title" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
		<attribute name="appearance" get="1" set="1" type="int" size="1">
			<digest>
				Display Style
			</digest>
			<description>
				Defines the display style.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Appearance" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="enumvals" get="1" set="1" type="atom" size="2">
					<enumlist>
						<enum name="Default">
							<digest>
								TEXT_HERE
							</digest>
							<description>
								All attributes, except those with 'lcd' in the name, are functional.
							</description>
						</enum>
						<enum name="LCD">
							<digest>
								TEXT_HERE
							</digest>
							<description>
								To adjust the colors of the object you must use the attributes with 'lcd' in the name, such as <at>inactivelcdcolor</at>, and <at>lcdcolor</at>.
							</description>
						</enum>
					</enumlist>
				</attribute>
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="8.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Display Style" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="enumindex" />
			</attributelist>
		</attribute>
		<attribute name="bgcolor" get="1" set="1" type="float" size="4">
			<digest>
				Background Color Off (Inactive)
			</digest>
			<description>
				Sets the background color when off and <at>active</at> is set to 0.
			</description>
			<attributelist>
				<attribute name="attr_attr_save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="0.647059 0.647059 0.647059 1." />
				<attribute name="dynamiccolor_default" get="1" set="1" type="symbol" size="1" value="live_control_bg" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Background Color Off (Inactive)" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="bgoncolor" get="1" set="1" type="float" size="4">
			<digest>
				Background Color On (Inactive)
			</digest>
			<description>
				Sets the background color when on and <at>active</at> is set to 0.
			</description>
			<attributelist>
				<attribute name="attr_attr_save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="0.764706 0.764706 0.764706 1." />
				<attribute name="dynamiccolor_default" get="1" set="1" type="symbol" size="1" value="live_control_zombie" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Background Color On (Inactive)" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="bordercolor" get="1" set="1" type="float" size="4">
			<digest>
				Border Color
			</digest>
			<description>
				Sets the border color in RGBA format.
			</description>
			<attributelist>
				<attribute name="attr_attr_save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="0.313725 0.313725 0.313725 1." />
				<attribute name="dynamiccolor_default" get="1" set="1" type="symbol" size="1" value="live_contrast_frame" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Border Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="focusbordercolor" get="1" set="1" type="float" size="4">
			<digest>
				Border Color (Focus)
			</digest>
			<description>
				Sets the border color for focused <o>live.toggle</o> object in RGBA format.
			</description>
			<attributelist>
				<attribute name="attr_attr_save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="0.313725 0.313725 0.313725 1." />
				<attribute name="dynamiccolor_default" get="1" set="1" type="symbol" size="1" value="live_focus_frame" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Border Color (Focus)" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="inactivelcdcolor" get="1" set="1" type="float" size="4">
			<digest>
				LCD Color (Inactive)
			</digest>
			<description>
				Sets the border and background color when the <at>appearance</at> attribute is set to 1:LCD, and the <at>active</at> attribute is set to 0.
			</description>
			<attributelist>
				<attribute name="attr_attr_save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="0.54902 0.54902 0.54902 1." />
				<attribute name="dynamiccolor_default" get="1" set="1" type="symbol" size="1" value="live_lcd_control_fg_zombie" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="8.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="LCD Color (Inactive)" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="lcdcolor" get="1" set="1" type="float" size="4">
			<digest>
				LCD Color
			</digest>
			<description>
				Sets the border and background color when the <at>appearance</at> attribute is set to 1:LCD, and the <at>active</at> attribute is set to 1.
			</description>
			<attributelist>
				<attribute name="attr_attr_save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="1. 0.709804 0.196078 1." />
				<attribute name="dynamiccolor_default" get="1" set="1" type="symbol" size="1" value="live_lcd_control_fg" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="8.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="LCD Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="outputmode" get="1" set="1" type="int" size="1">
			<digest>
				Output Mode
			</digest>
			<description>
				Sets the output mode.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Behavior" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="enumvals" get="1" set="1" type="atom" size="2">
					<enumlist>
						<enum name="Mouse down">
							<digest>
								TEXT_HERE
							</digest>
							<description>
								Send output on mouse down (default).
							</description>
						</enum>
						<enum name="Mouse up">
							<digest>
								TEXT_HERE
							</digest>
							<description>
								Send output on mouse up.
							</description>
						</enum>
					</enumlist>
				</attribute>
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="8.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Output Mode" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="enumindex" />
			</attributelist>
		</attribute>
		<attribute name="parameter_mappable" get="1" set="1" type="int" size="1">
			<digest>
				Visible to Max Mapping
			</digest>
			<description>
				When parameter_mappable is enabled, the object will be available for mapping to keyboard or MIDI input using the <link module="core" name="mappings" type="vignette">Max Mappings feature</link>.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Parameter" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Visible to Mapping" />
				<attribute name="order" get="1" set="1" type="int" size="1" value="10" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="rounded" get="1" set="1" type="float" size="1">
			<digest>
				Round-ness of Box Corners
			</digest>
			<description>
				Set the roundness of the border
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Appearance" />
				<attribute name="defaultname" get="1" set="1" type="float" size="1" value="0." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Round-ness of Box Corners" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example caption="" img="" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="led" />
		<seealso name="live.tab" />
		<seealso name="matrixctrl" />
		<seealso name="pictctrl" />
		<seealso name="radiogroup" />
		<seealso name="live.text" />
		<seealso name="togedge" />
		<seealso name="toggle" />
		<seealso name="ubutton" />
		<seealso name="basicchapter04" module="max" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				A number received in the inlet is sent out the outlet. A <m>bang</m> or a mouse click sends <m>1</m> or <m>0</m> out the outlet, depending on whether <o>live.toggle</o> is being turned on or off.
			</description>
		</entry>
	</misc>
</c74object>
