<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="flanger">
  <refmeta>
    <refentrytitle>flanger</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>flanger</refname>
    <refpurpose>
      A user controlled flanger.
      <indexterm id="IndexFlanger"><primary>flanger</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      A user controlled flanger.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>flanger</command> asig, adel, kfeedback [, imaxd]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>imaxd</emphasis>(optional) -- maximum delay in seconds (needed for inital memory allocation)
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>asig</emphasis> -- input signal
    </para>

    <para>
      <emphasis>adel</emphasis> -- delay in seconds
    </para>

    <para>
      <emphasis>kfeedback</emphasis> -- feedback amount (in normal tasks this should not exceed 1, even if bigger values are allowed)
    </para>

    <para>
      This unit is useful for generating choruses and flangers. The delay must be varied at a-rate connecting <emphasis>adel</emphasis> to an oscillator output. Also the feedback can vary at k-rate.  This opcode is implemented to allow <emphasis>kr</emphasis> different than <emphasis>sr</emphasis> (else delay could not be lower than <emphasis>ksmps</emphasis>) enhancing realtime performance. This unit is very similar to <link linkend="wguide1"><citetitle>wguide1</citetitle></link>, the only difference is <emphasis>flanger</emphasis> does not have the lowpass filter.
    </para>
  </refsect1>

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

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

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

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/flanger.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namegabriel;</member>
        <member>Italy</member>
      </simplelist>
    </para>
    <para>Example written by &namekevin;.</para>

    <para>New in Csound version 3.49</para>
  </refsect1>
</refentry>
