Debian Codegraph @

opcodes/minabs.xml

raw symbols SCIP
1
2 <refentry id="minabs">
3 <indexterm id="IndexMinabs"><primary>minabs</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Comparators and Accumulators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>minabs</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>minabs</refname>
13
14 <refpurpose>
15 Produces a signal that is the minimum of the absolute values of any number of input signals.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 The <emphasis>minabs</emphasis> opcode takes any number of a-rate or k-rate signals as input (all of the same rate), and outputs a signal at the same rate that is the minimum of all of the inputs. It is identical to the <emphasis>min</emphasis> opcode except that it takes the absolute value of each input before comparing them. Therefore, the output is always non-negative. For a-rate signals, the inputs are compared one sample at a time (i.e. <emphasis>minabs</emphasis> does not scan an entire ksmps period of a signal for its local minimum as the <emphasis>max_k</emphasis> opcode does).
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>amin <command>minabs</command> ain1, ain2 [, ain3] [, ain4] [...]</synopsis>
29 <synopsis>kmin <command>minabs</command> kin1, kin2 [, kin3] [, kin4] [...]</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Performance</title>
34 <para>
35 <emphasis>ain1, ain2, ...</emphasis> -- a-rate signals to be compared.
36 </para>
37
38 <para>
39 <emphasis>kin1, kin2, ...</emphasis> -- k-rate signals to be compared.
40 </para>
41 </refsect1>
42
43 <refsect1>
44 <title>Examples</title>
45 <para>
46 Here is an example of the minabs opcode. It uses the file <ulink url="examples/minabs.csd"><citetitle>minabs.csd</citetitle></ulink>.
47 <example>
48 <title>Example of the minabs opcode.</title>
49 <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>
50 <xi:include href="examples-xml/minabs.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
51 </example>
52 </para>
53 </refsect1>
54
55 <refsect1>
56 <title>See also</title>
57 <para><link linkend="SigmodCompaccum"><citetitle>Comparators and Accumulators</citetitle></link></para>
58 </refsect1>
59
60 <refsect1>
61 <title>Credits</title>
62 <para>
63 <simplelist>
64 <member>Author: &nameanthony;</member>
65 <member>March 2006</member>
66 </simplelist>
67 </para>
68
69 <para>New in Csound version 5.01</para>
70 </refsect1>
71 </refentry>