Debian Codegraph @

opcodes/vmultv_i.xml

raw symbols SCIP
1
2 <refentry id="vmultv_i">
3 <indexterm id="IndexVmultv_i"><primary>vmultv_i</primary></indexterm>
4 <refentryinfo><title>Vectorial:Vectorial operations</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>vmultv_i</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>vmultv_i</refname>
11 <refpurpose>
12 Performs mutiplication between two vectorial control signals at init time.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Performs mutiplication between two vectorial control signals at init time.
20 </para>
21 </refsect1>
22 <refsect1>
23 <title>Syntax</title>
24 <synopsis><command>vmultv_i</command> ifn1, ifn2, ielements [, idstoffset] [, isrcoffset]</synopsis>
25 </refsect1>
26
27 <refsect1>
28 <title>Initialization</title>
29 <para>
30 <emphasis>ifn1</emphasis> - number of the table hosting the first vector to be processed
31 </para>
32 <para>
33 <emphasis>ifn2</emphasis> - number of the table hosting the second vector to be processed
34 </para>
35 <para>
36 <emphasis>ielements</emphasis> - number of elements of the two vectors
37 </para>
38 <para>
39 <emphasis>idstoffset</emphasis> - index offset for the destination (ifn1) table (Default=0)
40 </para>
41 <para>
42 <emphasis>isrcoffset</emphasis> - index offset for the source (ifn2) table (Default=0)
43 </para>
44 </refsect1>
45
46 <refsect1>
47 <title>Performance</title>
48 <para>
49 <emphasis>vmultv_i</emphasis> multiplies two vectorial control signals, that is, each element of the first vector is processed (only) with the corresponding element of the other vector. Each vectorial signal is hosted by a table (ifn1 and ifn2). The number of elements contained in both vectors must be the same.
50 </para>
51 <para>
52 The result is a new vectorial control signal that overrides old values of ifn1. If you want to keep the old ifn1 vector, use <link linkend="vcopy_i"><citetitle>vcopy_i</citetitle></link> opcode to copy it in another table. You can use <emphasis>idstoffset</emphasis> and <emphasis>isrcoffset</emphasis> to specify vectors in any location of the tables.
53 </para>
54 <para>
55 Negative values for <emphasis>idstoffset</emphasis> and <emphasis>isrcoffset</emphasis> are acceptable. If <emphasis>idstoffset</emphasis> is negative, the out of range section of the vector will be discarded. If <emphasis>isrcoffset</emphasis> is negative, the out of range elements will be assumed to be 1 (i.e. the destination elements will not be changed). If elements for the destination vector are beyond the size of the table (including guard point), these elements are discarded (i.e. elements do not wrap around the tables). If elements for the source vector are beyond the table length, these elements are taken as 1 (i.e. the destination vector will not be changed for these elements).
56 </para>
57 <warning>
58 <para>
59 Using the same table as source and destination table in versions earlier than 5.04, might produce unexpected behavior, so use with care.
60 </para>
61 </warning>
62 <para>
63 This opcode works at init time. There is an k-rate version of this opcode called <link linkend="vmultv"><citetitle>vmultv</citetitle></link>.
64 </para>
65 <para>
66 All these operators (<link linkend="vaddv_i"><citetitle>vaddv_i</citetitle></link>,<link linkend="vsubv_i"><citetitle>vsubv_i</citetitle></link>,<link linkend="vmultv_i"><citetitle>vmultv_i</citetitle></link>,<link linkend="vdivv_i"><citetitle>vdivv_i</citetitle></link>,<link linkend="vpowv_i"><citetitle>vpowv_i</citetitle></link>,<link linkend="vexpv_i"><citetitle>vexpv_i</citetitle></link>, <link linkend="vcopy"><citetitle>vcopy</citetitle></link> and <link linkend="vmap"><citetitle>vmap</citetitle></link>) 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.
67 </para>
68 </refsect1>
69
70 <refsect1>
71 <title>See also</title>
72 <para><link linkend="vectorialvectorial"><citetitle>Operations Between two Vectorial Signals</citetitle></link></para>
73 </refsect1>
74
75 <refsect1>
76 <title>Credits</title>
77 <para>Written by Gabriel Maldonado. Optional arguments added by Andres Cabrera and Istvan Varga.</para>
78 <para>New in Csound 5 (Previously available only on CsoundAV)</para>
79 </refsect1>
80 </refentry>