| 1 |
|
| 2 |
<refentry id="vwrap"> |
| 3 |
<indexterm id="IndexVwrap"><primary>vwrap</primary></indexterm> |
| 4 |
<refentryinfo><title>Vectorial:Limiting and Wrapping</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>vwrap</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
<refnamediv> |
| 10 |
<refname>vwrap</refname> |
| 11 |
<refpurpose> |
| 12 |
Limiting and Wrapping Vectorial Signals |
| 13 |
|
| 14 |
</refpurpose> |
| 15 |
</refnamediv> |
| 16 |
|
| 17 |
<refsect1> |
| 18 |
<title>Description</title> |
| 19 |
<para> |
| 20 |
Wraps elements of vectorial control signals. |
| 21 |
</para> |
| 22 |
</refsect1> |
| 23 |
<refsect1> |
| 24 |
<title>Syntax</title> |
| 25 |
<synopsis><command>vwrap</command> ifn, kmin, kmax, ielements</synopsis> |
| 26 |
</refsect1> |
| 27 |
|
| 28 |
<refsect1> |
| 29 |
<title>Initialization</title> |
| 30 |
<para> |
| 31 |
<emphasis>ifn</emphasis> - number of the table hosting the vector to be processed |
| 32 |
</para> |
| 33 |
<para> |
| 34 |
<emphasis>ielements</emphasis> - number of elements of the vector |
| 35 |
</para> |
| 36 |
</refsect1> |
| 37 |
|
| 38 |
<refsect1> |
| 39 |
<title>Performance</title> |
| 40 |
<para> |
| 41 |
<emphasis>kmin</emphasis> - minimum threshold value |
| 42 |
</para> |
| 43 |
<para> |
| 44 |
<emphasis>kmax</emphasis> - maximum threshold value |
| 45 |
</para> |
| 46 |
<para> |
| 47 |
<emphasis>vwrap</emphasis> wraps around each element of corresponding vector if it exceeds low or high thresholds.</para> |
| 48 |
<para>These opcodes are similar to <link linkend="limit"><citetitle>limit</citetitle></link>, <link linkend="wrap"><citetitle>wrap</citetitle></link> and <link linkend="mirror"><citetitle>mirror</citetitle></link>, but operate with a vectorial signal instead of with a scalar signal. |
| 49 |
</para> |
| 50 |
<para> |
| 51 |
Result overrides old values of <emphasis>ifn1</emphasis>, if these are out of min/max interval. If you want to keep input vector, use <link linkend="vcopy"><citetitle>vcopy</citetitle></link> opcode to copy it in another table. |
| 52 |
</para> |
| 53 |
<para> |
| 54 |
All these opcodes are designed to be used together with other opcodes that operate with vectorial signals such as <link linkend="vcella"><citetitle>vcella</citetitle></link>, <link linkend="adsynt"><citetitle>adsynt</citetitle></link>, <link linkend="adsynt2"><citetitle>adsynt2</citetitle></link> etc. |
| 55 |
</para> |
| 56 |
|
| 57 |
</refsect1> |
| 58 |
|
| 59 |
<refsect1> |
| 60 |
<title>See also</title> |
| 61 |
<para><link linkend="vectorialimiting"><citetitle>Limiting and wrapping of vectorial control signals</citetitle></link></para> |
| 62 |
</refsect1> |
| 63 |
|
| 64 |
<refsect1> |
| 65 |
<title>Credits</title> |
| 66 |
<para>Written by Gabriel Maldonado.</para> |
| 67 |
<para>New in Csound 5 (Previously available only on CsoundAV)</para> |
| 68 |
</refsect1> |
| 69 |
</refentry> |