| 1 | |
| 2 | <refentry id="vtabwi"> |
| 3 | <indexterm id="IndexVtabwi"><primary>vtabwi</primary></indexterm> |
| 4 | <refentryinfo><title>Vectorial:Tables</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>vtabwi</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>vtabwi</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 init time. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis><command>vtabwi</command> indx, ifn, inarg1 [, inarg2, inarg3 , .... , inargN ]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para> |
| 31 | <emphasis>indx</emphasis> - Index into f-table, a positive number range matching the table length |
| 32 | </para> |
| 33 | <para> |
| 34 | <emphasis>ifn</emphasis> - table number |
| 35 | </para> |
| 36 | <para> |
| 37 | <emphasis>inarg1...inargN</emphasis> - input vector elements |
| 38 | </para> |
| 39 | </refsect1> |
| 40 | |
| 41 | <refsect1> |
| 42 | <title>Performance</title> |
| 43 | <para> |
| 44 | 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>inarg1</emphasis>, <emphasis>inarg2</emphasis>, <emphasis>inarg3</emphasis>, .... <emphasis>inargN</emphasis>). |
| 45 | </para> |
| 46 | <para> |
| 47 | 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>vtabwi</emphasis>, in order to correct eventual out-of-range values. |
| 48 | </para> |
| 49 | </refsect1> |
| 50 | |
| 51 | <refsect1> |
| 52 | <title>See also</title> |
| 53 | <para><link linkend="vectorialtables"><citetitle>Tables of vectors operators</citetitle></link></para> |
| 54 | </refsect1> |
| 55 | |
| 56 | <refsect1> |
| 57 | <title>Credits</title> |
| 58 | <para>Written by Gabriel Maldonado.</para> |
| 59 | <para>New in Csound 5 (Previously available only on CsoundAV)</para> |
| 60 | </refsect1> |
| 61 | </refentry> |