| 1 | |
| 2 | <refentry id="slicearray"> |
| 3 | <indexterm id="IndexSlicearray"><primary>slicearray</primary></indexterm> |
| 4 | |
| 5 | <refentryinfo><title>Table Control:Table Queries</title></refentryinfo> |
| 6 | <refmeta> |
| 7 | <refentrytitle>slicearray</refentrytitle> |
| 8 | </refmeta> |
| 9 | |
| 10 | <refnamediv> |
| 11 | <refname>slicearray</refname> |
| 12 | <refpurpose> |
| 13 | Take a slice of a vector. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | Take a slice of a vector (one-dimensional k-rate array). |
| 21 | </para> |
| 22 | </refsect1> |
| 23 | |
| 24 | <refsect1> |
| 25 | <title>Syntax</title> |
| 26 | <synopsis>karray <command>slicearray</command> kinarray, istart, iend [,istride]</synopsis> |
| 27 | </refsect1> |
| 28 | |
| 29 | <refsect1> |
| 30 | <title>Initialization</title> |
| 31 | <para> |
| 32 | <emphasis>istart</emphasis> -- index of the first part of the answer. |
| 33 | </para> |
| 34 | <para> |
| 35 | <emphasis>iend</emphasis> -- index of the last element of the answer. |
| 36 | </para> |
| 37 | <para> |
| 38 | <emphasis>istride</emphasis> -- increment for source elements (optional), defaults to 1. |
| 39 | </para> |
| 40 | </refsect1> |
| 41 | |
| 42 | <refsect1> |
| 43 | <title>Examples</title> |
| 44 | <para> |
| 45 | Here is an example of the slicearray opcode. It uses the file <ulink url="examples/slicearray.csd"><citetitle>slicearray.csd</citetitle></ulink>. |
| 46 | <example> |
| 47 | <title>Example of the slicearray opcode.</title> |
| 48 | <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> |
| 49 | <xi:include href="examples-xml/slicearray.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 50 | </example> |
| 51 | </para> |
| 52 | </refsect1> |
| 53 | |
| 54 | <refsect1> |
| 55 | <title>See Also</title> |
| 56 | <para><link linkend="arrayOpcodes"><citetitle>Array opcodes</citetitle></link></para> |
| 57 | </refsect1> |
| 58 | |
| 59 | <refsect1> |
| 60 | <title>Credits</title> |
| 61 | <para> |
| 62 | <simplelist> |
| 63 | <member>Author: &namejohn;</member> |
| 64 | <member>Codemist Ltd</member> |
| 65 | <member>2013</member> |
| 66 | </simplelist> |
| 67 | </para> |
| 68 | <para>New in version 6.00</para> |
| 69 | <para>istride argument new in 6.10</para> |
| 70 | </refsect1> |
| 71 | </refentry> |