vtaba
Prev | Orchestra Opcodes and Operators | Next

## vtaba

vtaba — Read vectors (from tables -or arrays of vectors).

## Description

This opcode reads vectors from tables at a-rate.

## Syntax

    vtaba  andx, ifn, aout1 [, aout2, aout3, .... , aoutN ]

## Initialization

ifn - table number

## Performance

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

aout1...aoutN - output vector elements

This opcode is useful in all cases in which one needs to access 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 frame is automatically determined by the number of outN or inargN arguments, and must remain fixed for all indexes of each table.

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

Notice that vtaba output arguments are placed at the left of the opcode name, differently from usual (this style is already used in other opcodes using undefined lists of output arguments such as fin or trigseq).

The vtab family is similar to the vtable family, but is much faster because interpolation is not available, table number cannot be changed after initialization, and only raw indexing is supported.

## Examples

The usage of vtaba is similar to vtablek.

## Credits

Written by Gabriel Maldonado.

New in Csound 5 (Previously available only on CsoundAV)

Prev | Up | Next
vtabk | Home | vtabwi