<?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="max" category="Math">
	<digest>
		Add two numbers, output the result
	</digest>
	<description>
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Math
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Set Left Operand, Trigger the Calculation
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Set Right Operand
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Result = Left + Right
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="initial" optional="1" type="int or float">
			<digest>
				Initial value to add
			</digest>
			<description>
				Sets the initial value, to be added to a number received in the left inlet. A float argument causes the numbers to be added as floats.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Output most recent calculation
			</digest>
			<description>
				In left inlet: Performs the addition with the numbers currently stored. If there is no argument, <o>+</o> initially holds <m>0</m>.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Add and cause output
			</digest>
			<description>
				The number is added to the number in the right inlet, and the result is sent out the outlet.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Add and cause output
			</digest>
			<description>
				Converted to <m>int</m>, unless <o>+</o> has a float argument.
			</description>
		</method>
		<method name="in1">
			<arglist>
				<arg name="value-added-to" optional="0" type="int" />
			</arglist>
			<digest>
				Set value to add
			</digest>
			<description>
				The number is stored for addition to a number received in the left inlet.
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="set-input" optional="0" type="int" />
			</arglist>
			<digest>
				Add with no output
			</digest>
			<description>
				In left inlet: The word <m>set</m>, followed by a number, adds that number to the number in the right inlet but nothing is sent out. A subsequent <m>bang</m> sends out the result.
			</description>
			<discussion>
				The <m>set</m> message functions similarly for all the arithmetic operators, logical operators, and bitwise operators: <o>+</o>, <o>-</o>, <o>*</o>, <o>/</o>, <o>%</o>, <o>&lt;</o>, <o>&lt;=</o>, <o>==</o>, <o>!-</o>, <o>!/</o>, <o>!=</o>, <o>&gt;=</o>, <o>&gt;</o>, <o>&amp;&amp;</o>, <o>||</o>, <o>&amp;</o>, <o>|</o>, <o>&lt;&lt;</o>, and <o>&gt;&gt;</o>. The number is used as the left operand, and the expression is evaluated, but the result is not sent out.
			</discussion>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Set values and output sum
			</digest>
			<description>
				In left inlet: The first number is added to the second number, and the result is sent out the outlet.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="plus.png" caption="Normally adds ints... Floats are truncated before addition... unless there is a float argument" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="expr" />
		<seealso name="basicchapter06" module="max" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				The sum of the two numbers received in the inlets.
			</description>
		</entry>
		<entry name="float">
			<description>
				Only if there is an argument with a decimal point.
			</description>
		</entry>
	</misc>
</c74object>
