| 1 | <refentry id="setrow"> |
| 2 | <indexterm id="IndexSetrow"><primary>setrow</primary></indexterm> |
| 3 | |
| 4 | <refentryinfo><title>Array Opcodes</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>setrow</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>setrow</refname> |
| 11 | <refpurpose> |
| 12 | Sets a given row of a 2-dimensional array from a vector. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Sets a given row of a 2-dimensional array. The output is an 2-d array with the contents of the requested row set to values of the input array (1-d; if 2-d the first row of the input array is used). |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>i/kout[] <command>setrow</command> i/kin[],i/krow</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para> |
| 31 | <emphasis>iout[]</emphasis> -- output array containing the set row. It will be created if it does not exist. |
| 32 | </para> |
| 33 | <para> |
| 34 | <emphasis>iin[]</emphasis> -- input array. |
| 35 | </para> |
| 36 | <para> |
| 37 | <emphasis>irow</emphasis> -- row to be set. |
| 38 | </para> |
| 39 | </refsect1> |
| 40 | |
| 41 | |
| 42 | |
| 43 | <refsect1> |
| 44 | <title>Performance</title> |
| 45 | <para> |
| 46 | <emphasis>kout[]</emphasis> -- output array containing the set row. It will be created if it does not exist. |
| 47 | </para> |
| 48 | <para> |
| 49 | <emphasis>kin[]</emphasis> -- input array. |
| 50 | </para> |
| 51 | <para> |
| 52 | <emphasis>krow</emphasis> -- row to be set. |
| 53 | </para> |
| 54 | </refsect1> |
| 55 | |
| 56 | <refsect1> |
| 57 | <title>Examples</title> |
| 58 | <para> |
| 59 | Here is an example of the setrow opcode. It uses the file <ulink |
| 60 | url="examples/rfft.csd"><citetitle>rfft.csd</citetitle></ulink>.</para> |
| 61 | |
| 62 | <example> |
| 63 | <title>Example of the setrow opcode.</title> |
| 64 | |
| 65 | <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> |
| 66 | <xi:include href="examples-xml/rfft.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 67 | </example> |
| 68 | </refsect1> |
| 69 | |
| 70 | |
| 71 | <refsect1> |
| 72 | <title>See Also</title> |
| 73 | <para> |
| 74 | <link linkend="vectorial"><citetitle></citetitle>Vectorial opcodes</link> |
| 75 | <link linkend="arrayOpcodes"><citetitle></citetitle>array opcodes</link> |
| 76 | </para> |
| 77 | </refsect1> |
| 78 | |
| 79 | <refsect1> |
| 80 | <title>Credits</title> |
| 81 | <para> |
| 82 | <simplelist> |
| 83 | <member>Author: &namevictor;</member> |
| 84 | <member>NUI Maynooth</member> |
| 85 | <member>2014</member> |
| 86 | </simplelist> |
| 87 | </para> |
| 88 | <para>New in version 6.04</para> |
| 89 | </refsect1> |
| 90 | </refentry> |