<?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="buddy" module="max" category="Right-to-Left">
	<digest>
		Synchronize arriving data
	</digest>
	<description>
		Outputs incoming data after something has been received in all inlets.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Right-to-Left
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Input to be Synchronized
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Input to be Synchronized
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Synchronized Output of Inlet 1
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="OUTLET_TYPE">
			<digest>
				Synchronized Output of Inlet 2
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="inlets" optional="1" type="int">
			<digest>
				The number of inlets (and outlets).
			</digest>
			<description>
				Sets the number of inlets and outlets. If there is no argument, there are two inlets and two outlets.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Simulate input of <m>0</m> 
			</digest>
			<description>
				In any inlet: Same as sending the number <m>0</m>.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Input data into one outlet
			</digest>
			<description>
				In any inlet: When data has been received in all its inlets, <o>buddy</o> sends the received messages out their corresponding outlets, then waits until data has arrived again in all inlets.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Input data into one outlet
			</digest>
			<description>
				In any inlet: When data has been received in all its inlets, <o>buddy</o> sends the received messages out their corresponding outlets, then waits until data has arrived again in all inlets.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Input data into one outlet
			</digest>
			<description>
				In any inlet: When data has been received in all its inlets, <o>buddy</o> sends the received messages out their corresponding outlets, then waits until data has arrived again in all inlets.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Input data into one outlet
			</digest>
			<description>
				In any inlet: When data has been received in all its inlets, <o>buddy</o> sends the received messages out their corresponding outlets, then waits until data has arrived again in all inlets.
			</description>
		</method>
		<method name="clear">
			<arglist />
			<digest>
				Clear all stored values
			</digest>
			<description>
				In left inlet: Deletes all values stored in the inlets.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="buddy.png" caption="Output is synchronous, even if input is not synchronous" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="bondo" />
		<seealso name="onebang" />
		<seealso name="join" />
		<seealso name="pack" />
		<seealso name="swap" />
		<seealso name="thresh" />
		<seealso name="unjoin" />
		<seealso name="unpack" />
	</seealsolist>
	<misc name="Output">
		<entry name="any message">
			<description>
				When a data has arrived in each inlet, it is sent out the outlets, in order from right to left.
			</description>
		</entry>
	</misc>
</c74object>
