| 1 | |
| 2 | <refentry id="expsegb"> |
| 3 | <indexterm id="IndexExpsegb"><primary>expsegb</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Linear and Exponential Generators</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>expsegb</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>expsegb</refname> |
| 13 | <refpurpose> |
| 14 | Trace a series of exponential segments between specified |
| 15 | absolute points. |
| 16 | </refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | <refsect1> |
| 20 | <title>Description</title> |
| 21 | <para> |
| 22 | Trace a series of exponential segments between specified |
| 23 | absolute points. |
| 24 | </para> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Syntax</title> |
| 29 | <synopsis>ares <command>expsegb</command> ia, itim1, ib [, itim2] [, ic] [...]</synopsis> |
| 30 | |
| 31 | <synopsis>kres <command>expsegb</command> ia, itim1, ib [, itim2] [, ic] [...]</synopsis> |
| 32 | </refsect1> |
| 33 | |
| 34 | <refsect1> |
| 35 | <title>Initialization</title> |
| 36 | <para> |
| 37 | <emphasis>ia</emphasis> -- starting value. Zero is illegal for exponentials. |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | <emphasis>ib, ic</emphasis>, etc. -- value at <emphasis>tim1</emphasis> seconds, etc. For exponentials, must be non-zero and must agree in sign with <emphasis>ia</emphasis>. |
| 42 | </para> |
| 43 | |
| 44 | <para> |
| 45 | <emphasis>itim1</emphasis> -- time in seconds of end of first segment. |
| 46 | </para> |
| 47 | |
| 48 | <para> |
| 49 | <emphasis>itim2, itim3</emphasis>, etc. -- time in seconds of |
| 50 | subsequent ends of segments. |
| 51 | </para> |
| 52 | </refsect1> |
| 53 | |
| 54 | <refsect1> |
| 55 | <title>Performance</title> |
| 56 | <para> |
| 57 | These units generate control or audio signals whose values can pass through 2 or more specified points. The last <emphasis>tim</emphasis> value 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. |
| 58 | </para> |
| 59 | |
| 60 | <para> |
| 61 | Note that the <emphasis>expsegb</emphasis> opcode does not operate correctly at audio rate when segments are shorter than a k-period. Try the <link linkend="expsegba"><citetitle>expsegba</citetitle></link> opcode instead. |
| 62 | </para> |
| 63 | </refsect1> |
| 64 | |
| 65 | <refsect1> |
| 66 | <title>Examples</title> |
| 67 | <para> |
| 68 | Here is an example of the expsegb opcode. It uses the file <ulink url="examples/expsegb.csd"><citetitle>expsegb.csd</citetitle></ulink>. |
| 69 | |
| 70 | <example> |
| 71 | <title>Example of the expsegb opcode.</title> |
| 72 | |
| 73 | |
| 74 | |
| 75 | <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> |
| 76 | <xi:include href="examples-xml/expsegb.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 77 | </example> |
| 78 | </para> |
| 79 | </refsect1> |
| 80 | |
| 81 | <refsect1> |
| 82 | <title>See also</title> |
| 83 | <para><link linkend="SiggenLineexp"><citetitle>Linear and Exponential Generators</citetitle></link></para> |
| 84 | </refsect1> |
| 85 | |
| 86 | <refsect1> |
| 87 | <title>Credits</title> |
| 88 | <para> |
| 89 | <simplelist> |
| 90 | <member>Author: &namevictor;</member> |
| 91 | <member>June 2011 </member> |
| 92 | </simplelist> |
| 93 | </para> |
| 94 | <para>New in version 5.14</para> |
| 95 | </refsect1> |
| 96 | </refentry> |