<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<c74object name="sdt.zerox~">

	<digest>
		Zero crossings detector and counter.
	</digest>

	<description>
		<o>sdt.zerox~</o> returns the normalized zero crossing rate of an input signal [0., 1.].
		This can be used as a rough estimation of noisiness.
	</description>

	<!--METADATA-->
	<metadatalist>
		<metadata name="tag">Sound Design Toolkit</metadata>
	</metadatalist>

	<!--INLETS
	<inletlist>
		<inlet id="0" type="signal">
			<digest>Audio signal</digest>
			<description></description>
		</inlet>
	</inletlist>
	-->

	<!--OUTLETS
	<outletlist>
		<outlet id="0" type="float">
			<digest>Normalized zero crossing rate [0.0, 1.0].</digest>
		</outlet>
	</outletlist>
	-->

	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="Analysis-window-length" optional="1" type="int">
			<digest>Analysis window length, in samples (defaults to 4096).</digest>
		</objarg>
	</objarglist>

	<!--MESSAGES-->
	<methodlist>
		<method name="signal">
			<digest>
				Input signal.
			</digest>
			<description>
			</description>
		</method>
	</methodlist>

	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="overlap" get="1" set="1" type="float" size="1" >
		    <digest>Window overlap ratio [0., 1.].</digest>
		    <description></description>
	  </attribute>
	</attributelist>

	<!--SEEALSO-->
	<seealsolist>
		<seealso name="sdt.envelope~"/>
		<seealso name="sdt.myo~"/>
		<seealso name="sdt.pitch~"/>
		<seealso name="sdt.spectralfeats~"/>
	</seealsolist>

</c74object>
