<?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="kink" category="Generators">
<!--METADATA-->
<metadatalist>
<metadata name="author">Cycling '74</metadata>
<metadata name="tag">RNBO</metadata>
<metadata name="tag">RNBO Synthesis</metadata>
<metadata name="tag">RNBO Function</metadata>
</metadatalist>
<digest>Distort a sawtooth waveform or event rate linear ramp values.</digest>
<description><p>
kink takes incoming linear ramp values and distorts them according to a slope factor.
If the input multiplied by the slope is less than 0.5, that value is output. Otherwise, a complementary slope is used, equal to 0.5 at the same input value but equal to 1 when the input is 1.
This creates a bend or "kink" in the linear ramp when the slope is not equal to 1.
</p></description>
<!--ARGUMENTS-->
<objarglist>
<objarg name="slope" optional="1" type="number">
<digest>Set the slope point (0.0 ... 1.0)</digest>
<description><p>
The multiplier that affects the slope of the output between an output (Y) value of 0 and 0.5.
</p>
<p>
After the output reaches 0.5, the output ramp will increase to 1 so that the entire output moves from 0 to 1 in the same period of time as the input. A slope multiplier of 1 produces no distortion. Slope multipliers below 1 have a slower rise to 0.5 than the input, and slope multipliers above 1 have a faster rise to 0.5 than the input.
</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="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="slope" size="1" type="number">
<digest>Set the slope point (0.0 ... 1.0)</digest>
<description><p>
The multiplier that affects the slope of the output between an output (Y) value of 0 and 0.5.
</p>
<p>
After the output reaches 0.5, the output ramp will increase to 1 so that the entire output moves from 0 to 1 in the same period of time as the input. A slope multiplier of 1 produces no distortion. Slope multipliers below 1 have a slower rise to 0.5 than the input, and slope multipliers above 1 have a faster rise to 0.5 than the input.
</p></description>
</attribute>
<attribute name="x" size="1" type="number">
<digest>Input to distort.</digest>
<description><p>
The input to kink should be a linear ramp of values that repeatedly goes from 0 to 1.
</p></description>
</attribute>
</rnboattributelist>
<!--INLETS-->
<rnboinletlist>
<inlet id="inlet_x" name="x" type="number">
<digest>Input to distort.</digest>
<description><p>
The input to kink should be a linear ramp of values that repeatedly goes from 0 to 1.
</p></description>
</inlet>
<inlet id="inlet_slope" name="slope" type="number">
<digest>Set the slope point (0.0 ... 1.0)</digest>
<description><p>
The multiplier that affects the slope of the output between an output (Y) value of 0 and 0.5.
</p>
<p>
After the output reaches 0.5, the output ramp will increase to 1 so that the entire output moves from 0 to 1 in the same period of time as the input. A slope multiplier of 1 produces no distortion. Slope multipliers below 1 have a slower rise to 0.5 than the input, and slope multipliers above 1 have a faster rise to 0.5 than the input.
</p></description>
</inlet>
</rnboinletlist>
<!--OUTLETS-->
<rnbooutletlist>
<outlet id="outlet_out1" name="Out" type="number">
<digest>The distorted output</digest>
<description><p>
If the kink objects slope is less than 0.5, that value is output. Otherwise, a complementary slope is used which is equal to 0.5 at the same input value but equal to 1 when the input is 1. This creates a "kink" in the linear ramp when the slope is not equal to 1.
</p></description>
</outlet>
</rnbooutletlist>
<!--SEE ALSO-->
<seealsolist>
<seealso name="kink~" type="refpage" module="MSP"></seealso>
<seealso name="rnbo_phasor~" type="rnborefpage" module="RNBO" display="phasor~"></seealso>
<seealso name="rnbo_line~" type="rnborefpage" module="RNBO" display="line~"></seealso>
<seealso name="rnbo_cycle~" type="rnborefpage" module="RNBO" display="cycle~"></seealso>
</seealsolist>
</c74object>