<?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="triangle~" module="msp" category="MSP Functions">
	<digest>
		Triangle/ramp wavetable
	</digest>
	<description>
		<o>triangle~</o> is a triangle/ramp wavetable with signal input to change phase offset of the peak value. The default lo/hi points are -1. 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) Phase
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="signal/float">
			<digest>
				(signal/float) Point 1
			</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="peak-value-phase-offset" optional="1" type="float">
			<digest>
				Peak value phase offset
			</digest>
			<description>
				Peak value phase offset, expressed as a fraction of a cycle, from 0 to 1.0. The default is <m>0.5</m>. A value of 0 produces a ramp waveform when the triangle~ object is driven by a <o>phasor~</o>, and a value of 1.0 produces a sawtooth waveform.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="float">
			<arglist>
				<arg name="triangular-control" optional="0" type="float" />
			</arglist>
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: Any signal, float, or an input signal progressing from 0 to 1 is used to scan the <o>triangle~</o> object's wavetable. The output of a <o>phasor~</o> or some other audio signal can be used to control <o>triangle~</o> as an oscillator, treating the contents of the wavetable as a repeating waveform.
				<br />
				<br />
				In right inlet: Peak value phase offset, expressed as a fraction of a cycle, from 0 to 1.0. The default is 0.5. Scanning through the <o>triangle~</o> object's wavetable using output of a <o>phasor~</o> with a phase offset value of 0 produces a ramp waveform, and a phase offset of 1.0 produces a sawtooth waveform.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: Any signal, float, or an input signal progressing from 0 to 1 is used to scan the <o>triangle~</o> object's wavetable. The output of a <o>phasor~</o> or some other audio signal can be used to control <o>triangle~</o> as an oscillator, treating the contents of the wavetable as a repeating waveform.
				<br />
				<br />
				In right inlet: Peak value phase offset, expressed as a fraction of a cycle, from 0 to 1.0. The default is 0.5. Scanning through the <o>triangle~</o> object's wavetable using output of a <o>phasor~</o> with a phase offset value of 0 produces a ramp waveform, and a phase offset of 1.0 produces a sawtooth waveform.
			</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>triangle~</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>triangle~</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="Minimum Value" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="triangle~.png" caption="triangle~ lets you generate ramping waveforms with different reversal points" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="buffer~" />
		<seealso name="cos~" />
		<seealso name="phasor~" />
		<seealso name="trapezoid~" />
		<seealso name="tri~" />
		<seealso name="wave~" />
		<seealso module="msp" name="05_mspbasicchapter02" type="tutorial" />
		<seealso module="msp" name="05_mspbasicchapter03" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="signal">
			<description>
				A signal which corresponds to the value referenced by the <o>triangle~</o> object's input signal. If the output of a <o>phasor~</o> or some other audio signal is used to scan the <o>triangle~</o> object, the output will be a periodic waveform.
			</description>
		</entry>
	</misc>
</c74object>
