<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="butterbp">
  <refmeta>
    <refentrytitle>butterbp</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>butterbp</refname>
    <refpurpose>
      A band-pass Butterworth filter.
      <indexterm id="IndexButterbp"><primary>butterbp</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Implementation of a second-order band-pass Butterworth filter. This opcode can also be written as <link linkend="butbp"><citetitle>butbp</citetitle></link>.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>butterbp</command> asig, kfreq, kband [, iskip]</synopsis>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>iskip</emphasis> (optional, default=0) -- Skip initialization if present and non-zero.
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      These filters are Butterworth second-order IIR filters. They are slightly slower than the original filters in Csound, but they offer an almost flat passband and very good precision and stopband attenuation.
    </para>

    <para>
      <emphasis>asig</emphasis> -- Input signal to be filtered.
    </para>

    <para>
      <emphasis>kfreq</emphasis> -- Cutoff or center frequency for each of the filters.
    </para>

    <para>
      <emphasis>kband</emphasis> -- Bandwidth of the bandpass and bandreject filters.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the butterbp opcode. It uses the files <ulink url="examples/butterbp.orc"><citetitle>butterbp.orc</citetitle></ulink> and <ulink url="examples/butterbp.sco"><citetitle>butterbp.sco</citetitle></ulink>.

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

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

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

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="butterbr"><citetitle>butterbr</citetitle></link>, 
      <link linkend="butterhp"><citetitle>butterhp</citetitle></link>, 
      <link linkend="butterlp"><citetitle>butterlp</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &nameparis;</member>
        <member>MIT, Cambridge</member>
        <member>1995</member>
      </simplelist>
    </para>
  </refsect1>
</refentry>
