<?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="split" module="max" category="Control">
	<digest>
		Look for a range of numbers
	</digest>
	<description>
		Check if input can fall within a specified range. If it falls within that range, it sends the number out the left outlet and if it does not, then it sends the number out the right outlet.
	</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>
				Value to be Sent to One of the Two Outlets
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Set Lower Limit for Left Outlet
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="2" type="INLET_TYPE">
			<digest>
				Set Upper Limit for Left Outlet
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Output if Within Limits
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="OUTLET_TYPE">
			<digest>
				Output if Not Within Limits
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="minimum" optional="0" type="number">
			<digest>
				Range minimum
			</digest>
			<description>
				The first argument sets the minimum value to be sent out the left outlet. If the first argument is an int, then the <o>split</o> object will convert all float values to ints.
			</description>
		</objarg>
		<objarg name="maximum" optional="0" type="number">
			<digest>
				Range maximum
			</digest>
			<description>
				The second argument sets the maximum value to be sent out the left outlet. If the first argument to split is an int, the output is int. If it is float, the output is float. This is true regardless of the type of the input.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Check range and cause output
			</digest>
			<description>
				In left inlet: If the number is within a specified range, it is sent out the left outlet. Otherwise, it is sent out the right outlet.
				<br />
				<br />
				In middle inlet: The number is stored as the minimum value in the range of numbers looked for by <o>split</o>. If the number is an int, then the <o>split</o> object will convert all float values to ints.
				<br />
				<br />
				In right inlet: The number is stored as the maximum value in the range of numbers looked for by <o>split</o>.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Check range and cause output
			</digest>
			<description>
				In left inlet: If the number is within a specified range, it is sent out the left outlet. Otherwise, it is sent out the right outlet.
				<br />
				<br />
				In middle inlet: The number is stored as the minimum value in the range of numbers looked for by <o>split</o>. If the number is an int, then the <o>split</o> object will convert all float values to ints.
				<br />
				<br />
				In right inlet: The number is stored as the maximum value in the range of numbers looked for by <o>split</o>.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="split.png" caption="Used to divert a certain range of numbers to a different destination" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="route" />
		<seealso name="select" />
		<seealso name="&lt;=" />
		<seealso name="&gt;=" />
		<seealso name="basicchapter19" module="max" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				If the number received in the left inlet is greater than or equal to the specified minimum, and it is less than or equal to the specified maximum, it is sent out the left outlet. Otherwise, it is sent out the right outlet.
			</description>
		</entry>
	</misc>
</c74object>
