vwrap
Prev | Orchestra Opcodes and Operators | Next

## vwrap

vwrap — Limiting and Wrapping Vectorial Signals

## Description

Wraps elements of vectorial control signals.

## Syntax

    vwrap  ifn, kmin, kmax, ielements

## Initialization

ifn - number of the table hosting the vector to be processed

ielements - number of elements of the vector

## Performance

kmin - minimum threshold value

kmax - maximum threshold value

vwrap wraps around each element of corresponding vector if it exceeds low or high thresholds.

These opcodes are similar to limit, wrap and mirror, but operate with a vectorial signal instead of with a scalar signal.

Result overrides old values of ifn1, if these are out of min/max interval. If you want to keep input vector, use vcopy opcode to copy it in another table.

All these opcodes are designed to be used together with other opcodes that operate with vectorial signals such as vcella, adsynt, adsynt2 etc.

## See also

Limiting and wrapping of vectorial control signals

## Credits

Written by Gabriel Maldonado.

New in Csound 5 (Previously available only on CsoundAV)

Prev | Up | Next
vtabwa | Home | waveset