<?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="updown~" category="">
<!--METADATA-->
<metadatalist>
<metadata name="author">Cycling '74</metadata>
<metadata name="tag">RNBO</metadata>
</metadatalist>
<digest>Trapezoidal function generator with constant attack and release</digest>
<description><p>
<o objname="rnbo_updown~">updown~</o>
 is driven by a ramp from 0 - 1 or 1 - 0. It generates a trapezoidal function where the attack and release times are independent of the speed of the input ramp, unlike 
<o objname="rnbo_trapezoid~">trapezoid~</o>
 where start and end times are specified as a proportion of the total input ramp cycle and thus will vary with the speed of the input ramp.
Note that the up phase of the 
<o objname="rnbo_updown~">updown~</o>
 object's output occurs after the reset of a phasor or a zero-to-non-zero transition, whether the input ramp moves up or down. The down phase of the output occurs in the time before a reset (or the end of the ramp) is expected to occur.
</p></description>
<!--ARGUMENTS-->
<!--NONE-->
<!--OPTIONS-->
<!--NONE-->
<!--ATTRIBUTES-->
<rnboattributelist>
<attribute name="down" size="1" type="number">
<digest>The down time of the ramp</digest>
<attributelist>
<attribute name="default" type="number" value="30"></attribute>
</attributelist>
<description><p>
Sets the time of the output ramp descending from the maximum value to 0 in milliseconds.
</p></description>
</attribute>
<attribute name="input" size="1" type="signal">
<digest>Phasor input</digest>

</attribute>
<attribute name="level" size="1" type="number">
<digest>The maximum value of the trapezoidal function</digest>
<attributelist>
<attribute name="default" type="number" value="1"></attribute>
</attributelist>

</attribute>
<attribute name="up" size="1" type="number">
<digest>The up time of the ramp</digest>
<attributelist>
<attribute name="default" type="number" value="30"></attribute>
</attributelist>
<description><p>
Sets the time of the output ramp ascending from 0 the maximum value in milliseconds
</p></description>
</attribute>
</rnboattributelist>
<!--INLETS-->
<rnboinletlist>
<inlet id="inlet_input" name="input" type="signal">
<digest>Phasor input</digest>

</inlet>
</rnboinletlist>
<!--OUTLETS-->
<rnbooutletlist>
<outlet id="outlet_output" name="output" type="signal">
<digest>Trapezoidal output</digest>

</outlet>
</rnbooutletlist>
<!--SEE ALSO-->
<seealsolist>
<seealso name="updown~" type="refpage" module="MSP"></seealso>
<seealso name="rnbo_phasor~" type="rnborefpage" module="RNBO" display="phasor~"></seealso>
<seealso name="rnbo_subdiv~" type="rnborefpage" module="RNBO" display="subdiv~"></seealso>
</seealsolist>
</c74object>