<?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="trough" category="Control">
<!--METADATA-->
<metadatalist>
<metadata name="author">Cycling '74</metadata>
<metadata name="tag">RNBO</metadata>
<metadata name="tag">RNBO Control</metadata>
</metadatalist>
<digest>Output a number if less than previous numbers</digest>
<description><p>
Compares an input value to the stored value and if it's smaller it sends the input to the output and sets it as the new trough.
</p></description>
<!--ARGUMENTS-->
<!--NONE-->
<!--OPTIONS-->
<!--NONE-->
<!--ATTRIBUTES-->
<rnboattributelist>
<attribute name="in1" size="1" type="bang, number, list">
<digest>Find the lowest number</digest>
<description><p>
The input value to compare to the stored value. If input is less than the lowest value received (trough), it is passed and set as the new trough.
</p></description>
</attribute>
<attribute name="in2" size="1" type="number, list">
<digest>Set the trough</digest>
<description><p>
Sets the trough value. If a lower value is received in the left inlet, it will become the new trough.
</p></description>
</attribute>
</rnboattributelist>
<!--INLETS-->
<rnboinletlist>
<inlet id="inlet_in1" name="in1" type="bang, number, list">
<digest>Find the lowest number</digest>
<description><p>
The input value to compare to the stored value. If input is less than the lowest value received (trough), it is passed and set as the new trough.
</p></description>
</inlet>
<inlet id="inlet_in2" name="in2" type="number, list">
<digest>Set the trough</digest>
<description><p>
Sets the trough value. If a lower value is received in the left inlet, it will become the new trough.
</p></description>
</inlet>
</rnboinletlist>
<!--OUTLETS-->
<rnbooutletlist>
<outlet id="outlet_out" name="out" type="number">
<digest>Trough</digest>
<description><p>
Left outlet: New minimum values are sent out.
</p></description>
</outlet>
<outlet id="outlet_isNew" name="isNew" type="number">
<digest>High if new trough</digest>
<description><p>
Middle outlet: If the number received is a new minimum value, the output is 1. If the number received in the left inlet is not a new minimum value, the output is 0.
</p></description>
</outlet>
<outlet id="outlet_isOld" name="isOld" type="number">
<digest>High if not new trough</digest>
<description><p>
Right outlet: If the number received is a new minimum value, the output is 0. If the number received in the left inlet is not a new minimum value, the output is 1.
</p></description>
</outlet>
</rnbooutletlist>
<!--SEE ALSO-->
<seealsolist>
<seealso name="trough" type="refpage" module="Max"></seealso>
<seealso name="rnbo_change" type="rnborefpage" module="RNBO" display="change"></seealso>
<seealso name="rnbo_ltep" type="rnborefpage" module="RNBO" display="ltep"></seealso>
<seealso name="rnbo_maximum" type="rnborefpage" module="RNBO" display="maximum"></seealso>
<seealso name="rnbo_minimum" type="rnborefpage" module="RNBO" display="minimum"></seealso>
<seealso name="rnbo_peak" type="rnborefpage" module="RNBO" display="peak"></seealso>
</seealsolist>
</c74object>