<?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. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="mc.twist~" module="" category="Multichannel">
	<digest>
		Make Linear Ramps Curved (multichannel)
	</digest>
	<description>
		The <o>twist~</o> object accepts a ramp between 0 and 1 (such as one generated by <o>phasor~</o>) and produces a piecewise linear approximation of an expoential function using the same algorithm as the <o>curve~</o> object. The curvature of the ramp is controlled by the <at>curve</at> attribute that ranges from -1 to 1. A <at>curve</at> value of 0 produces an output ramp identical to the input.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="signal">
			<digest>
				Ramp Input
			</digest>
			<description>
				Connect any object producing a signal ramp between 0 and 1.
			</description>
		</inlet>
		<inlet id="1" type="signal">
			<digest>
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				Curved Ramp Out
			</digest>
			<description>
				The output of <o>twist~</o> is a non-linear version of the input ramp.
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="signal">
			<arglist />
			<digest>
				Ramp Input
			</digest>
			<description>
				Connect any object producing a signal ramp between 0 and 1.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="curve" get="1" set="1" type="float" size="1">
			<digest>
				Curvature
			</digest>
			<description>
				The <at>curve</at> attribute sets the parameters of the exponential function that generates the non-linear output. It can range between -1 and 1. For ascending ramps, values of <at>curve</at> less than 1 produce values above the linear input and values of <at>curve</at> greater than 1 produce values below the linear input. As <at>curve</at> values near -1 or 1, the curavture becomes more extreme.
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Curvature" />
			</attributelist>
		</attribute>
		<attribute name="interval" get="1" set="1" type="int" size="1">
			<digest>
				Sample Interval
			</digest>
			<description>
				The curved output is a piecewise linear approximation of the exponential function. The <at>interval</at> attribute sets the number of samples used for each line segement. Values of <at>interval</at> must be a power of 2 between 2 and 64 samples. Larger values will produce a less accurate approximation but could be more efficient. If the signal vector size is less than <at>interval</at>, the actual segment length will be the signal vector size.
			</description>
			<attributelist>
				<attribute name="enumvals" get="1" set="1" type="atom" size="6">
					<enumlist>
						<enum name="2">
							<digest>
								2 sample segment length
							</digest>
							<description>
								TEXT_HERE
							</description>
						</enum>
						<enum name="4">
							<digest>
								4 sample segment length
							</digest>
							<description>
								TEXT_HERE
							</description>
						</enum>
						<enum name="8">
							<digest>
								8 sample segment length
							</digest>
							<description>
								TEXT_HERE
							</description>
						</enum>
						<enum name="16">
							<digest>
								16 sample segment length
							</digest>
							<description>
								TEXT_HERE
							</description>
						</enum>
						<enum name="32">
							<digest>
								32 sample segment length
							</digest>
							<description>
								TEXT_HERE
							</description>
						</enum>
						<enum name="64">
							<digest>
								64 sample segment length
							</digest>
							<description>
								TEXT_HERE
							</description>
						</enum>
					</enumlist>
				</attribute>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Sample Interval" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="enum" />
			</attributelist>
		</attribute>
		<attribute name="shapemode" get="1" set="1" type="int" size="1">
			<digest>
				Preserve Curve Shape
			</digest>
			<description>
				The <at>shapemode</at> attribute, when enabled, causes descending ramps to be symmetrical with ascending ramps. <at>shapemode</at> is enabled by default.
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Preserve Curve Shape" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="syncupdate" get="1" set="1" type="int" size="1">
			<digest>
				Sync Curve Changes
			</digest>
			<description>
				When enabled <at>syncupdate</at> defers changes to the <at>curve</at> attribute until either an input ramp starts or changes direction (resets). This avoids discontinuities in the ramp output.
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Sync Curve Changes" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example caption="" img="" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="curve~" />
		<seealso name="ramp~" />
		<seealso name="shape~" />
	</seealsolist>
	<mcwrapper>
		<mcwrappermethod name="applymessages" />
		<mcwrappermethod name="applynvalues" />
		<mcwrappermethod name="applyvalues" />
		<mcwrappermethod name="decide" />
		<mcwrappermethod name="deviate" />
		<mcwrappermethod name="ease.in_back" />
		<mcwrappermethod name="ease.in_bounce" />
		<mcwrappermethod name="ease.in_circular" />
		<mcwrappermethod name="ease.in_cubic" />
		<mcwrappermethod name="ease.in_elastic" />
		<mcwrappermethod name="ease.in_exponential" />
		<mcwrappermethod name="ease.in_out_back" />
		<mcwrappermethod name="ease.in_out_bounce" />
		<mcwrappermethod name="ease.in_out_circular" />
		<mcwrappermethod name="ease.in_out_cubic" />
		<mcwrappermethod name="ease.in_out_elastic" />
		<mcwrappermethod name="ease.in_out_exponential" />
		<mcwrappermethod name="ease.in_out_quadratic" />
		<mcwrappermethod name="ease.in_out_quartic" />
		<mcwrappermethod name="ease.in_out_quintic" />
		<mcwrappermethod name="ease.in_out_sine" />
		<mcwrappermethod name="ease.in_quadratic" />
		<mcwrappermethod name="ease.in_quartic" />
		<mcwrappermethod name="ease.in_quintic" />
		<mcwrappermethod name="ease.in_sine" />
		<mcwrappermethod name="ease.linear" />
		<mcwrappermethod name="ease.out_back" />
		<mcwrappermethod name="ease.out_bounce" />
		<mcwrappermethod name="ease.out_circular" />
		<mcwrappermethod name="ease.out_cubic" />
		<mcwrappermethod name="ease.out_elastic" />
		<mcwrappermethod name="ease.out_quadratic" />
		<mcwrappermethod name="ease.out_quartic" />
		<mcwrappermethod name="ease.out_quintic" />
		<mcwrappermethod name="ease.out_sine" />
		<mcwrappermethod name="exponential" />
		<mcwrappermethod name="generate" />
		<mcwrappermethod name="harmonic" />
		<mcwrappermethod name="increment" />
		<mcwrappermethod name="randomrange" />
		<mcwrappermethod name="replicatenvalues" />
		<mcwrappermethod name="replicatevalues" />
		<mcwrappermethod name="scaledexponential" />
		<mcwrappermethod name="setvalue" />
		<mcwrappermethod name="setvaluerange" />
		<mcwrappermethod name="smoothstep" />
		<mcwrappermethod name="spread" />
		<mcwrappermethod name="spreadexclusive" />
		<mcwrappermethod name="spreadincludefirst" />
		<mcwrappermethod name="spreadincludesecond" />
		<mcwrappermethod name="spreadinclusive" />
		<mcwrappermethod name="subharmonic" />
		<mcwrapperattr name="busymapname" />
		<mcwrapperattr name="bz" />
		<mcwrapperattr name="bzname" />
		<mcwrapperattr name="chans" />
		<mcwrapperattr name="fun" />
		<mcwrapperattr name="initialvalues" />
		<mcwrapperattr name="op" />
		<mcwrapperattr name="target" />
		<mcwrapperattr name="usebusymap" />
		<mcwrapperattr name="values" />
		<mcwrapperattr name="voiceprob" />
		<mcwrapperattr name="zero" />
	</mcwrapper>
</c74object>
