Debian Codegraph @

opcodes/transeg.xml

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