<?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="receive~" module="msp" category="MSP Routing">
	<digest>
		Signals can be received from any loaded patcher, without patch cords
	</digest>
	<description>
		Use the <o>receive~</o> object to grab signals put out by <o>send~</o> objects and outputs them out its signal outlet. A <o>receive~</o> object can be instantiated simply by typing into an object box the short-form letter &quot;r~&quot;.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
		<metadata name="tag">
			MSP Routing
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				set Changes Source
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				set Changes Source
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				Output
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="object-name" optional="0" type="symbol">
			<digest>
				Name of the <o>receive~</o> object
			</digest>
			<description>
				Sets the name of the <o>receive~</o> object.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="(mouse)">
			<digest>
				Find matching <o>send~</o> objects
			</digest>
			<description>
				Double-clicking on a <o>receive~</o> object looks for and opens a loaded patcher window containing a <o>send~</o> object with the same name. Repeatedly double-clicking on the <o>receive~</o> object looks for and opens more such windows.
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="object-name" optional="0" type="symbol" />
			</arglist>
			<digest>
				Change the name of the <o>receive~</o> object
			</digest>
			<description>
				The word <m>set</m>, followed by a <m>symbol</m>, changes the name of the <o>receive~</o> so that it connects to different <o>send~</o> objects that have the <m>symbol</m> as a name. If no <o>send~</o> objects exist with the name, the output of <o>receive~</o> is 0.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				Receive a signal from all <o>send~</o> objects sharing its name
			</digest>
			<description>
				The <o>receive~</o> object receives signals from all <o>send~</o> objects that share its name. It adds them together and sends the sum out its outlet. If no <o>send~</o> objects share the current name, the output of <o>receive~</o> is 0. The <o>send~</o> objects need not be in the same patch as the corresponding <o>receive~</o>.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="chans" get="1" set="1" type="int" size="1">
			<digest>
				Output Channels
			</digest>
			<description>
				The <at>chans</at> attribute is disabled in the <o>receive~</o> object. It is available in <o>mc.receive~</o>.
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Output Channels" />
			</attributelist>
		</attribute>
		<attribute name="name" get="1" set="1" type="symbol" size="1">
			<digest>
				Name
			</digest>
			<description>
				Name the <o>receive~</o> object. If there is no argument, <o>receive~</o> has one inlet, and a name must be provided by a <m>set</m> message before anything can be received. All <o>receive~</o> objects that share the same name will receive data from any <o>send~</o> objects that share their name.
				<br />
				<br />
				If you want a named <o>send~</o>/ <o>receive~</o> object in a Max for Live device to be unique to the device, use three dashes (<b>---</b>) to start the name of your <o>send~</o>/ <o>receive~</o> destination (e.g. <m>s ---filtercutoff</m>).
				<br />
				<br />
				When your patch is initialized, it will replace the three dashes with a unique-to-Live number (e.g. <m>s 024filtercutoff</m>);
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Name" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="receive~.png" caption="Signals can be received from any loaded patcher, without patch cords" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="mc.receive~" />
		<seealso name="send~" />
		<seealso name="05_mspbasicchapter04" module="msp" type="tutorial" />
	</seealsolist>
	<discussion>
		You can switch between all current <o>receive~</o> objects using the <m>set</m> message. To turn off the audio coming from a <o>receive~</o>, use <m>set</m> with the name of a <o>send~</o> that doesn't currently exist.
		<br />
		<br />
		Note: The use of a <o>receive~</o> object can introduce a delay of varying lengths. This delay is dependent on a large number of factors including, but not limited to, how many <o>send~</o> and <o>receive~</o> objects are involved, if a feedback loop is detected, and the use of different top-level patchers with multiprocessing enabled.
	</discussion>
	<misc name="Output">
		<entry name="signal">
			<description>
				The combination of all signals coming into all <o>send~</o> objects with the same name as the <o>receive~</o>.
			</description>
		</entry>
	</misc>
</c74object>
