<?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="+=~" module="msp" category="MSP Operators">
	<digest>
		Signal accumulator
	</digest>
	<description>
		<o>+=~</o> adds all the values it receives. The result can grow very large, very fast.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="signal">
			<digest>
				(signal) Accumulator Input
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="signal">
			<digest>
				(signal) Accumulator Input
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				(signal) Accumulator Output
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="initial-sum" optional="1" type="float">
			<digest>
				Initial value
			</digest>
			<description>
				Sets the initial value for the sum. The default is 0.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Reset the sum to 0
			</digest>
			<description>
				Resets the sum to 0.
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="stored-sum" optional="0" type="float" />
			</arglist>
			<digest>
				Set the stored value without triggering output
			</digest>
			<description>
				The word <m>set</m>, followed by a number, sets the stored value to that number, without triggering output.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				Add input sample added to all previous samples
			</digest>
			<description>
				Each sample of the input is added to all previous samples to produce a running sum. For instance, assuming the sum started at 0, an input signal consisting of 1, 1, 1, 1 would produce 1, 2, 3, 4 as an output signal.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="plusequals~.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="+~" />
	</seealsolist>
	<misc name="Output">
		<entry name="signal">
			<description>
				Each sample of the output is the sum of all previous input samples.
			</description>
		</entry>
	</misc>
</c74object>
