| 1 | |
| 2 | <refentry id="follow"> |
| 3 | <indexterm id="IndexFollow"><primary>follow</primary></indexterm> |
| 4 | <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>follow</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>follow</refname> |
| 13 | |
| 14 | <refpurpose> |
| 15 | Envelope follower unit generator. |
| 16 | </refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | <refsect1> |
| 20 | <title>Description</title> |
| 21 | <para> |
| 22 | Envelope follower unit generator. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>ares <command>follow</command> asig, idt</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis>idt</emphasis> -- This is the period, in seconds, that the average amplitude of <emphasis>asig</emphasis> is reported. If the frequency of <emphasis>asig</emphasis> is low then <emphasis>idt</emphasis> must be large (more than half the period of <emphasis>asig</emphasis> ) |
| 35 | </para> |
| 36 | </refsect1> |
| 37 | |
| 38 | <refsect1> |
| 39 | <title>Performance</title> |
| 40 | <para> |
| 41 | <emphasis>asig</emphasis> -- This is the signal from which to extract the envelope. |
| 42 | </para> |
| 43 | </refsect1> |
| 44 | |
| 45 | <refsect1> |
| 46 | <title>Examples</title> |
| 47 | <para> |
| 48 | Here is an example of the follow opcode. It uses the file <ulink url="examples/follow.csd"><citetitle>follow.csd</citetitle></ulink>, and <ulink url="examples/drumsMlp.wav"><citetitle>drumsMlp.wav</citetitle></ulink>. |
| 49 | <example> |
| 50 | <title>Example of the follow opcode.</title> |
| 51 | <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> |
| 52 | <xi:include href="examples-xml/follow.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 53 | </example> |
| 54 | </para> |
| 55 | |
| 56 | <para> |
| 57 | To avoid zipper noise, by discontinuities produced from complex envelope tracking, a lowpass filter could be used, to smooth the estimated envelope. |
| 58 | </para> |
| 59 | </refsect1> |
| 60 | |
| 61 | <refsect1> |
| 62 | <title>See also</title> |
| 63 | <para><link linkend="ControlSensing"><citetitle>Sensing and Control: Envelope followers</citetitle></link></para> |
| 64 | </refsect1> |
| 65 | |
| 66 | <refsect1> |
| 67 | <title>Credits</title> |
| 68 | <para> |
| 69 | <simplelist> |
| 70 | <member>Author: &nameparis;</member> |
| 71 | <member>MIT, Cambridge</member> |
| 72 | <member>1995</member> |
| 73 | </simplelist> |
| 74 | </para> |
| 75 | </refsect1> |
| 76 | </refentry> |