| 1 | |
| 2 | <refentry id="genarray"> |
| 3 | <indexterm id="IndexGenarray"><primary>genarray</primary></indexterm> |
| 4 | |
| 5 | <refentryinfo><title>Table Control:Table Queries</title></refentryinfo> |
| 6 | <refmeta> |
| 7 | <refentrytitle>genarray</refentrytitle> |
| 8 | </refmeta> |
| 9 | |
| 10 | <refnamediv> |
| 11 | <refname>genarray</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 or i-rate array) with an arithmetic sequence. |
| 21 | </para> |
| 22 | </refsect1> |
| 23 | |
| 24 | <refsect1> |
| 25 | <title>Syntax</title> |
| 26 | <synopsis>karray <command>genarray</command> kstart, kens[, inc]</synopsis> |
| 27 | <synopsis>iarray <command>genarray</command> istart, iens[, 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 opcode. It uses the file <ulink url="examples/genarray.csd"><citetitle>genarray.csd</citetitle></ulink>. |
| 49 | <example> |
| 50 | <title>Example of the genarray 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.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><link linkend="arrayOpcodes"><citetitle>Array opcodes</citetitle></link></para> |
| 60 | </refsect1> |
| 61 | |
| 62 | <refsect1> |
| 63 | <title>Credits</title> |
| 64 | <para> |
| 65 | <simplelist> |
| 66 | <member>Author: &namejohn;</member> |
| 67 | <member>Codemist Ltd</member> |
| 68 | <member>2013</member> |
| 69 | </simplelist> |
| 70 | </para> |
| 71 | <para>New in version 6.00</para> |
| 72 | </refsect1> |
| 73 | </refentry> |