| 1 |
|
| 2 |
<refentry id="sc_lag"> |
| 3 |
<indexterm id="IndexSc_lag"><primary>sc_lag</primary></indexterm> |
| 4 |
|
| 5 |
<refentryinfo><title>Signal Modifiers:Standard Filters:Control</title></refentryinfo> |
| 6 |
<refmeta> |
| 7 |
<refentrytitle>sc_lag</refentrytitle> |
| 8 |
</refmeta> |
| 9 |
|
| 10 |
<refnamediv> |
| 11 |
<refname>sc_lag</refname> |
| 12 |
<refpurpose> |
| 13 |
Exponential Lag (DEPRECATED) |
| 14 |
</refpurpose> |
| 15 |
</refnamediv> |
| 16 |
|
| 17 |
<refsect1> |
| 18 |
<title>Description</title> |
| 19 |
<para>Plugin opcode in scugens.</para> |
| 20 |
<para> |
| 21 |
Exponential lag with 60dB lag time. DEPRECATED (renamed as <link |
| 22 |
linkend="lag"><citetitle>lag</citetitle></link>) |
| 23 |
</para> |
| 24 |
</refsect1> |
| 25 |
|
| 26 |
<refsect1> |
| 27 |
<title>Syntax</title> |
| 28 |
|
| 29 |
<synopsis>aout <command>sc_lag</command> ain, klagtime [, initialvalue]</synopsis> |
| 30 |
|
| 31 |
<synopsis>kout <command>sc_lag</command> kin, klagtime [, initialvalue]</synopsis> |
| 32 |
|
| 33 |
</refsect1> |
| 34 |
|
| 35 |
<refsect1> |
| 36 |
<title>Initialization</title> |
| 37 |
<para> |
| 38 |
<emphasis>initialvalue</emphasis> If given, sets the internal state. It defaults to the |
| 39 |
first value passed |
| 40 |
</para> |
| 41 |
</refsect1> |
| 42 |
|
| 43 |
<refsect1> |
| 44 |
<title>Performance</title> |
| 45 |
|
| 46 |
<para> |
| 47 |
<emphasis>ain</emphasis> -- input signal |
| 48 |
</para> |
| 49 |
<para> |
| 50 |
<emphasis>klagtime</emphasis> -- 60 dB lag time in seconds. |
| 51 |
</para> |
| 52 |
<para> |
| 53 |
<emphasis>kladown</emphasis> -- 60 dB lag time in seconds for the downgoing signal. |
| 54 |
</para> |
| 55 |
|
| 56 |
<para> |
| 57 |
This is essentially the same as one pole except that instead of |
| 58 |
supplying the coefficient directly, it is calculated from a 60 |
| 59 |
dB lag time. This is the time required for the filter to |
| 60 |
converge to within 0.01% of a value. This is useful for |
| 61 |
smoothing out control signals. |
| 62 |
</para> |
| 63 |
</refsect1> |
| 64 |
<refsect1> |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
<title>Examples</title> |
| 69 |
<para> |
| 70 |
Here is an example of the sc_lag opcode. It uses the file <ulink url="examples/sc_lag.csd"><citetitle>sc_lag.csd</citetitle></ulink>. |
| 71 |
<example> |
| 72 |
<title>Example of the sc_lag opcode.</title> |
| 73 |
<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> |
| 74 |
<xi:include href="examples-xml/sc_lag.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 75 |
</example> |
| 76 |
</para> |
| 77 |
</refsect1> |
| 78 |
|
| 79 |
<refsect1> |
| 80 |
<title>See also</title> |
| 81 |
<para><link linkend="SigmodStandard"><citetitle>Standard Filters: Control signal filters</citetitle></link></para> |
| 82 |
</refsect1> |
| 83 |
|
| 84 |
<refsect1> |
| 85 |
|
| 86 |
<title>Credits</title> |
| 87 |
<para>By: &nameeduardo; 2017</para> |
| 88 |
</refsect1> |
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
</refentry> |