<?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="speedlim" module="max" category="Timing">
	<digest>
		Limit the speed of message throughput
	</digest>
	<description>
		Limit the throughput speed of incoming messages to a fixed time limit. The time can be specified in milliseconds or using a tempo-relative interval.
	</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>
				Incoming Continuous Value
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Sets Output Interval to Send Input
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Speed-limited Output of Incoming Values
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="delta-time" optional="1" type="int, float, symbol">
			<digest>
				Minimum time between outputs
			</digest>
			<description>
				Sets an initial minimum time between outputs. Time can be specified in any of the <link name="maxtime" module="core" type="vignette">time formats</link> used in Max. If there is no argument, the minimum time is 0 milliseconds.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Pass the message after a time limit
			</digest>
			<description>
				Performs the same function as an <m>anything</m> message applied to the passing of <m>bang</m> messages.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Pass the message after a time limit
			</digest>
			<description>
				In left inlet: Performs the same function as an <m>anything</m> message applied to the passing of integers.
				<br />
				<br />
				In right inlet: The number is stored as the minimum amount of time, in milliseconds, between successive outputs.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Pass the message after a time limit
			</digest>
			<description>
				Performs the same function as an <m>anything</m> message applied to the passing of floats..
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Pass the message after a time limit
			</digest>
			<description>
				In left inlet: Performs the same function as an <m>anything</m> message applied to the passing of lists.
				<br />
				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="input" optional="0" type="list" />
			</arglist>
			<digest>
				Pass the message after a time limit
			</digest>
			<description>
				In left inlet: The message is passed out the outlet, provided that a certain minimum time has elapsed since the previous output. Otherwise, the message is held until that amount of time has passed (or until it is overwritten by another incoming message).
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="defer" get="1" set="1" type="float" size="1">
			<digest>
				Low-priority queueing
			</digest>
			<description>
				Turn this on to send output in the low-priority queue.
			</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="Defer" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
				<attribute name="timeobj" get="1" set="1" type="atom" size="1" value="threshold" />
			</attributelist>
		</attribute>
		<attribute name="quantize" get="1" set="1" type="atom" size="10">
			<digest>
				Quantize to time boundary
			</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.
			</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>
		<attribute name="threshold" get="1" set="1" type="atom" size="10">
			<digest>
				Time threshold
			</digest>
			<description>
				Time threshold under which only one message may pass. 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="Time Threshold" />
				<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>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="speedlim.png" caption="Used to reduce a heavy flow of numbers, or to turn a continuous flow into discrete steps" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="delay" />
		<seealso name="mousefilter" />
		<seealso name="thresh" />
		<seealso name="timer" />
		<seealso name="transport" />
		<seealso name="midichapter03" module="max" type="tutorial" />
	</seealsolist>
	<discussion>
		<o>speedlim</o> takes one optional argument which is a speedlimiting time. This object uses the Max <link name="maxtime" module="core" type="vignette">time format</link> syntax, and the interval that the <o>speedlim</o> object uses can be either fixed or tempo-relative. Its output can be also be quantized using tempo-relative syntax.
		<br />
		The left inlet takes any message and outputs it according to the argument value. The right inlet takes <m>int</m> to change the speedlimiting time.
	</discussion>
	<misc name="Output">
		<entry name="anything">
			<description>
				A message received in the left inlet is sent out the outlet, provided the specified minimum amount of time has elapsed since the previous output. Otherwise, <o>speedlim</o> waits until that amount of time has passed, then sends out the last message it has received since the previous output.
			</description>
		</entry>
	</misc>
</c74object>
