Debian Codegraph @

opcodes/scalearray.xml

raw symbols SCIP
1 
2 <refentry id="scalearray">
3 <indexterm id="IndexScalearray"><primary>scalearray</primary></indexterm>
4 <refentryinfo><title>Array Opcodes</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>scalearray</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>scalearray</refname>
13
14 <refpurpose>
15 Scales the values in a range of a vector (one dimensional array).
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 The <emphasis>scalearray</emphasis> opcode scales a subregion of a
23 vector to a given minimum/maximum.
24 </para>
25 </refsect1>
26
27 <refsect1>
28 <title>Syntax</title>
29 <synopsis><command>scalearray</command> tarray, kmin, kmax[, kleft, kright]</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Performance</title>
34 <para>
35 <emphasis>karray</emphasis> -- array for operation.
36 </para>
37 <para>
38 <emphasis>kmin, kmax</emphasis> -- target minimum and maximum values.
39 </para>
40 <para>
41 <emphasis>kleft, kright</emphasis> -- range of table to use,
42 defaulting to 0 and size of the vector.
43 </para>
44
45 </refsect1>
46
47 <refsect1>
48 <title>Examples</title>
49 <para>
50 Here is an example of the scalearray opcode. It uses the file <ulink url="examples/scalearray.csd"><citetitle>scalearray.csd</citetitle></ulink>.
51 <example>
52 <title>Example of the scalearray opcode.</title>
53 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
54 <xi:include href="examples-xml/scalearray.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
55 </example>
56 </para>
57 </refsect1>
58
59 <refsect1>
60 <title>See Also</title>
61 <para><link linkend="arrayOpcodes"><citetitle>Array opcodes</citetitle></link></para>
62 </refsect1>
63
64 <refsect1>
65 <title>Credits</title>
66 <para>
67 <simplelist>
68 <member>Author: &namejohn;</member>
69 <member>October 2011</member>
70 </simplelist>
71 </para>
72
73 <para>New in Csound version 5.14</para>
74 <para>Renamed in Csound version 6.00</para>
75 </refsect1>
76 </refentry>