<?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.-->
<c74object module="rnbo" kind="rnboobject" name="thresh" category="Timing">
<!--METADATA-->
<metadatalist>
<metadata name="author">Cycling '74</metadata>
<metadata name="tag">RNBO</metadata>
<metadata name="tag">RNBO Timing</metadata>
</metadatalist>
<digest>Detect input above a certain level</digest>
<description><p>
Use the thresh object to detect values  that exceed a specified level.
</p>
<p>
The thresh object initially outputs a value  of 0. It outputs a value  of 1 when the input is equal or greater than a set "high" threshold, until it goes below the reset or "low" threshold, at which point the 0 value  is output again. If the low and high thresholds are the same, a reset occurs when the incoming value  is less than the threshold value. Otherwise, a reset occurs when the incoming value  is less than or equal to the low threshold. The low and high thresholds can be specified as arguments or as floats  in the middle and right inlets.
</p></description>
<!--ARGUMENTS-->
<objarglist>
<objarg name="lowThresh" optional="1" type="number">
<digest>The low threshold value</digest>
<description><p>
The threshold below which the object will reset and output a value  of 0.
</p></description>
</objarg>
<objarg name="highThresh" optional="1" type="number">
<digest>The low threshold value</digest>
<description><p>
The threshold above which the object will output a value  of 1.
</p></description>
</objarg>
</objarglist>
<!--OPTIONS-->
<rnbooptionlist>
<option name="hot" size="1" type="bool">
<digest>Trigger computation on all inlets.</digest>
<attributelist>
<attribute name="default" type="bool" value="false"></attribute>
</attributelist>

</option>
</rnbooptionlist>
<!--ATTRIBUTES-->
<rnboattributelist>
<attribute name="highThresh" size="1" type="number">
<digest>The low threshold value</digest>
<description><p>
The threshold above which the object will output a value  of 1.
</p></description>
</attribute>
<attribute name="lowThresh" size="1" type="number">
<digest>The low threshold value</digest>
<description><p>
The threshold below which the object will reset and output a value  of 0.
</p></description>
</attribute>
<attribute name="reset" size="1" type="bang">
<digest>Banging this attribute will reset the object to its default state.</digest>
<attributelist>
<attribute name="default" type="bang" value="0"></attribute>
</attributelist>

</attribute>
<attribute name="x" size="1" type="number">
<digest>The input to analyze</digest>
<description><p>
The input float  used for threshold comparisons.
</p></description>
</attribute>
</rnboattributelist>
<!--INLETS-->
<rnboinletlist>
<inlet id="inlet_x" name="x" type="number">
<digest>The input to analyze</digest>
<description><p>
The input float  used for threshold comparisons.
</p></description>
</inlet>
<inlet id="inlet_lowThresh" name="lowThresh" type="number">
<digest>The low threshold value</digest>
<description><p>
The threshold below which the object will reset and output a value  of 0.
</p></description>
</inlet>
<inlet id="inlet_highThresh" name="highThresh" type="number">
<digest>The low threshold value</digest>
<description><p>
The threshold above which the object will output a value  of 1.
</p></description>
</inlet>
</rnboinletlist>
<!--OUTLETS-->
<rnbooutletlist>
<outlet id="outlet_out1" name="out1" type="number">
<digest>the result of the threshold analysis (0/1)</digest>
<description><p>
Outputs a 0 until the high threshold has been met and a 1 whenever the high threshold has been exceeded and not yet reset (meaning the incoming value has not yet dipped below the low threshold).
</p></description>
</outlet>
</rnbooutletlist>
<!--SEE ALSO-->
<seealsolist>
<seealso name="thresh~" type="refpage" module="MSP"></seealso>
<seealso name="rnbo_thresh~" type="rnborefpage" module="RNBO" display="thresh~"></seealso>
<seealso name="rnbo_adsr~" type="rnborefpage" module="RNBO" display="adsr~"></seealso>
<seealso name="rnbo_change" type="rnborefpage" module="RNBO" display="change"></seealso>
<seealso name="rnbo_edge~" type="rnborefpage" module="RNBO" display="edge~"></seealso>
<seealso name="rnbo_silencedetector~" type="rnborefpage" module="RNBO" display="silencedetector~"></seealso>
</seealsolist>
</c74object>