<?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="change~" module="msp" category="MSP Analysis">
	<digest>
		Report signal direction
	</digest>
	<description>
		Use the <o>change</o> object to monitor increase, decrease, or no change in a signal value.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
		<metadata name="tag">
			MSP Analysis
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="signal">
			<digest>
				(signal) Input
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="signal">
			<digest>
				(signal) Input
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				(signal) 0. if Unchanged; -1. (decreasing) or 1. (increasing) if Changed.
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Set a stored signal value
			</digest>
			<description>
				You can set the value stored with a <m>float</m>.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				Signal to be evaluated
			</digest>
			<description>
				Any signal to be watched for changed and unchanged values.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="change~.png" caption="Detect whether a signal is increasing, decreasing, or remaining constant" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="edge~" />
		<seealso name="thresh~" />
		<seealso name="zerox~" />
	</seealsolist>
	<misc name="Output">
		<entry name="signal">
			<description>
				When the current sample is greater in value than the previous sample, <o>change~</o> outputs a sample of 1. When the current sample is the same as the previous sample, <o>change~</o> outputs a sample of 0. When the current sample is less than the previous sample, <o>change~</o> outputs a sample of -1.
			</description>
		</entry>
	</misc>
</c74object>
