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

  <refnamediv>
    <refname>db</refname>
    <refpurpose>
      Returns the amplitude equivalent for a given decibel amount.
      <indexterm id="IndexDb"><primary>db</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Returns the amplitude equivalent for a given decibel amount. This opcode is the same as <link linkend="ampdb"><citetitle>db</citetitle></link>.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>db</command>(x)</synopsis>

    <para>
      This function works at a-rate, i-rate, and k-rate.
    </para>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>x</emphasis> -- a value expressed in decibels.
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      Returns the amplitude for a given decibel amount.
    </para>
  </refsect1>

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

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

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

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

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

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="ampdb"><citetitle>ampdb</citetitle></link>,
      <link linkend="cent"><citetitle>cent</citetitle></link>,
      <link linkend="octave"><citetitle>octave</citetitle></link>,
      <link linkend="semitone"><citetitle>semitone</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Example written by &namekevin;.</para>
    <para>New in version 4.16</para>
  </refsect1>
</refentry>
