<?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="atodb" module="max" category="Math">
	<digest>
		Convert linear amplitude to decibels
	</digest>
	<description>
		Converts any given linear amplitude value to its corresponding decibel value.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Math
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="float">
			<digest>
				(float) Amplitude Scalar
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="float">
			<digest>
				(float) Amplitude Scalar
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="float">
			<digest>
				(float) Gain/Attenuation dB
			</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>
				Repeat the most recent calculation
			</digest>
			<description>
				The most recently calculated decibel value is sent out the outlet.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="linear-amplitude" optional="0" type="int" />
			</arglist>
			<digest>
				Convert linear to decibel amplitude
			</digest>
			<description>
				A linear amplitude value. The corresponding gain/attenuation in decibels is sent out the outlet.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="linear-amplitude" optional="0" type="float" />
			</arglist>
			<digest>
				Convert linear to decibel amplitude
			</digest>
			<description>
				A linear amplitude value. The corresponding gain/attenuation in decibels is sent out the outlet.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="amplitude-list" optional="0" type="list" />
			</arglist>
			<digest>
				Convert a list of linear amplitude values
			</digest>
			<description>
				A list of linear amplitude values. Corresponding gain/attenuation values in decibels for each list item are sent out the outlet.
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="linear-amplitude" optional="0" type="float" />
			</arglist>
			<digest>
				Set amplitude value with no output
			</digest>
			<description>
				The message <m>set</m> followed by a linear amplitude value will set the next value to be calculated into decibels without sending anything out the outlet.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="atodb.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="expr" />
		<seealso name="atodb~" />
		<seealso name="dbtoa" />
		<seealso name="dbtoa~" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				The gain or attenuation from unity gain, expressed in decibels.
			</description>
		</entry>
		<entry name="float">
			<description>
				The gain or attenuation from unity gain, expressed in decibels.
			</description>
		</entry>
	</misc>
</c74object>
