Debian Codegraph @

opcodes/transegb.xml

raw symbols SCIP
1
2 <refentry id="transegb">
3 <indexterm id="IndexTransegb"><primary>transegb</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Linear and Exponential Generators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>transegb</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>transegb</refname>
11 <refpurpose>
12 Constructs a user-definable envelope in absolute time.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Constructs a user-definable envelope in absolute time.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ares <command>transegb</command> ia, itim, itype, ib [, itim2] [, itype] [, ic] ...</synopsis>
26 <synopsis>kres <command>transegb</command> ia, itim, itype, ib [, itim2] [, itype] [, ic] ...</synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Initialization</title>
31 <para>
32 <emphasis>ia</emphasis> -- starting value.
33 </para>
34
35 <para>
36 <emphasis>ib, ic,</emphasis> etc. -- value after <emphasis>itim</emphasis> seconds.
37 </para>
38
39 <para>
40 <emphasis>itim</emphasis> -- time in seconds of end of first segment.
41 </para>
42
43 <para>
44 <emphasis>itim2,... itimx</emphasis> etc. -- time in seconds at
45 the end of the segment.
46 </para>
47
48 <para>
49 <emphasis>itype, itype2,</emphasis> etc. -- if 0, a straight line is produced. If non-zero, then <emphasis>transegb</emphasis> creates the following curve, for <emphasis>n</emphasis> steps:
50
51 <literallayout>
52 ibeg + (ivalue - ibeg) * (1 - exp( i*itype/(n-1) )) / (1 - exp(itype))
53 </literallayout>
54 </para>
55 </refsect1>
56
57 <refsect1>
58 <title>Performance</title>
59 <para>
60 If <emphasis>itype</emphasis> &gt; 0, there is a slowly rising (concave) or slowly decaying
61 (convex) curve, while if <emphasis>itype</emphasis> &lt; 0, the curve is fast rising (convex) or
62 fast decaying (concave). See also <link linkend="GEN16"><citetitle>GEN16</citetitle></link>.
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>Examples</title>
68 <para>
69 Here is an example of the transegb opcode. It uses the file <ulink url="examples/transegb.csd"><citetitle>transegb.csd</citetitle></ulink>. The example produces the following output:
70 <mediaobject>
71 <imageobject>
72 <imagedata fileref="images/transegb.png" format="PNG"/>
73 </imageobject>
74 <textobject>
75 <phrase>Output of the transegb example.</phrase>
76 </textobject>
77 <caption>
78 <para>Output of the transegb example.</para>
79 </caption>
80 </mediaobject>
81 <example>
82 <title>Example of the transegb opcode.</title>
83 <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>
84 <xi:include href="examples-xml/transegb.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
85 </example>
86 </para>
87 </refsect1>
88
89 <refsect1>
90 <title>See also</title>
91 <para><link linkend="SiggenLineexp"><citetitle>Linear and Exponential Generators</citetitle></link></para>
92 </refsect1>
93
94 <refsect1>
95 <title>Credits</title>
96 <para>
97 <simplelist>
98 <member>Author: &namejohn;</member>
99 <member>University of Bath, Codemist. Ltd.</member>
100 <member>Bath, UK</member>
101 <member>June 2011</member>
102 </simplelist>
103 </para>
104
105 <para>New in Csound version 5.14</para>
106 </refsect1>
107 </refentry>