<?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.route" module="Max" category="MC">
	<digest>
		Direct output of messages based on an index received
	</digest>
	<description>
		The <o>mc.route</o> objects works with the non-signal output of objects such as <o>mc.snapshot~</o>, <o>mc.peakamp~</o>, <o>poly~</o> and <o>mc.poly~</o> (when non-signal outputs are used). These objects precede non-signal output with a voice index identifying the channel or patcher instance that produced the value. <o>mc.route</o> can use this index to direct the value to an outlet.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			TEXT_HERE
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Message to Route
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="int">
			<digest>
				Voice Index
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="int">
			<digest>
				Per-Voice Output
			</digest>
			<description>
				The <o>mc.route</o> object's outlet count is specified by its argument. Each outlet produces values and messages associated with a given voice index; the left outlet's values are for voice index 1.
			</description>
		</outlet>
		<outlet id="1" type="int">
			<digest>
				Output for Voice 2
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="Outlets" type="int" optional="1">
			<digest>
				Number of outlets (default 2)
			</digest>
			<description>
				The argument specifies the number of outlets the <o>mc.route</o> object will have. This determines the number of voices it supports. The maximum number of outlets is 128.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Output bang
			</digest>
			<description>
				In left inlet: Repeated to the outlet specified by the voice index.
			</description>
		</method>
		<method name="int">
			<arglist />
			<digest>
				Output int
			</digest>
			<description>
				In left inlet: Repeated to the outlet specified by the voice index.
				<br />
				<br />
				In right inlet: Sets the voice index for routing subsequent messages received in the left inlet.
			</description>
		</method>
		<method name="float">
			<arglist />
			<digest>
				Output float
			</digest>
			<description>
				In left inlet: Repeated to the outlet specified by the voice index.
				<br />
				<br />
				In right inlet: Converted to <m>int</m>, sets the voice index for routing subsequent messages received in the left inlet.
			</description>
		</method>
		<method name="list">
			<arglist />
			<digest>
				Output list
			</digest>
			<description>
				In left inlet: Repeated to the outlet specified by the voice index.
			</description>
		</method>
		<method name="anything">
			<arglist />
			<digest>
				Output anything
			</digest>
			<description>
				In left inlet: Repeated to the outlet specified by the voice index.
			</description>
		</method>
		<method name="voice">
			<arglist>
				<arg name="index" type="int" optional="0" />
			</arglist>
			<digest>
				Sets the voice index
			</digest>
			<description>
				In right inlet: The word <m>voice</m>, followed by a number, sets the voice index for routing subsequent messages received in the left inlet.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example caption="" img="" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="mc.assign" />
		<seealso name="mc.target" />
		<seealso name="mc.makelist" />
		<seealso name="mc_events" module="core" type="vignette" />
		<seealso name="mc_events_newobjects" module="core" type="vignette" />
	</seealsolist>
</c74object>
