<?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="saw~" module="msp" category="MSP Synthesis">
	<digest>
		Antialiased sawtooth oscillator
	</digest>
	<description>
		Use the <o>saw~</o> object to generate an anti-aliased sawtooth wave.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
		<metadata name="tag">
			oscillator
		</metadata>
		<metadata name="tag">
			MSP Synthesis
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="signal/float">
			<digest>
				(signal/float) frequency
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="signal">
			<digest>
				(signal) sync trigger
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				(signal) Input signal
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="initial-frequency" optional="1" units="hz" type="number">
			<digest>
				Initial frequency
			</digest>
			<description>
				Sets the initial frequency of the oscillator. The default is 0.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="frequency" optional="0" units="hz" type="int" />
			</arglist>
			<digest>
				Set the oscillator frequency
			</digest>
			<description>
				In left inlet: Sets the frequency of the oscillator.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="frequency" optional="0" units="hz" type="float" />
			</arglist>
			<digest>
				Set the oscillator frequency
			</digest>
			<description>
				In left inlet: Sets the frequency of the oscillator.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: Sets the frequency of the oscillator.
				<br />
				<br />
				In right inlet: (optional) A sync signal. When the control signal crosses from below 0.5 to above 0.5, the oscillator resets itself. A <o>phasor~</o> object works well for this purpose. The classic use is to set this control signal to your fundamental frequency and &quot;sweep&quot; the left frequency input in a range somewhere several octaves higher than the fundamental.
			</description>
		</method>
		<method name="synctrig">
			<arglist>
				<arg name="trigger-value" optional="0" type="float" />
			</arglist>
			<digest>
				Set the threshold value for oscillator reset
			</digest>
			<description>
				Sets the value which an input signal crosses at which the oscillator will reset itself.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="saw~.png" caption="Spectral comparison of saw~ and phasor~" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="cycle~" />
		<seealso name="phasor~" />
		<seealso name="rect~" />
		<seealso name="saw~" />
		<seealso name="techno~" />
		<seealso name="tri~" />
		<seealso name="05_mspbasicchapter03" module="msp" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="signal">
			<description>
				An antialiased sawtooth waveform. An ideal, straight-line sawtooth wave generated in a computer contains aliased frequencies that can sound irritating. <o>saw~</o> produces a nice, analog-esque output waveform.
			</description>
		</entry>
	</misc>
</c74object>
