| 1 | |
| 2 | <refentry id="vexpseg"> |
| 3 | <indexterm id="IndexVexpseg"><primary>vexpseg</primary></indexterm> |
| 4 | <refentryinfo><title>Vectorial:Envelopes</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>vexpseg</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>vexpseg</refname> |
| 11 | <refpurpose> |
| 12 | Vectorial envelope generator |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Generate exponential vectorial segments |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis><command>vexpseg</command> ifnout, ielements, ifn1, idur1, ifn2 [, idur2, ifn3 [...]]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para> |
| 31 | <emphasis>ifnout</emphasis> - number of table hosting output vectorial signal |
| 32 | </para> |
| 33 | <para> |
| 34 | <emphasis>ifn1</emphasis> - starting vector |
| 35 | </para> |
| 36 | <para> |
| 37 | <emphasis>ifn2, ifn3,etc.</emphasis> - vector after <emphasis>idurx</emphasis> seconds |
| 38 | </para> |
| 39 | <para> |
| 40 | <emphasis>idur1</emphasis> - duration in seconds of first segment. |
| 41 | </para> |
| 42 | <para> |
| 43 | <emphasis>idur2, idur3, etc. </emphasis> - duration in seconds of subsequent segments. |
| 44 | </para> |
| 45 | <para> |
| 46 | <emphasis>ielements</emphasis> - number of elements of vectors. |
| 47 | </para> |
| 48 | </refsect1> |
| 49 | |
| 50 | <refsect1> |
| 51 | <title>Performance</title> |
| 52 | <para> |
| 53 | These opcodes are similar to <emphasis>linseg</emphasis> and <emphasis>expseg</emphasis>, but operate with vectorial signals instead of with scalar signals. |
| 54 | </para> |
| 55 | <para> |
| 56 | Output is a vectorial control signal hosted by <emphasis>ifnout</emphasis> (that must be previously allocated), while each break-point of the envelope is actually a vector of values. All break-points must contain the same number of elements (<emphasis>ielements</emphasis>). |
| 57 | </para> |
| 58 | <para> |
| 59 | All these operators are designed to be used together with other opcodes that operate with vectorial signals such as>, <emphasis>vcella</emphasis>, <emphasis>adsynt</emphasis>, <emphasis>adsynt2</emphasis>, etc. |
| 60 | </para> |
| 61 | </refsect1> |
| 62 | |
| 63 | <refsect1> |
| 64 | <title>Example</title> |
| 65 | <para> |
| 66 | Here is an example of the vexpseg opcode. It uses the files <ulink url="examples/vexpseg.csd"><citetitle>vexpseg.csd</citetitle></ulink>. |
| 67 | <example> |
| 68 | <title>Example of the vexpseg opcode.</title> |
| 69 | <xi:include href="examples-xml/vexpseg.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 70 | </example> |
| 71 | </para> |
| 72 | </refsect1> |
| 73 | |
| 74 | <refsect1> |
| 75 | <title>See also</title> |
| 76 | <para><link linkend="envelopeGenerators"><citetitle>Vectorial Envelope Generators</citetitle></link></para> |
| 77 | </refsect1> |
| 78 | |
| 79 | <refsect1> |
| 80 | <title>Credits</title> |
| 81 | <para>Written by Gabriel Maldonado.</para> |
| 82 | <para>Example by Andres Cabrera.</para> |
| 83 | <para>New in Csound 5 (Previously available only on CsoundAV)</para> |
| 84 | </refsect1> |
| 85 | </refentry> |