<?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="delay" module="max" category="Timing">
	<digest>
		Delay a bang
	</digest>
	<description>
		Holds a bang for a specified amount of time before sending it to the next object. This object uses the Max <link name="maxtime" module="core" type="vignette">time format</link> syntax, so the delay time (which is normally specified in milliseconds) can also be set to other fixed or tempo-relative values.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Timing
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				bang Gets Delayed, stop Cancels
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Set Delay Time in Milliseconds
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Delayed bang
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="time" optional="0" type="any">
			<digest>
				Initial delay time
			</digest>
			<description>
				Sets an initial amount of time to delay a <m>bang</m> received in the left inlet. This time interval can be either a number which specifies time in milliseconds (e.g. delay 200) or a <link name="maxtime_syntax" module="core" type="vignette">notevalue</link> (e.g. delay 4nd).
				<br />
				<br />
				Note: While the <o>delay</o> object lets you specify time in any of Max's standard <link name="maxtime" module="core" type="vignette">time formats</link>, the <m>delaytime</m> attribute argument should be used when specifying time in any other time unit besides milliseconds or notevalues (e.g. <m>delay @delaytime 11025 samples</m>).
				<br />
				<br />
				If there is no argument, the initial time interval is 5 milliseconds. If notevalue, ticks, or bars.beats.units are specified for the delay interval, the object will not operate unless the transport is running.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Delay, then output
			</digest>
			<description>
				In left inlet: A <m>bang</m> is delayed a certain number of milliseconds before being sent out the outlet.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="time" optional="0" type="int" />
			</arglist>
			<digest>
				Set delay time
			</digest>
			<description>
				In right inlet: The number is stored as the number of milliseconds to delay a <m>bang</m> received in the left inlet. A number received in the right inlet changes the delay time of the next <m>bang</m> received -- it does not modify the time of a <m>bang</m> currently being delayed. In left inlet: The number is stored as the number of milliseconds to delay a <m>bang</m> received in the left inlet. It then automatically sends a bang message to itself to start the delay.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="time" optional="0" type="float" />
			</arglist>
			<digest>
				Set delay time
			</digest>
			<description>
				In right inlet: The number is stored as the number of milliseconds to delay a <m>bang</m> received in the left inlet. A number received in the right inlet changes the delay time of the next <m>bang</m> received -- it does not modify the time of a <m>bang</m> currently being delayed. In left inlet: The number is stored as the number of milliseconds to delay a <m>bang</m> received in the left inlet. It then automatically sends a bang message to itself to start the delay.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Set time with ITM value
			</digest>
			<description>
				In right inlet: 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 with ITM value
			</digest>
			<description>
				Same as <m>list</m>.
			</description>
		</method>
		<method name="clock">
			<arglist>
				<arg name="setclock-object-name" optional="0" type="symbol" />
			</arglist>
			<digest>
				Choose a clock source
			</digest>
			<description>
				The word <m>clock</m>, followed by the name of an existing <m>setclock</m> object, sets the <o>delay</o> object to be controlled by that <m>setclock</m> object rather than by Max’s internal millisecond clock. The word <m>clock</m> by itself sets the <o>delay</o> object back to using Max’s regular millisecond clock.
			</description>
		</method>
		<method name="stop">
			<arglist />
			<digest>
				Stap any pending output
			</digest>
			<description>
				In left inlet: Stops <o>delay</o> from outputting the <m>bang</m> it is currently delaying.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="delaytime" get="1" set="1" type="atom" size="10">
			<digest>
				Delay time.
			</digest>
			<description>
				Sets the delay time for the object. Delay time can be specified in any of the <link name="maxtime" module="core" type="vignette">time formats</link> used in Max.
			</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="Delay Time" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="time" />
				<attribute name="units" get="1" set="1" type="atom" size="7" value="ms hh:mm:ss ticks bars.beats.units notevalues hz samples" />
			</attributelist>
		</attribute>
		<attribute name="quantize" get="1" set="1" type="atom" size="10">
			<digest>
				Time boundary quantization
			</digest>
			<description>
				Send output only on the specified time-boundary if appropriate. This is achieved by making internal adjustments to the times used for sending output. The quantization can be specified in the following <link name="maxtime" module="core" type="vignette">time formats</link>: bars.beats.units, ticks or note values.
				<br />
				<br />
				If the applicable time is a 'fixed' unit (for example: ms, seconds, hz, samples, etc.) then this attribute will have no effect.
			</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="Quantization" />
				<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>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="delay.png" caption="Bang is delayed for a certain time..... Can be used to send triggers at specific times" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="deferlow" />
		<seealso name="pipe" />
		<seealso name="setclock" />
		<seealso name="transport" />
		<seealso name="basicchapter19" module="max" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="bang">
			<description>
				<m>bang</m> received in the left inlet is delayed by the number of milliseconds specified by the right inlet, then is sent out the outlet. Only one <m>bang</m> at a time can be delayed by <o>delay</o>. If a <m>bang</m> is already in <o>delay</o> when a new <m>bang</m> is received in the left inlet, the first <m>bang</m> is forgotten.
			</description>
		</entry>
	</misc>
</c74object>
