<?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="downsamp~" module="msp" category="MSP Modifiers">
	<digest>
		Downsample a signal
	</digest>
	<description>
		<o>downsamp~</o> samples and holds a signal received in the left inlet at a rate set by an argument to the object of the value received in the right inlet, expressed in samples. No interpolation of the output is performed.
	</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="signal/float">
			<digest>
				(signal/float) Sampling interval
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				(signal) Output
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="downsampled-rate" optional="1" type="number">
			<digest>
				Sample rate
			</digest>
			<description>
				Sets the sample rate.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="downsampled-rate" optional="0" type="int" />
			</arglist>
			<digest>
				Set the sample rate used to downsample
			</digest>
			<description>
				In right inlet: Sets the sample rate used to downsample the input signal. You can specify the number of samples with floating-point values, but the <o>downsamp~</o> object will sample the input at most as frequently as the current sampling rate.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="downsampled-rate" optional="0" type="float" />
			</arglist>
			<digest>
				Set the sample rate used to downsample
			</digest>
			<description>
				In right inlet: Sets the sample rate used to downsample the input signal. You can specify the number of samples with floating-point values, but the <o>downsamp~</o> object will sample the input at most as frequently as the current sampling rate.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: A signal to be downsampled.
				<br />
				<br />
				In right inlet: The rate, in samples, at which the incoming signal is to be downsampled.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="downsamp~.png" caption="Sample and hold every n samples" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="degrade~" />
		<seealso name="sah~" />
	</seealsolist>
	<misc name="Output">
		<entry name="signal">
			<description>
				The input signal, resampled at the rate set by argument or by the value received in the right inlet.
			</description>
		</entry>
	</misc>
</c74object>
