<?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 phasor~ 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 phase waveform when the slope is not equal to 1.
</p></description>
<!--ARGUMENTS-->
<objarglist>
<objarg name="slope" optional="1" type="auto">
<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 waveform 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-->
<!--NONE-->
<!--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="auto">
<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 waveform 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="auto">
<digest>Input to distort.</digest>
<description><p>
The input to kink~ should be a sawtooth waveform output from a phasor~ object that repeatedly goes from 0 to 1.
</p></description>
</attribute>
</rnboattributelist>
<!--INLETS-->
<rnboinletlist>
<inlet id="inlet_x" name="x" type="auto">
<digest>Input to distort.</digest>
<description><p>
The input to kink~ should be a sawtooth waveform output from a phasor~ object that repeatedly goes from 0 to 1.
</p></description>
</inlet>
<inlet id="inlet_slope" name="slope" type="auto">
<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 waveform 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="out1" type="signal">
<digest>The distorted output</digest>
<description><p>
The output of kink~ should be fed to the right inlet of rnbo_cycle~ (at zero frequency) to produce a distorted sine wave (a technique known as phase distortion synthesis). As the slope multiplier in the right inlet of kink~ deviates from 1, additional harmonics are introduced into the waveform output of rnbo_cycle~. If the slope multiplier is rapidly increased and then decreased using a rnbo_line~, the output of rnbo_cycle~ may resemble an attack portion of an instrumental sound.
</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>