<?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.thisdevice" module="m4l" category="M4L">
	<digest>
		Send a bang automatically when a Max Device is loaded, report device state
	</digest>
	<description>
		<o>live.thisdevice</o> reports three pieces of information about your Max Device. A <m>bang</m> message is automatically sent from the left outlet when the Max Device is opened and completely initialized, or when the containing patcher is part of another file that is opened. Additionally, a <m>bang</m> will be reported every time a new preset is loaded or the device is saved (and thus reloaded within the Live application). A <m>1</m> or <m>0</m> will be sent from the middle outlet when the Device is enabled or disabled, respectively. A <m>1</m> or <m>0</m> will be sent from the right outlet when preview mode for the Device is enabled or disabled, respectively. Used within Max, <o>live.thisdevice</o> functions essentially like the <o>loadbang</o> object. The middle and right outlets are inactive in this case.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74, Ableton
		</metadata>
		<metadata name="tag">
			Live
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				bang, getstate
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Outputs bang When Patcher/Device is Loaded
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="OUTLET_TYPE">
			<digest>
				Outputs enabled state of Device
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="2" type="OUTLET_TYPE">
			<digest>
				Outputs preview state of Device
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Sending a <m>bang</m> message to a <o>live.thisdevice</o> object causes it to output a <m>bang</m> message from the leftmost outlet.
			</digest>
			<description>
				Sending a <m>bang</m> message to a <o>live.thisdevice</o> object causes it to output a <m>bang</m> message from the leftmost outlet.
			</description>
		</method>
		<method name="aftersnapshotrestore">
			<arglist />
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</method>
		<method name="(mouse)">
			<digest>
				Double-clicking on a <m>live.thisdevice</m> object causes it to output a <m>bang</m> message from the leftmost outlet.
			</digest>
			<description>
				Double-clicking on a <m>live.thisdevice</m> object causes it to output a <m>bang</m> message from the leftmost outlet.
			</description>
		</method>
		<method name="getstate">
			<arglist />
			<digest>
				Sending a <m>getstate</m> message to a <o>live.thisdevice</o> object causes it to output the Max Device state from the rightmost outlet.
			</digest>
			<description>
				<description>
					Sending a <m>getstate</m> message to a <o>live.thisdevice</o> object causes it to output the Max Device state from the rightmost outlet.
				</description>
			</description>
		</method>
		<method name="loadbang">
			<arglist />
			<digest>
				Same as <m>bang</m>.
			</digest>
			<description>
				Same as <m>bang</m>.
			</description>
		</method>
		<method name="setwidth">
			<arglist>
				<arg name="width" optional="0" type="int" />
			</arglist>
			<digest>
				Sets the width of the device.
			</digest>
			<description>
				The setwidth message will dynamically set the width of the Max for Live device.
				<br />
				<b>Note:</b> This width is not automatically saved as part of the preset and/or Live set.
				<br />
				The message <m>setwidth 0</m> will return to the default condition where the width of the device is calculated by using the devices's visible objects.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="live.thisdevice.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="active" />
		<seealso name="button" />
		<seealso name="closebang" />
		<seealso name="freebang" />
		<seealso name="loadbang" />
		<seealso name="loadmess" />
		<seealso name="thispatcher" />
	</seealsolist>
</c74object>
