| 1 | |
| 2 | <refentry id="genarray_i"> |
| 3 | <indexterm id="IndexGenarray_i"><primary>genarray_i</primary></indexterm> |
| 4 | |
| 5 | <refentryinfo><title>Table Control:Table Queries</title></refentryinfo> |
| 6 | <refmeta> |
| 7 | <refentrytitle>genarray_i</refentrytitle> |
| 8 | </refmeta> |
| 9 | |
| 10 | <refnamediv> |
| 11 | <refname>genarray_i</refname> |
| 12 | <refpurpose> |
| 13 | Generate a vector with an arithmetic sequence. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | Generate a vector (one-dimensional k-rate) with an arithmetic |
| 21 | sequence at initialisation time. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>karray <command>genarray_i</command> istart, iend [,inc]</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>istart</emphasis> -- value to place in first element. |
| 34 | </para> |
| 35 | <para> |
| 36 | <emphasis>iend</emphasis> -- last value to place in array. |
| 37 | </para> |
| 38 | <para> |
| 39 | <emphasis>inc</emphasis> -- amount to add to previous value |
| 40 | (default 1). |
| 41 | </para> |
| 42 | </refsect1> |
| 43 | |
| 44 | |
| 45 | <refsect1> |
| 46 | <title>Examples</title> |
| 47 | <para> |
| 48 | Here is an example of the genarray_i opcode. It uses the file <ulink url="examples/genarray_i.csd"><citetitle>genarray_i.csd</citetitle></ulink>. |
| 49 | <example> |
| 50 | <title>Example of the genarray_i opcode.</title> |
| 51 | <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> |
| 52 | <xi:include href="examples-xml/genarray_i.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 53 | </example> |
| 54 | </para> |
| 55 | </refsect1> |
| 56 | |
| 57 | <refsect1> |
| 58 | <title>See Also</title> |
| 59 | <para> |
| 60 | <link linkend="vectorial"><citetitle></citetitle>Vectorial |
| 61 | opcodes</link> |
| 62 | <link linkend="fillarray"><citetitle>fillarray</citetitle></link> |
| 63 | </para> |
| 64 | </refsect1> |
| 65 | |
| 66 | <refsect1> |
| 67 | <title>Credits</title> |
| 68 | <para> |
| 69 | <simplelist> |
| 70 | <member>Author: &namejohn;</member> |
| 71 | <member>Codemist Ltd</member> |
| 72 | <member>2013</member> |
| 73 | </simplelist> |
| 74 | </para> |
| 75 | <para>New in version 6.00</para> |
| 76 | </refsect1> |
| 77 | </refentry> |