| 1 | |
| 2 | <refentry id="expsega"> |
| 3 | <indexterm id="IndexExpsega"><primary>expsega</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Linear and Exponential Generators</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>expsega</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>expsega</refname> |
| 11 | <refpurpose> |
| 12 | An exponential segment generator operating at a-rate. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | An exponential segment generator operating at a-rate. This unit is almost identical to <link linkend="expseg"><citetitle>expseg</citetitle></link>, but more precise when defining segments with very short durations (i.e., in a percussive attack phase) at audio rate. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>ares <command>expsega</command> ia, idur1, ib [, idur2] [, ic] [...]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para> |
| 31 | <emphasis>ia</emphasis> -- starting value. Zero is illegal. |
| 32 | </para> |
| 33 | |
| 34 | <para> |
| 35 | <emphasis>ib</emphasis>, <emphasis>ic</emphasis>, etc. -- value after <emphasis>idur1</emphasis> seconds, etc. must be non-zero and must agree in sign with <emphasis>ia</emphasis>. |
| 36 | </para> |
| 37 | |
| 38 | <para> |
| 39 | <emphasis>idur1</emphasis> -- duration in seconds of first segment. A zero or negative value will cause all initialization to be skipped. |
| 40 | </para> |
| 41 | |
| 42 | <para> |
| 43 | <emphasis>idur2</emphasis>, <emphasis>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. |
| 44 | </para> |
| 45 | </refsect1> |
| 46 | |
| 47 | <refsect1> |
| 48 | <title>Performance</title> |
| 49 | <para> |
| 50 | This unit generate audio signals whose values can pass through two 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. |
| 51 | </para> |
| 52 | </refsect1> |
| 53 | |
| 54 | <refsect1> |
| 55 | <title>Examples</title> |
| 56 | <para> |
| 57 | Here is an example of the expsega opcode. It uses the file <ulink url="examples/expsega.csd"><citetitle>expsega.csd</citetitle></ulink>. |
| 58 | |
| 59 | <example> |
| 60 | <title>Example of the expsega opcode.</title> |
| 61 | |
| 62 | |
| 63 | |
| 64 | <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> |
| 65 | <xi:include href="examples-xml/expsega.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 66 | </example> |
| 67 | </para> |
| 68 | </refsect1> |
| 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>Author: &namegabriel;</para> |
| 78 | <para>New in Csound 3.57</para> |
| 79 | </refsect1> |
| 80 | </refentry> |