<?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="normalize~" module="msp" category="MSP Modifiers">
	<digest>
		Scale on the basis of maximum amplitude
	</digest>
	<description>
		<o>normalize~</o> performs real-time normalization of its input by multiplying each input sample value by a scaling factor - computed as the maximum output value (sent either as a signal or a float in the right inlet) over the maximum signal input value received thus far.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
		<metadata name="tag">
			MSP Modifiers
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="signal">
			<digest>
				(signal) Input To Be Normalized
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="signal/float">
			<digest>
				(signal/float) Maximum Value of Output
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				(signal) Normalized Output
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="initial-maximum-output-amplitude" optional="1" type="float">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				The initial maximum output amplitude. The default is 1.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="maximum-output-amplitude" optional="0" type="int" />
			</arglist>
			<digest>
				Converted to <m>float</m>.
			</digest>
			<description>
				Converted to <m>float</m>.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="maximum-output-amplitude" optional="0" type="float" />
			</arglist>
			<digest>
				In right inlet: The maximum output amplitude may be sent as a <m>float</m> instead of a <m>signal</m>.
			</digest>
			<description>
				In right inlet: The maximum output amplitude may be sent as a <m>float</m> instead of a <m>signal</m>. If a signal is connected to the right inlet, a <m>float</m> received in the right inlet is ignored.
			</description>
		</method>
		<method name="reset">
			<arglist>
				<arg name="maximum-input-amplitude" optional="0" type="float" />
			</arglist>
			<digest>
				In left inlet: The word <m>reset</m>, followed by a number, resets the maximum input amplitude to the number.
			</digest>
			<description>
				In left inlet: The word <m>reset</m>, followed by a number, resets the maximum input amplitude to the number. If no number follows <m>reset</m>, or if the number is 0, the maximum input amplitude is set to 0.000001.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				In left inlet: The input signal is normalized -- scaled so that its peak amplitude is equal to a specified maximum.
			</digest>
			<description>
				In left inlet: The input signal is normalized -- scaled so that its peak amplitude is equal to a specified maximum.
				<br />
				<br />
				In right inlet: The maximum output amplitude; an over-all scaling of the output.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="normalize~.png" caption="When precise scaling factor varies or is unknown, normalize~ sets peak amplitude" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="*~" />
		<seealso name="15_delaychapter02" module="msp" type="tutorial" />
	</seealsolist>
	<discussion>
		You can change the maximum input value with the <m>reset</m> message or with a float in the left input. If no argument follows &quot;reset&quot; the new maximum input value (and the initial maximum input value) is 0.000001.
	</discussion>
	<misc name="Output">
		<entry name="signal">
			<description>
				The input signal is scaled by the maximum output amplitude divided by the maximum input amplitude.
			</description>
		</entry>
	</misc>
</c74object>
