Debian Codegraph @

opcodes/expcurve.xml

raw symbols SCIP
1
2 <refentry id="expcurve">
3 <indexterm id="IndexExpcurve"><primary>expcurve</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Linear and Exponential Generators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>expcurve</refentrytitle>
7 </refmeta>
8
9
10 <refnamediv>
11 <refname>expcurve</refname>
12 <refpurpose>
13 This opcode implements a formula for generating a normalised exponential curve in range 0 - 1. It is based on the Max / MSP work of Eric Singer (c) 1994.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Generates an exponential curve in range 0 to 1 of arbitrary steepness.
21 Steepness index less than 1.0 would result in Not-a-Number
22 errors and cause unstable behavior so is treated as if it were 1.
23 </para>
24
25 <para>
26 The formula used to calculate the curve is:
27 <programlisting>
28 (exp(x * log(y))-1) / (y-1)
29 </programlisting>
30 where x is equal to <emphasis>kindex</emphasis> and y is equal to <emphasis>ksteepness</emphasis>.
31 </para>
32
33 </refsect1>
34
35 <refsect1>
36 <title>Syntax</title>
37 <synopsis>kout <command>expcurve</command> kindex, ksteepness</synopsis>
38 </refsect1>
39
40 <refsect1>
41 <title>Performance</title>
42 <para>
43 <emphasis>kindex</emphasis> -- Index value. Expected range 0 to 1.
44 </para>
45 <para>
46 <emphasis>ksteepness</emphasis> -- Steepness of the generated curve. Values
47 closer to 1.0 result in a straighter line while larger values steepen the
48 curve.
49 </para>
50 <para>
51 <emphasis>kout</emphasis> -- Scaled output.
52 </para>
53 </refsect1>
54
55 <refsect1>
56 <title>Examples</title>
57 <para>
58 Here is an example of the expcurve opcode. It uses the file <ulink url="examples/expcurve.csd"><citetitle>expcurve.csd</citetitle></ulink>.
59
60 <example>
61 <title>Example of the expcurve opcode.</title>
62
63 <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>
64 <xi:include href="examples-xml/expcurve.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
65 </example>
66 </para>
67 </refsect1>
68
69
70 <refsect1>
71 <title>See also</title>
72 <para><link linkend="SiggenLineexp"><citetitle>Linear and Exponential Generators</citetitle></link></para>
73 </refsect1>
74
75 <refsect1>
76 <title>Credits</title>
77 <para>
78 <simplelist>
79 <member>Author: David Akbari</member>
80 <member>October</member>
81 <member>2006</member>
82 <member>Range check introduced in 6.16 by &namejohn;</member>
83 </simplelist>
84 </para>
85 </refsect1>
86 </refentry>