<?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="timepoint" module="max" category="Timing">
	<digest>
		Bang at a specific time
	</digest>
	<description>
		Outputs a <m>bang</m> when the clock reaches a specific time. The clock has to be moving forward in order for the bang to be output.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			time
		</metadata>
		<metadata name="tag">
			Timing
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Set Target Time
			</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>
				bang When Clock Reaches Target Time
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="time" optional="0" type="int, float, symbol">
			<digest>
				Initial time
			</digest>
			<description>
				Sets the initial time at which to send a bang. Time can be specified in any of the <link name="maxtime_syntax" module="core" type="vignette">time formats</link> used in Max. The bang will only be sent when the transport is running.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="time" optional="0" type="int" />
			</arglist>
			<digest>
				Set time
			</digest>
			<description>
				Set the time in ticks at which to trigger a bang.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="time" optional="0" type="float" />
			</arglist>
			<digest>
				Set time
			</digest>
			<description>
				Set the time in ticks at which to trigger a bang.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="time" optional="0" type="list" />
			</arglist>
			<digest>
				Set time
			</digest>
			<description>
				A list may be used to specify time in one of the Max <link name="maxtime" module="core" type="vignette">time formats</link>.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="time" optional="0" type="list" />
			</arglist>
			<digest>
				Set time
			</digest>
			<description>
				Set the time in any of Max's time units at which to trigger a bang.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="time" get="1" set="1" type="atom" size="10">
			<digest>
				Initial time
			</digest>
			<description>
				Sets the initial time at which to send a bang. Time can be specified in any of the <link name="maxtime" module="core" type="vignette">time formats</link> used in Max. The bang will only be sent when the transport is running.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Timing" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Target Time" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="time" />
				<attribute name="units" get="1" set="1" type="atom" size="3" value="ticks bars.beats.units notevalues" />
			</attributelist>
		</attribute>
		<attribute name="transport" get="1" set="1" type="symbol" size="1">
			<digest>
				Transport name
			</digest>
			<description>
				The name of a transport with which to associate. By default the global transport is used.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Timing" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Transport" />
				<attribute name="timeobj" get="1" set="1" type="atom" size="1" value="time" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="timepoint.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="metro" />
		<seealso name="translate" />
		<seealso name="transport" />
		<seealso name="when">
			Obtain the current time of a transport
		</seealso>
	</seealsolist>
	<discussion>
		In addition to triggering events, timepoint objects can be used to create loops (by setting the clock back to 0 or to a specific position), trigger tempo changes, and mess with time in other fun ways.
	</discussion>
</c74object>
