Debian Codegraph @

opcodes/follow2.xml

raw symbols SCIP
1
2 <refentry id="follow2">
3 <indexterm id="IndexFollow2"><primary>follow2</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>follow2</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>follow2</refname>
13
14 <refpurpose>
15 Another controllable envelope extractor.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 A controllable envelope extractor using the algorithm attributed to Jean-Marc Jot.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>ares <command>follow2</command> asig, katt, krel</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Performance</title>
33 <para>
34 <emphasis>asig</emphasis> -- the input signal whose envelope is followed
35 </para>
36 <para>
37 <emphasis>katt</emphasis> -- the attack rate (60dB attack time in seconds)
38 </para>
39 <para>
40 <emphasis>krel</emphasis> -- the decay rate (60dB decay time in seconds)
41 </para>
42 <para>
43 The output tracks the amplitude envelope of the input signal. The rate at which the output grows to follow the signal is controlled by the <emphasis>katt</emphasis>, and the rate at which it decreases in response to a lower amplitude, is controlled by the <emphasis>krel</emphasis>. This gives a smoother envelope than <emphasis>follow</emphasis>.
44 </para>
45 </refsect1>
46
47 <refsect1>
48 <title>Examples</title>
49 <para>
50 Here is an example of the follow2 opcode. It uses the file <ulink url="examples/follow2.csd"><citetitle>follow2.csd</citetitle></ulink>, and <ulink url="examples/drumsMlp.wav"><citetitle>drumsMlp.wav</citetitle></ulink>.
51 <example>
52 <title>Example of the follow2 opcode.</title>
53 <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>
54 <xi:include href="examples-xml/follow2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
55 </example>
56 </para>
57 </refsect1>
58
59 <refsect1>
60 <title>See also</title>
61 <para><link linkend="ControlSensing"><citetitle>Sensing and Control: Envelope followers</citetitle></link></para>
62 </refsect1>
63
64 <refsect1>
65 <title>Credits</title>
66 <para>
67 <simplelist>
68 <member>Author: &namejohn;</member>
69 <member>The algorithm for the <emphasis>follow2</emphasis> is attributed to Jean-Marc Jot.</member>
70 <member>University of Bath, Codemist Ltd.</member>
71 <member>Bath, UK</member>
72 <member>February 2000</member>
73 </simplelist>
74 </para>
75
76 <para>New in Csound version 4.03</para>
77 <para>Added notes by &namerasmus; on September 2002.</para>
78 </refsect1>
79 </refentry>