<?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="%~" module="msp" category="MSP Operators">
	<digest>
		Divide two signals, output the remainder
	</digest>
	<description>
		<o>%~</o> is a signal remainder operator. If signals are connected to both inlets, the left signal is divided by the right signal, and the remainder is output. If a signal is only connected to left inlet, it is divided to the argument or a float in the right inlet. Note that multiple signals in the same inlet add together automatically.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="signal/float">
			<digest>
				(signal/float) This Right Inlet
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="signal/float">
			<digest>
				(signal/float) Left Inlet This
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				(signal) Modulo Result
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="initial-divisor" optional="1" type="number">
			<digest>
				Initial divisor
			</digest>
			<description>
				Sets an initial value by which to divide the signal coming into the left inlet. If a signal is connected to the right inlet, the argument is ignored. If no argument is present, and no signal is connected to the right inlet, the initial value is <m>1</m> by default.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="dividend/divisor" optional="0" type="int" />
			</arglist>
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: The number is divided by the signal coming into the right inlet. If a signal is also connected to the left inlet, a <m>float</m> or <m>int</m> is ignored.
				<br />
				<br />
				In right inlet: A number by which to divide the signal coming into the left inlet. If a signal is also connected to the right inlet, a <m>float</m> or <m>int</m> is ignored.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="dividend/divisor" optional="0" type="float" />
			</arglist>
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: The number is divided by the signal coming into the right inlet. If a signal is also connected to the left inlet, a <m>float</m> or <m>int</m> is ignored.
				<br />
				<br />
				In right inlet: A number by which to divide the signal coming into the left inlet. If a signal is also connected to the right inlet, a <m>float</m> or <m>int</m> is ignored.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: The signal is divided by a signal coming into the right inlet, or a constant value received in the right inlet, and the remainder is sent out the outlet.
				<br />
				<br />
				In right inlet: The signal is used as the divisor, to be divided into the signal coming into the left inlet, or the constant value received in the left inlet.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="modulo~.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="!/~" />
		<seealso name="/~" />
	</seealsolist>
	<misc name="Output">
		<entry name="signal">
			<description>
				When the two signals in the inlets are divided, the remainder is sent out the outlet. <o>%</o> is called the modulo operator.
			</description>
		</entry>
	</misc>
</c74object>
