<?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="when" module="max" category="Timing">
	<digest>
		Report the current transport time
	</digest>
	<description>
		Outputs the current time of a transport in ticks and bars/beats/units.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Timing
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				bang Reports Current Transport Time
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				bang Reports Current Transport Time
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Time in Bars/Beats/Units
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="OUTLET_TYPE">
			<digest>
				Time in Ticks
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="transport" optional="0" type="symbol">
			<digest>
				Transport name
			</digest>
			<description>
				The name of the transport for connection. Defaults to the global default transport.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Output the current transport time
			</digest>
			<description>
				Equivalent to <m>anything</m>.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Output the current transport time
			</digest>
			<description>
				Equivalent to <m>anything</m>.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Output the current transport time
			</digest>
			<description>
				Equivalent to <m>anything</m>.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Output the current transport time
			</digest>
			<description>
				Equivalent to <m>anything</m>.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Output the current transport time
			</digest>
			<description>
				Any list or message causes the current time expressed in bars/beats/units to be sent out the left outlet, and the current time in ticks to be sent out the right outlet.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="transport" get="1" set="1" type="symbol" size="1">
			<digest>
				Transport name
			</digest>
			<description>
				The name of a <o>transport</o> object with which to associate. By default, the master transport is used.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Transport Name" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="when.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="metro" />
		<seealso name="translate" />
		<seealso name="timepoint">
			Output a bang when a transport reaches a specific time
		</seealso>
		<seealso name="transport" />
	</seealsolist>
</c74object>
