Debian Codegraph @

opcodes/trim.xml

raw symbols SCIP
1
2 <refentry id="trim">
3 <indexterm id="IndexTrim"><primary>trim</primary></indexterm>
4 <refentryinfo><title>Array Opcodes</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>trim</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>trim</refname>
11 <refpurpose>
12 Adjust size of a one-dimensional array.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Lengthen or shorten a one-dimensional array.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>trim_i</command> iarray, ilen</synopsis>
26 <synopsis><command>trim</command> xarray, klen</synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Performance</title>
31 <para>
32 <emphasis>iarray</emphasis> -- a one-dimensional irate array
33 </para>
34 <para>
35 <emphasis>xarray</emphasis> -- a one-dimensional array
36 </para>
37 <para>
38 <emphasis>klen</emphasis> -- desired length
39 </para>
40
41 <para>
42 Makes the array the desired length, either truncating or padding
43 with zero/Null values.
44 </para>
45 </refsect1>
46
47 <refsect1>
48 <title>Examples</title>
49 <para>
50 Here is an example of the trim opcode. It uses the file <ulink url="examples/trim.csd"><citetitle>trim.csd</citetitle></ulink>.
51 <example>
52 <title>Example of the trim 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/trim.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>Author: &namejohn; 2018</para>
67 <para>New in version 6.12</para>
68 </refsect1>
69 </refentry>