| 1 | |
| 2 | <refentry id="flanger"> |
| 3 | <indexterm id="IndexFlanger"><primary>flanger</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Special Effects</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>flanger</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>flanger</refname> |
| 11 | <refpurpose> |
| 12 | A user controlled flanger. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | A user controlled flanger. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>ares <command>flanger</command> asig, adel, kfeedback [, imaxd]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para> |
| 31 | <emphasis>imaxd</emphasis>(optional) -- maximum delay in seconds (needed for inital memory allocation) |
| 32 | </para> |
| 33 | </refsect1> |
| 34 | |
| 35 | <refsect1> |
| 36 | <title>Performance</title> |
| 37 | <para> |
| 38 | <emphasis>asig</emphasis> -- input signal |
| 39 | </para> |
| 40 | |
| 41 | <para> |
| 42 | <emphasis>adel</emphasis> -- delay in seconds |
| 43 | </para> |
| 44 | |
| 45 | <para> |
| 46 | <emphasis>kfeedback</emphasis> -- feedback amount (in normal tasks this should not exceed 1, even if bigger values are allowed) |
| 47 | </para> |
| 48 | |
| 49 | <para> |
| 50 | This unit is useful for generating choruses and flangers. The delay must be varied at a-rate, for example by connecting <emphasis>adel</emphasis> to an oscillator output. 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 or the requirement that the delay be varied at a-rate. |
| 51 | </para> |
| 52 | </refsect1> |
| 53 | |
| 54 | <refsect1> |
| 55 | <title>Examples</title> |
| 56 | <para> |
| 57 | Here is an example of the flanger opcode. It uses the file <ulink url="examples/flanger.csd"><citetitle>flanger.csd</citetitle></ulink>. |
| 58 | <example> |
| 59 | <title>Example of the flanger opcode.</title> |
| 60 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 61 | <xi:include href="examples-xml/flanger.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 62 | </example> |
| 63 | </para> |
| 64 | </refsect1> |
| 65 | |
| 66 | <refsect1> |
| 67 | <title>See also</title> |
| 68 | <para><link linkend="SigmodSpeciale"><citetitle>Special Effects</citetitle></link></para> |
| 69 | <para> More information on flanging on Wikipedia: <ulink url="http://en.wikipedia.org/wiki/Flanger"><citetitle>http://en.wikipedia.org/wiki/Flanger</citetitle></ulink></para> |
| 70 | </refsect1> |
| 71 | |
| 72 | <refsect1> |
| 73 | <title>Credits</title> |
| 74 | <para> |
| 75 | <simplelist> |
| 76 | <member>Author: &namegabriel;</member> |
| 77 | <member>Italy</member> |
| 78 | </simplelist> |
| 79 | </para> |
| 80 | <para>New in Csound version 3.49</para> |
| 81 | </refsect1> |
| 82 | </refentry> |