<?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="rampsmooth~" module="msp" category="MSP Modifiers">
	<digest>
		Smooth an incoming signal
	</digest>
	<description>
		Smooths an incoming signal across n samples. Each time an incoming value changes, it begins a linear ramp to reach this value.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
		<metadata name="tag">
			MSP Modifiers
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="signal">
			<digest>
				(signal) Input
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="int">
			<digest>
				Ramp up
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="2" type="int">
			<digest>
				Ramp down
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				(signal) Smoothed result
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="ramp-up-samples" optional="1" type="int">
			<digest>
				Number of samples for ramp-up
			</digest>
			<description />
		</objarg>
		<objarg name="ramp-down-samples" optional="1" type="int">
			<digest>
				Number of samples for ramp-down
			</digest>
			<description />
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="ft1">
			<arglist>
				<arg name="ramp-up-samples" optional="0" type="float" />
			</arglist>
			<digest>
				Set ramp-up sample count
			</digest>
			<description>
				Converted to <m>int</m>. Performs the same function as <m>rampup</m>.
			</description>
		</method>
		<method name="ft2">
			<arglist>
				<arg name="ramp-down-samples" optional="0" type="float" />
			</arglist>
			<digest>
				Set ramp-down sample count
			</digest>
			<description>
				Converted to <m>int</m>. Performs the same function as <m>rampdown</m>.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				A signal to be smoothed
			</digest>
			<description>
				Each time an incoming value changes, the object begins a linear ramp over a specified number of samples to reach the new value.
			</description>
		</method>
		<method name="ramp">
			<arglist>
				<arg name="sample-count" optional="0" type="int" />
			</arglist>
			<digest>
				Set smoothing sample count
			</digest>
			<description>
				Specifies the number of samples over which a signal will be smoothed. Each time an incoming value changes, the <o>rampsmooth~</o> object begins a linear ramp of the specified number of samples to reach the new value. The default value is <m>0</m>.
			</description>
			<discussion>
				This is the equivalent of setting both the ramp-up and ramp-down sample count to the same value.
			</discussion>
		</method>
		<method name="rampdown">
			<arglist>
				<arg name="ramp-down samples" optional="0" type="int" />
			</arglist>
			<digest>
				Set ramp-down sample count
			</digest>
			<description>
				Specifies the number of samples over which a signal will be smoothed when an incoming value less than the current value arrives.
			</description>
		</method>
		<method name="rampup">
			<arglist>
				<arg name="ramp-up samples" optional="0" type="int" />
			</arglist>
			<digest>
				Set ramp-up sample count
			</digest>
			<description>
				Specifies the number of samples over which a signal will be smoothed when an incoming value greater than the current value arrives.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="rampsmooth~.png" caption="rampsmooth~ performs linear smoothing on an input signal" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="line~" />
		<seealso name="slide~" />
		<seealso name="17_msp_compress_01" module="msp" type="tutorial" />
		<seealso name="17_msp_compress_07" module="msp" type="tutorial" />
		<seealso name="17_msp_compress_08" module="msp" type="tutorial" />
		<seealso name="17_msp_compress_09" module="msp" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="signal">
			<description>
				The smoothed signal is sent out the outlet.
			</description>
		</entry>
	</misc>
</c74object>
