| 1 | |
| 2 | <refentry id="vtabwa"> |
| 3 | <indexterm id="IndexVtabwa"><primary>vtabwa</primary></indexterm> |
| 4 | <refentryinfo><title>Vectorial:Tables</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>vtabwa</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>vtabwa</refname> |
| 11 | <refpurpose> |
| 12 | Write vectors (to tables -or arrays of vectors). |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | This opcode writes vectors to tables at a-rate. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis><command>vtabwa</command> andx, ifn, ainarg1 [, ainarg2, ainarg3 , .... , ainargN ]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para><emphasis>ifn</emphasis> - table number</para> |
| 31 | </refsect1> |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Performance</title> |
| 35 | <para> |
| 36 | <emphasis>andx</emphasis> - Index into f-table, a positive number range matching the table length |
| 37 | </para> |
| 38 | <para> |
| 39 | <emphasis>ainarg1...ainargN</emphasis> - input vector elements |
| 40 | </para> |
| 41 | <para> |
| 42 | This opcode is useful in all cases in which one needs to write sets of values associated to unique indexes (for example, multi-channel samples, STFT bin frames, spectral formants, p-field based scores etc.). The number of elements of each vector (length of the vector) is determined by the number of optional arguments on the right (<emphasis>ainarg1</emphasis>, <emphasis>ainarg2</emphasis>, <emphasis>ainarg3</emphasis>, .... <emphasis>ainargN</emphasis>). |
| 43 | </para> |
| 44 | <para> |
| 45 | Notice that no wrap nor limit mode is implemented. So, if an index attempt to access to a zone not allocated by the table, Csound will probably crash. However this drawback can be easily avoided by using wrap or limit opcodes applied to indexes before using <emphasis>vtabwa</emphasis>, in order to correct eventual out-of-range values. |
| 46 | </para> |
| 47 | </refsect1> |
| 48 | |
| 49 | <refsect1> |
| 50 | <title>See also</title> |
| 51 | <para><link linkend="vectorialtables"><citetitle>Tables of vectors operators</citetitle></link></para> |
| 52 | </refsect1> |
| 53 | |
| 54 | <refsect1> |
| 55 | <title>Credits</title> |
| 56 | <para>Written by Gabriel Maldonado.</para> |
| 57 | <para>New in Csound 5 (Previously available only on CsoundAV)</para> |
| 58 | </refsect1> |
| 59 | </refentry> |