<?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="mstosamps~" module="msp" category="MSP System">
	<digest>
		Convert milliseconds to samples
	</digest>
	<description>
		Use the <o>mstosamps~</o> object to convert an incoming signal carrying a millisecond value and output a signal which converts those millisecond values to a number of samples (at the current sampling rate).
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
		<metadata name="tag">
			MSP System
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Milliseconds In, signal To Use For Sampling Rate
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Milliseconds In, signal To Use For Sampling Rate
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				(signal) Samples At Input signal or Current Sampling Rate
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="double">
			<digest>
				(float) Samples At Input signal or Current Sampling Rate
			</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="int">
			<arglist>
				<arg name="millisecond-value" optional="0" type="int" />
			</arglist>
			<digest>
				Convert input and output as a signal
			</digest>
			<description>
				Millisecond values received in the inlet are converted to a number of samples at the current sampling rate and sent out the object's right outlet. The output might contain a fractional number of samples. For example, at 44.1 kHz sampling rate, 3.2 milliseconds is 141.12 samples.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="millisecond-value" optional="0" type="float" />
			</arglist>
			<digest>
				Convert input and output as a signal
			</digest>
			<description>
				Millisecond values received in the inlet are converted to a number of samples at the current sampling rate and sent out the object's right outlet. The output might contain a fractional number of samples. For example, at 44.1 kHz sampling rate, 3.2 milliseconds is 141.12 samples.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				Convert input and output as a signal
			</digest>
			<description>
				Incoming millisecond values in the signal are converted to a number of samples at the current sampling rate and output as a signal out the <o>mstosamps~</o> object's left outlet. The output may contain a fractional number of samples.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="mstosamps~.png" caption="Time expressed in milliseconds comes out expressed in samples" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="dspstate~" />
		<seealso name="sampstoms~" />
	</seealsolist>
	<misc name="Output">
		<entry name="signal">
			<description>
				Out left outlet: The number of samples corresponding to the millisecond values in the input signal.
			</description>
		</entry>
		<entry name="float">
			<description>
				Out right outlet: The number of samples corresponding to the millisecond value received as a <m>float</m> or <m>int</m> in the inlet.
			</description>
		</entry>
	</misc>
</c74object>
