<?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="minimum" module="max" category="Control">
	<digest>
		Output the smallest value
	</digest>
	<description>
		Watches an input stream for any numbers which are less than its most recently set minimum. If the input value is greater than or equal to the minimum, the minimum value is output. If the input value is less, that value is output.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Control
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Compares Left and Right Inlets
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Value to be Compared
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Minimum of Left and Right Inlets
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="OUTLET_TYPE">
			<digest>
				Index of the Minimum Value
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="initial" optional="1" type="int or float">
			<digest>
				Initial value
			</digest>
			<description>
				Sets an initial value to be compared with numbers received in the left inlet. If the argument contains a decimal point, all numbers are compared as floats, and the output is a float. If there is no argument, the initial value is 0.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Output the most recent minimum
			</digest>
			<description>
				In left inlet: Sends the most recent output out the outlet again.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Compare and output minimum
			</digest>
			<description>
				In left inlet: If the number is less than the value currently stored in <o>minimum</o>, it is sent out the outlet. Otherwise, the stored value is sent out.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Compare and output minimum
			</digest>
			<description>
				In left inlet: Converted to <m>int</m>, unless there is a float argument, in which case all numbers are compared as floats.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Compare all values and output minimum
			</digest>
			<description>
				In left inlet: The numbers in the list are all compared to each other, and the smallest value is sent out the outlet. The value stored in <o>minimum</o> is replaced by the next smallest value in the list. The <o>minimum</o> object accepts lists of up to 256 elements.
			</description>
		</method>
		<method name="ft1">
			<arglist>
				<arg name="comparison-value" optional="0" type="float" />
			</arglist>
			<digest>
				Set a new comparison value
			</digest>
			<description>
				In right inlet: Converted to <m>int</m>, unless there is a float argument, in which case all numbers are compared as floats.
			</description>
		</method>
		<method name="in1">
			<arglist>
				<arg name="value" optional="0" type="int" />
			</arglist>
			<digest>
				Set a new comparison value
			</digest>
			<description>
				In right inlet: The number is stored for comparison with subsequent numbers received in the left inlet.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="minimum.png" caption="The output is the lesser of two numbers, or the smallest in a list of numbers" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="maximum" />
		<seealso name="trough" />
		<seealso name="&lt;" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				The number received in the left inlet is compared with the value currently held by <o>minimum</o> (or numbers received as a list are compared with each other), and the smallest of the numbers is sent out the outlet.
			</description>
		</entry>
		<entry name="float">
			<description>
				Floats are output only if there is an argument with a decimal point.
			</description>
		</entry>
	</misc>
</c74object>
