Debian Codegraph @

opcodes/gtadsr.xml

raw symbols SCIP
1 
2 <refentry id="gtadsr">
3 <indexterm id="IndexGtadsr"><primary>gtadsr</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Envelope Generators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>gtadsr</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>gtadsr</refname>
11 <refpurpose>
12 A gated linear attack-decay-sustain with exponential release.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 This opcode can work either as a signal generator or as a signal
20 processor. It is controlled by a gate k-rate signal (0 or > 0) which
21 switches the envelope attack-decay-sustain phase on/off.
22 With gate > 0 (high), the envelope cycles through the attack and decay phases,
23 and is sustained at the sustain level. Whenever gate is 0 (low), the
24 envelope enters the release phase, decaying exponentially to 0.
25 The attack and decay times are fixed with gate > 0, but can be
26 changed once the gate is zero.
27 </para>
28 </refsect1>
29
30 <refsect1>
31 <title>Syntax</title>
32 <synopsis>ares <command>gtadsr</command> asig, katt, kdec, ksus,
33 krel, kgate</synopsis>
34
35 <synopsis>xres <command>gtadsr</command> kamp, katt, kdec, ksus,
36 krel, kgate</synopsis>
37 </refsect1>
38
39 <refsect1>
40 <title>Performance</title>
41
42 <para>
43 <emphasis>x/ares</emphasis> -- output signal (k or a-rate)
44 </para>
45
46 <para>
47 <emphasis>asig</emphasis> -- input signal (envelope as an amplitude processor)
48 </para>
49
50 <para>
51 <emphasis>kamp</emphasis> -- maximum amplitude (envelope as a
52 signal generator)
53 </para>
54
55 <para>
56 <emphasis>katt</emphasis> -- duration of attack phase
57 </para>
58
59 <para>
60 <emphasis>kdec</emphasis> -- duration of decay
61 </para>
62
63 <para>
64 <emphasis>ksus</emphasis> -- level for sustain phase (in the
65 range 0 - 1)
66 </para>
67
68 <para>
69 <emphasis>krel</emphasis> -- duration of release phase
70 </para>
71
72 <para>
73 <emphasis>kgate</emphasis> -- gate signal (0 = low, > 0 high).
74 </para>
75
76 <!-- <para> -->
77 <!-- The envelope may be described as: -->
78 <!-- <mediaobject> -->
79 <!-- <imageobject> -->
80 <!-- <imagedata fileref="images/gtadsr.png" format="PNG"/> -->
81 <!-- </imageobject> -->
82
83 <!-- <textobject> -->
84 <!-- <phrase>Picture of an GTADSR envelope.</phrase> -->
85 <!-- </textobject> -->
86
87 <!-- <caption> -->
88 <!-- <para>Picture of an GTADSR envelope.</para> -->
89 <!-- </caption> -->
90 <!-- </mediaobject> -->
91 <!-- </para> -->
92
93 <para>
94 The length of the sustain is calculated from the length of the note. This means <emphasis>gtadsr</emphasis> is not suitable for use with MIDI events.
95 </para>
96 </refsect1>
97
98 <refsect1>
99 <title>Examples</title>
100 <para>
101 Here is an example of the gtadsr opcode. It uses the file <ulink url="examples/gtadsr.csd"><citetitle>gtadsr.csd</citetitle></ulink>.
102
103 <example>
104 <title>Example of the gtadsr opcode.</title>
105 <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>
106 <xi:include href="examples-xml/gtadsr.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
107 </example>
108 </para>
109 </refsect1>
110
111 <refsect1>
112 <title>See Also</title>
113 <para>
114 <link linkend="SiggenEnvelope"><citetitle>Envelope Generators</citetitle></link>
115 </para>
116 </refsect1>
117
118 <refsect1>
119 <title>Credits</title>
120 <para>Author: Victor Lazzarini;</para>
121 <para>New in version 6.17</para>
122 </refsect1>
123 </refentry>