vtabwk — Write vectors (to tables -or arrays of vectors).


This opcode writes vectors to tables at k-rate.


vtabwk  kndx, ifn, kinarg1 [, kinarg2, kinarg3 , .... , kinargN ]


ifn - table number


kndx - Index into f-table, a positive number range matching the table length

kinarg1...kinargN - input vector elements

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 (kinarg1, kinarg2, kinarg3, .... kinargN).

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 vtabwk, in order to correct eventual out-of-range values.

See also

Tables of vectors operators


Written by Gabriel Maldonado.

New in Csound 5 (Previously available only on CsoundAV)