<?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="mc.receive~" module="msp" category="MSP Routing">
	<digest>
		Multichannel signals can be received from any loaded patcher, without patch cords
	</digest>
	<description>
		Use the <o>mc.receive~</o> object to grab signals put out by <o>mc.send~</o> or <o>send~</o> objects and output them out its signal outlet. An <o>mc.receive~</o> object can be instantiated simply by typing into an object box the short-form letter &quot;mc.r~&quot;.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</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="multi-channel 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>mc.receive~</o> object
			</digest>
			<description>
				Sets the name of the <o>mc.receive~</o> object.
			</description>
		</objarg>
		<objarg name="channel-count" optional="1" type="int">
			<digest>
				Sets the number of channels to receive from <o>mc.send~</o> 
			</digest>
			<description>
				Sets how many channels <o>mc.receive~</o> should output from <o>mc.send~</o>. Otherwise, default is (logical channel) 1. When working with <o>send~</o>, this argument is optional and unnecessary as there is only one channel of audio.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="(mouse)">
			<digest>
				Find matching <o>mc.send~</o> objects
			</digest>
			<description>
				Double-clicking on an <o>mc.receive~</o> object looks for and opens a loaded patcher window containing an <o>mc.send~</o> object with the same name. Repeatedly double-clicking on the <o>mc.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>mc.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>mc.send~</o> or <o>send~</o> objects that have the <m>symbol</m> as a name. If no <o>mc.send~</o> or <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>mc.send~</o> or <o>send~</o> objects sharing its name
			</digest>
			<description>
				The <o>mc.receive~</o> object receives signals from all <o>mc.send~</o> or <o>send~</o> objects that share its name. It adds together as many as are specified by <ar>channel-count</ar> (default channel 1 if unspecified) and sends the sum out its outlet. If no <o>mc.send~</o> or <o>send~</o> objects share the current name, the output of <o>mc.receive~</o> is 0. The <o>mc.send~</o> or <o>send~</o> objects need not be in the same patch as the corresponding <o>mc.receive~</o>.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="chans" get="1" set="1" type="int" size="1">
			<digest>
				Sets the number of channels to receive from <o>mc.send~</o> 
			</digest>
			<description>
				Sets how many channels <o>mc.receive~</o> should output from <o>mc.send~</o>. Setting this attribute overrides the channel-count argument. Note that like other mc objects, changes to the <at>chans</at> attribute will not take effect until the next audio restart.
			</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>mc.receive~</o> object. If there is no argument, <o>mc.receive~</o> has one inlet, and a name must be provided by a <m>set</m> message before anything can be received. All <o>mc.receive~</o> objects that share the same name will receive data from any <o>mc.send~</o> objects that share their name.
				<br />
				<br />
				If you want a named <o>mc.send~</o>/ <o>mc.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>mc.send~</o>/ <o>mc.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.send~" />
		<seealso name="send~" />
		<seealso name="receive~" />
		<seealso name="05_mspbasicchapter04" module="msp" type="tutorial" />
	</seealsolist>
	<discussion>
		You can switch between all current <o>mc.receive~</o> objects using the <m>set</m> message. To turn off the audio coming from a <o>mc.receive~</o>, use <m>set</m> with the name of a <o>mc.send~</o> or <o>send~</o> that doesn't currently exist.
	</discussion>
	<misc name="Output">
		<entry name="signal">
			<description>
				The combination of all signals coming into all <o>mc.send~</o> or <o>send~</o> objects with the same name as the <o>mc.receive~</o>.
			</description>
		</entry>
	</misc>
</c74object>
