<?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="trapezoid~" module="msp" category="MSP Functions">
	<digest>
		Trapezoidal wavetable
	</digest>
	<description>
		<o>trapezoid~</o> is a trapezoidal wavetable with signal inputs to change ramp up/down phase position. The default lo/hi points are 0. and 1., but may be changed using the lo/hi messages.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
		<metadata name="tag">
			oscillator
		</metadata>
		<metadata name="tag">
			MSP Functions
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="signal">
			<digest>
				(signal) Input
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="signal/float">
			<digest>
				(signal/float) Point 1
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="2" type="signal/float">
			<digest>
				(signal/float) Point 2
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				(signal) Output
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="ramp-up" optional="1" type="float">
			<digest>
				Ramp up value
			</digest>
			<description>
				A floating-point value can be used to specify the ramp up value. The arguments <m>0. 0.</m> produce a ramp waveform, and <m>0.5 0.5</m> produces a triangle waveform.
			</description>
		</objarg>
		<objarg name="ramp-down" optional="1" type="float">
			<digest>
				Ramp down value
			</digest>
			<description>
				A floating-point value can be used to specify the ramp down value. The arguments <m>0. 0.</m> produce a ramp waveform, and <m>0.5 0.5</m> produces a triangle waveform.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="float">
			<arglist>
				<arg name="trapezoidal-control" optional="0" type="float" />
			</arglist>
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: Any float or signal or an input signal progressing from 0 to 1 is used to scan the <o>trapezoid~</o> object's wavetable. The output of a <o>phasor~</o> or some other audio signal can be used to control <o>trapezoid~</o> as an oscillator, treating the contents of the wavetable as a repeating waveform.
				<br />
				<br />
				In middle inlet: The ramp up portion of the trapezoidal waveform, specified as a fraction of a cycle between 0 and 1.0. The default is .1.
				<br />
				<br />
				In right inlet: The ramp up portion of the trapezoidal waveform, specified as a fraction of a cycle between 0 and 1.0. The default is 0.9.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: Any float or signal or an input signal progressing from 0 to 1 is used to scan the <o>trapezoid~</o> object's wavetable. The output of a <o>phasor~</o> or some other audio signal can be used to control <o>trapezoid~</o> as an oscillator, treating the contents of the wavetable as a repeating waveform.
				<br />
				<br />
				In middle inlet: The ramp up portion of the trapezoidal waveform, specified as a fraction of a cycle between 0 and 1.0. The default is .1.
				<br />
				<br />
				In right inlet: The ramp up portion of the trapezoidal waveform, specified as a fraction of a cycle between 0 and 1.0. The default is 0.9.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="hi" get="1" set="1" type="float" size="1">
			<digest>
				Maximum value for signal output
			</digest>
			<description>
				Sets the maximum value of <o>trapezoid~</o> for signal output. The default value is <m>1.0</m> 
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Maximum Value" />
			</attributelist>
		</attribute>
		<attribute name="lo" get="1" set="1" type="float" size="1">
			<digest>
				Minimum Value
			</digest>
			<description>
				Sets the minimum value of <o>trapezoid~</o> for signal output. The default value is <m>0.</m> 
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Minimum Value" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="trapezoid~.png" caption="trapezoid~ generates a trapezoidal waveform that lets you specify the phase points at which it changes direction" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="buffer~" />
		<seealso name="cos~" />
		<seealso name="phasor~" />
		<seealso name="wave~" />
		<seealso name="05_mspbasicchapter02" module="msp" type="tutorial" />
		<seealso name="05_mspbasicchapter03" module="msp" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="signal">
			<description>
				A signal which corresponds to the value referenced by the <o>trapezoid~</o> object's input signal. If the output of a <o>phasor~</o> or some other audio signal is used to scan the <o>trapezoid~</o> object, the output will be a periodic waveform.
			</description>
		</entry>
	</misc>
</c74object>
