<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="ampdb">
  <refmeta>
    <refentrytitle>ampdb</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>ampdb</refname>

    <refpurpose>
      Returns the amplitude equivalent of the decibel value x.
      <indexterm id="IndexAmpdb"><primary>ampdb</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Returns the amplitude equivalent of the decibel value x. Thus:
      <itemizedlist>
        <listitem><para>60 dB = 1000</para></listitem>
        <listitem><para>66 dB = 1995.262</para></listitem>
        <listitem><para>72 dB = 3891.07</para></listitem>
        <listitem><para>78 dB = 7943.279</para></listitem>
        <listitem><para>84 dB = 15848.926</para></listitem>
        <listitem><para>90 dB = 31622.764</para></listitem>
      </itemizedlist>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis><command>ampdb</command>(x)  (no rate restriction)</synopsis>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the ampdb opcode. It uses the files <ulink url="examples/ampdb.orc"><citetitle>ampdb.orc</citetitle></ulink> and <ulink url="examples/ampdb.sco"><citetitle>ampdb.sco</citetitle></ulink>.

      <example>
        <title>Example of the ampdb opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/ampdb.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/ampdb.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>

      Its output should include lines like:
      <screen>
instr 1:  iamp = 31622.764
      </screen>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="ampdbfs"><citetitle>ampdbfs</citetitle></link>,
      <link linkend="db"><citetitle>db</citetitle></link>,
      <link linkend="dbamp"><citetitle>dbamp</citetitle></link>,
      <link linkend="dbfsamp"><citetitle>dbfsamp</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
