<?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="next" module="max" category="Control">
	<digest>
		Detect separation of messages
	</digest>
	<description>
		Sends a <m>bang</m> out its left outlet when an incoming message is not part of the same Max &quot;event&quot; as a previous message. (An &quot;event&quot; is a mouse click, key press, MIDI event, or tick of the scheduler.) Otherwise, <o>next</o> sends a <m>bang</m> out its right outlet.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Control
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Any Message
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Any Message
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				bang if Message is a New Event
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="OUTLET_TYPE">
			<digest>
				bang if Message is the Same Event
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Test message and cause output
			</digest>
			<description>
				Performs the same as <m>anything</m>.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Test message and cause output
			</digest>
			<description>
				Performs the same as <m>anything</m>.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Test message and cause output
			</digest>
			<description>
				Performs the same as <m>anything</m>.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Test message and cause output
			</digest>
			<description>
				Messages are tested to determine whether they are part of the same logical event. A logical event is one of the following: a mouse click, the ongoing polling of a mouse drag, an event generated by the scheduler (such as the <m>bang</m> from a <o>metro</o>), a MIDI event, or a keyboard event. <o>next</o> determines whether the current message is part of the same event as the previously received message. For example, if you click on a <m>bang</m> twice, the two bangs are not part of the same logical event. But if you put <m>bang, bang</m> in a message box, or use the <o>uzi</o> object to send out two bangs in a row, these bangs are part of the same logical event.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="next.png" caption="next detects when separate Max messages occur within the same logical event" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="uzi" />
		<seealso name="defer" />
		<seealso name="delay" />
	</seealsolist>
	<discussion>
		<o>next</o> is useful for doing something once per dump of an object such as <o>coll</o>.
	</discussion>
	<misc name="Output">
		<entry name="bang">
			<description>
				Out left outlet: A <m>bang</m> is sent out if the current message is not part of the same logical event as the previously received message.
				<br />
				<br />
				Out right outlet: A <m>bang</m> is sent out if the current message is part of the same logical event as the previously received message.
			</description>
		</entry>
	</misc>
</c74object>
