Debian Codegraph @

opcodes/line.xml

raw symbols SCIP
1
2 <refentry id="line">
3 <indexterm id="IndexLine"><primary>line</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Linear and Exponential Generators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>line</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>line</refname>
11 <refpurpose>
12 Trace a straight line between specified points.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Trace a straight line between specified points.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ares <command>line</command> ia, idur, ib</synopsis>
26
27 <synopsis>kres <command>line</command> ia, idur, ib</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>ia</emphasis> -- starting value.
34 </para>
35
36 <para>
37 <emphasis>ib</emphasis> -- value after <emphasis>idur</emphasis> seconds.
38 </para>
39
40 <para>
41 <emphasis>idur</emphasis> -- duration in seconds of segment. A zero or negative value will cause all initialization to be skipped.
42 </para>
43 </refsect1>
44
45 <refsect1>
46 <title>Performance</title>
47 <para>
48 <emphasis>line</emphasis> generates control or audio signals whose values move linearly from an initial value to a final one.
49 </para>
50 <note>
51 <para>
52 A common error with this opcode is to assume that the value of
53 <emphasis>ib</emphasis> is held after the time
54 <emphasis>idur1</emphasis>. <emphasis>line</emphasis> does not
55 automatically end or stop at the end of the duration given. If your
56 note length is longer than <emphasis>idur</emphasis> seconds,
57 <emphasis>kres</emphasis> (or <emphasis>ares</emphasis>) will not come
58 to rest at <emphasis>ib</emphasis>, but will instead continue to rise
59 or fall with the same rate. If a rise (or fall) and then hold is
60 required that the <emphasis>linseg</emphasis> opcode should be
61 considered instead.
62 </para>
63 </note>
64 </refsect1>
65
66 <refsect1>
67 <title>Examples</title>
68 <para>
69 Here is an example of the line opcode. It uses the file <ulink url="examples/line.csd"><citetitle>line.csd</citetitle></ulink>.
70
71 <example>
72 <title>Example of the line opcode.</title>
73 <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>
74 <xi:include href="examples-xml/line.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
75 </example>
76 </para>
77 </refsect1>
78
79 <refsect1>
80 <title>See also</title>
81 <para><link linkend="SiggenLineexp"><citetitle>Linear and Exponential Generators</citetitle></link></para>
82 </refsect1>
83 </refentry>