<?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="pv" module="max" category="Control">
	<digest>
		Share data within a patch hierarchy
	</digest>
	<description>
		Creates a value that is shared between objects, but only within a single patcher. Unlike the <o>value</o> object, <o>pv</o> objects that share the same name only share the same value if they are in the same patcher, or one of its subpatches.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				bang Outputs, Anything Else Sets Value
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				bang Outputs, Anything Else Sets Value
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Value Shared by All Local pv a Objects
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="name" optional="0" type="symbol">
			<digest>
				Shared context name
			</digest>
			<description>
				Obligatory. The first argument provides an identifying name. All <o>pv</o> objects with that name within the patcher will share the same value.
			</description>
		</objarg>
		<objarg name="message" optional="1" type="symbol">
			<digest>
				Initialization message
			</digest>
			<description>
				Any message typed in after the first argument initializes the stored contents of the <o>pv</o> object. Note that when two or more <o>pv</o> objects in a patcher file that share the same name are initialized to different values, the one which is initialized last determines the value. Since the order in which <o>pv</o> objects will be initialized cannot be precisely determined, the best practice is to initialize only one of the related <o>pv</o> objects.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Sends out the stored message.
			</digest>
			<description>
				Sends out the stored message.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Store and share an integer message
			</digest>
			<description>
				Performs the same as the <m>anything</m> message.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Store and share a float message
			</digest>
			<description>
				Performs the same as the <m>anything</m> message.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Store and share a list
			</digest>
			<description>
				Performs the same as the <m>anything</m> message.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Store and share a message
			</digest>
			<description>
				The message is stored, to be shared by all other <o>pv</o> objects of the same name that are inside the object's patcher or its subpatches (or, if in a subpatch, its parent patch). A message received in any other such <o>pv</o> object will change the stored message.
			</description>
		</method>
		<method name="status">
			<arglist />
			<digest>
				Print share data in the Max Console
			</digest>
			<description>
				Posts information about the communications between all <o>pv</o> objects involved in the patcher.
			</description>
		</method>
		<method name="symbol">
			<arglist>
				<arg name="input" optional="0" type="symbol" />
			</arglist>
			<digest>
				Store and share a symbol
			</digest>
			<description>
				Performs the same as the <m>anything</m> message.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="pv.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="float" />
		<seealso name="int" />
		<seealso name="pvar" />
		<seealso name="receive" />
		<seealso name="send" />
		<seealso name="value" />
	</seealsolist>
	<discussion>
		The <o>pv</o> also object cannot be the receiver of a message sent remotely by a <o>message</o> box (the first symbol after a semicolon).
	</discussion>
	<misc name="Output">
		<entry name="any message">
			<description>
				When <m>bang</m> is received in the inlet, the stored message is sent out.
			</description>
		</entry>
	</misc>
</c74object>
