Debian Codegraph @

opcodes/expseg.xml

raw symbols SCIP
1
2 <refentry id="expseg">
3 <indexterm id="IndexExpseg"><primary>expseg</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Linear and Exponential Generators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>expseg</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>expseg</refname>
11 <refpurpose>
12 Trace a series of exponential segments between specified points.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Trace a series of exponential segments between specified points.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ares <command>expseg</command> ia, idur1, ib [, idur2] [, ic] [...]</synopsis>
26
27 <synopsis>kres <command>expseg</command> ia, idur1, ib [, idur2] [, ic] [...]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>ia</emphasis> -- starting value. Zero is illegal for exponentials.
34 </para>
35
36 <para>
37 <emphasis>ib, ic</emphasis>, etc. -- value after <emphasis>dur1</emphasis> seconds, etc. For exponentials, must be non-zero and must agree in sign with <emphasis>ia</emphasis>.
38 </para>
39
40 <para>
41 <emphasis>idur1</emphasis> -- duration in seconds of first segment. A zero or negative value will cause all initialization to be skipped.
42 </para>
43
44 <para>
45 <emphasis>idur2, idur3</emphasis>, etc. -- duration in seconds of subsequent segments. A zero or negative value will terminate the initialization process with the preceding point, permitting the last-defined line or curve to be continued indefinitely in performance. The default is zero.
46 </para>
47 </refsect1>
48
49 <refsect1>
50 <title>Performance</title>
51 <para>
52 These units generate control or audio signals whose values can pass through 2 or more specified points. The sum of <emphasis>dur</emphasis> values may or may not equal the instrument's performance time: a shorter performance will truncate the specified pattern, while a longer one will cause the last-defined segment to continue on in the same direction.
53 </para>
54
55 <para>
56 Note that the <emphasis>expseg</emphasis> opcode does not operate correctly at audio rate when segments are shorter than a k-period. Try the <link linkend="expsega"><citetitle>expsega</citetitle></link> opcode instead.
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>Examples</title>
62 <para>
63 Here is an example of the expseg opcode. It uses the file <ulink url="examples/expseg.csd"><citetitle>expseg.csd</citetitle></ulink>.
64
65 <example>
66 <title>Example of the expseg opcode.</title>
67
68
69
70 <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>
71 <xi:include href="examples-xml/expseg.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
72 </example>
73 </para>
74 </refsect1>
75
76 <refsect1>
77 <title>See also</title>
78 <para><link linkend="SiggenLineexp"><citetitle>Linear and Exponential Generators</citetitle></link></para>
79 </refsect1>
80
81 <refsect1>
82 <title>Credits</title>
83 <para>Author: &namegabriel;</para>
84 <para>New in Csound 3.57</para>
85 </refsect1>
86 </refentry>