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