<?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="sah" category="Math">
<!--METADATA-->
<metadatalist>
<metadata name="author">Cycling '74</metadata>
<metadata name="tag">RNBO</metadata>
<metadata name="tag">RNBO Math</metadata>
<metadata name="alias">sah~</metadata>
</metadatalist>
<digest>Sample and hold operator (Schmitt trigger)</digest>
<description><p>
Use sah to capture ("sample") and continually output ("hold") the value of an input  number whenever another "control" value rises above a specified threshold. The sampled value is "held" until the control  number value drops below and then rises above the threshold value once more at which point the input is sampled again.
</p></description>
<!--ARGUMENTS-->
<!--NONE-->
<!--OPTIONS-->
<!--NONE-->
<!--ATTRIBUTES-->
<rnboattributelist>
<attribute name="input" size="1" type="number">
<digest>input to be sampled</digest>
<description><p>
The input  value value that is sampled or held.
</p></description>
</attribute>
<attribute name="thresh" size="1" type="number">
<digest>threshold</digest>
<description><p>
The threshold that the trigger must pass to switch between sample and hold behaviors.
</p></description>
</attribute>
<attribute name="trig" size="1" type="number">
<digest>trigger</digest>
<description><p>
The trigger  vale. When the trigger is above the 
<m>threshold</m>
, the input is held and when it drops below the threshold, the input is sampled again.
</p></description>
</attribute>
</rnboattributelist>
<!--INLETS-->
<rnboinletlist>
<inlet id="inlet_input" name="input" type="number">
<digest>input to be sampled</digest>
<description><p>
The input  value value that is sampled or held.
</p></description>
</inlet>
<inlet id="inlet_trig" name="trig" type="number">
<digest>trigger</digest>
<description><p>
The trigger  vale. When the trigger is above the 
<m>threshold</m>
, the input is held and when it drops below the threshold, the input is sampled again.
</p></description>
</inlet>
<inlet id="inlet_thresh" name="thresh" type="number">
<digest>threshold</digest>
<description><p>
The threshold that the trigger must pass to switch between sample and hold behaviors.
</p></description>
</inlet>
</rnboinletlist>
<!--OUTLETS-->
<!--NONE-->
<!--SEE ALSO-->
<seealsolist>
<seealso name="sah~" type="refpage" module="MSP"></seealso>
<seealso name="rnbo_sah~" type="rnborefpage" module="RNBO" display="sah~"></seealso>
<seealso name="rnbo_gate" type="rnborefpage" module="RNBO" display="gate"></seealso>
<seealso name="rnbo_gatetotrig" type="rnborefpage" module="RNBO" display="gatetotrig"></seealso>
<seealso name="rnbo_thresh" type="rnborefpage" module="RNBO" display="thresh"></seealso>
</seealsolist>
</c74object>