<?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="stripnote" module="max" category="Notes">
	<digest>
		Filter out note-off messages
	</digest>
	<description>
		Only pass note-on messages: those having any velocity above 0.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Notes
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Pitch (from notein Left Outlet)
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Velocity (from notein Velocity Outlet)
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Pitch
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="OUTLET_TYPE">
			<digest>
				Velocity if Note-on Message
			</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="int">
			<arglist>
				<arg name="pitch" optional="0" type="int" />
			</arglist>
			<digest>
				Receive pitch value, cause output
			</digest>
			<description>
				The incoming number is treated as a pitch value. If the velocity value currently held by <o>stripnote</o> is not 0, then the velocity is sent out the right outlet and the pitch is sent out the left outlet.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="pitch" optional="0" type="float" />
			</arglist>
			<digest>
				Receive pitch value, cause output
			</digest>
			<description>
				Converted to <m>int</m>.
			</description>
		</method>
		<method name="ft1">
			<arglist>
				<arg name="velocity" optional="0" type="float" />
			</arglist>
			<digest>
				Receive velocity value
			</digest>
			<description>
				Converted to <m>int</m>.
			</description>
		</method>
		<method name="in1">
			<arglist>
				<arg name="velocity" optional="0" type="int" />
			</arglist>
			<digest>
				Receive velocity value
			</digest>
			<description>
				In right inlet: The number is stored as a velocity to be paired with pitch numbers received in the left inlet.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="stripnote.png" caption="Repeated pitch values and 0 velocities caused by note-off messages can be filtered out" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="makenote" />
		<seealso name="sustain" />
		<seealso name="midichapter02" module="max" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				Out left outlet: The pitch value received in the left inlet is sent out, provided the velocity is not 0.
				<br />
				<br />
				Out right outlet: The velocity value of a note-on pair is sent out, provided it is not 0.
			</description>
		</entry>
	</misc>
</c74object>
