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

    <refpurpose>
      Returns the decibel equivalent of the raw amplitude x, relative to full scale amplitude.
      <indexterm id="IndexDbfsamp"><primary>dbfsamp</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Returns the decibel equivalent of the raw amplitude x, relative to full scale amplitude. Full scale is assumed to be 16 bit. New is Csound version 4.10.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis><command>dbfsamp</command>(x)  (init-rate or control-rate args only)</synopsis>
  </refsect1>

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

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

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

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

      Its output should include lines like this:
      <screen>
instr 1:  idb = -0.767
      </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="dbamp"><citetitle>dbamp</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
