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

    <refpurpose>
      Returns the decibel equivalent of the raw amplitude x.
      <indexterm id="IndexDbamp"><primary>dbamp</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Returns the decibel equivalent of the raw amplitude x.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis><command>dbamp</command>(x)  (init-rate or control-rate args only)</synopsis>
  </refsect1>

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

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

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

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

      Its output should include lines like this:
      <screen>
instr 1:  idb = 89.542
      </screen>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="ampdb"><citetitle>ampdb</citetitle></link>, 
      <link linkend="ampdbfs"><citetitle>ampdbfs</citetitle></link>, 
      <link linkend="dbfsamp"><citetitle>dbfsamp</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
