Debian Codegraph @

opcodes/envlpx.xml

raw symbols SCIP
1
2 <refentry id="envlpx">
3 <indexterm id="IndexEnvlpx"><primary>envlpx</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Envelope Generators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>envlpx</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>envlpx</refname>
11 <refpurpose>
12 Applies an envelope consisting of 3 segments.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 <emphasis>envlpx</emphasis> -- apply an envelope consisting of 3 segments:
20 <orderedlist>
21 <listitem>
22 <para>stored function rise shape</para>
23 </listitem>
24
25 <listitem>
26 <para>modified exponential pseudo steady state</para>
27 </listitem>
28
29 <listitem>
30 <para>exponential decay</para>
31 </listitem>
32 </orderedlist>
33 </para>
34 </refsect1>
35
36 <refsect1>
37 <title>Syntax</title>
38 <synopsis>ares <command>envlpx</command> xamp, irise, idur, idec, ifn, iatss, iatdec [, ixmod]</synopsis>
39
40 <synopsis>kres <command>envlpx</command> kamp, irise, idur, idec, ifn, iatss, iatdec [, ixmod]</synopsis>
41 </refsect1>
42
43 <refsect1>
44 <title>Initialization</title>
45 <para>
46 <emphasis>irise</emphasis> -- rise time in seconds. A zero or negative value signifies no rise modification.
47 </para>
48
49 <para>
50 <emphasis>idur</emphasis> -- overall duration in seconds. A zero or negative value will cause initialization to be skipped.
51 </para>
52
53 <para>
54 <emphasis>idec</emphasis> -- decay time in seconds. Zero means no decay. An <emphasis>idec</emphasis> &gt; <emphasis>idur</emphasis> will cause a truncated decay.
55 </para>
56
57 <para>
58 <emphasis>ifn</emphasis> -- function table number of stored rise shape with extended guard point.
59 </para>
60
61 <para>
62 <emphasis>iatss</emphasis> -- the ratio of the final value
63 of the pseudo-steady-state period to the value at its beginning
64 (i.e the attenuation from the end of the rise segment
65 to the start of the decay).
66 A ratio greater than 1 causes an exponential growth and
67 a ratio less than 1 creates an exponential decay. A ratio of 1
68 will maintain a true steady state at the last rise value.
69 Note that this attenuation is not at a fixed rate (as in a piano),
70 but is sensitive to a note's duration.
71 However, if <emphasis>iatss</emphasis> is negative (or
72 if steady state &lt; 4 k-periods) a fixed attenuation rate of
73 <emphasis>abs</emphasis>(<emphasis>iatss</emphasis>) per second
74 will be used. 0 is illegal.
75 </para>
76
77 <para>
78 <emphasis>iatdec</emphasis> -- the ratio of the value
79 at the end of the decay period to the value at its beginning (the end
80 of the steady-state segment) . It must be positive and is normally of the
81 order of .01. A large or excessively small value is apt to produce a cutoff
82 which is audible. A zero or negative value is illegal.
83 </para>
84
85 <para>
86 <emphasis>ixmod</emphasis> (optional, between +- .9 or so) --
87 exponential curve modifier, influencing the steepness of the
88 exponential trajectory during the steady state. Values less than
89 zero will cause an accelerated growth or decay towards the
90 target (e.g. <emphasis>subito piano</emphasis>). Values greater
91 than zero will cause a retarded growth or decay. The default
92 value is zero (unmodified exponential).
93 </para>
94 </refsect1>
95
96 <refsect1>
97 <title>Performance</title>
98 <para>
99 <emphasis>kamp, xamp</emphasis> -- input amplitude signal.
100 </para>
101
102 <para>
103 Rise modifications are applied for the first
104 <emphasis>irise</emphasis> seconds, and decay from time
105 <emphasis>idur - idec</emphasis>. If these periods are separated
106 in time there will be a steady state during which
107 <emphasis>amp</emphasis> will be modified by the first
108 exponential pattern.
109 <!-- If rise and decay periods overlap then both -->
110 <!-- modifications will be in effect for that time. -->
111 If the overall duration <emphasis>idur</emphasis> is exceeded in performance,
112 the final decay will continue on in the same direction, tending
113 asymptotically to zero.
114 </para>
115 </refsect1>
116
117 <refsect1>
118 <title>Examples</title>
119 <para>
120 Here is an example of the envlpx opcode. It uses the file <ulink url="examples/envlpx.csd"><citetitle>envlpx.csd</citetitle></ulink>.
121
122 <example>
123 <title>Example of the envlpx opcode.</title>
124 <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>
125 <xi:include href="examples-xml/envlpx.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
126 </example>
127 </para>
128 </refsect1>
129
130 <refsect1>
131 <title>See Also</title>
132 <para>
133 <link linkend="SiggenEnvelope"><citetitle>Envelope Generators</citetitle></link>
134 </para>
135 </refsect1>
136
137 <refsect1>
138 <title>Credits</title>
139 <para>Thanks goes to &nameluis; for pointing out a mistake with <emphasis>iatss</emphasis>.</para>
140 </refsect1>
141 </refentry>