Debian Codegraph @

opcodes/select.xml

raw symbols SCIP
1
2 <!--Change refentry id and indexterm id-->
3 <refentry id="select">
4 <indexterm id="Indexselect"><primary>select</primary></indexterm>
5 <!--Make sure the category below is a valid one! See categories.py-->
6 <refentryinfo><title>Miscellaneous</title></refentryinfo>
7 <refmeta>
8 <refentrytitle>select</refentrytitle>
9 </refmeta>
10
11 <refnamediv>
12 <refname>select</refname>
13 <refpurpose>
14 Select sample value based on audio-rate comparisons.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Select sample value from three based on audio-rate comparisons of
22 two signals.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <!-- Please keep this below ~70 characters by using backslashes to avoid overflow in the pdf version-->
29 <synopsis>aout <command>select</command> a1, a2, aless, aequal, amore</synopsis>
30 </refsect1>
31
32 <!-- <refsect1> -->
33 <!-- <title>Initialization</title> -->
34 <!-- <para> -->
35 <!-- <emphasis>ivar</emphasis> -\- i-time variable -->
36 <!-- </para> -->
37 <!-- </refsect1> -->
38
39 <refsect1>
40 <title>Performance</title>
41 <!-- First list all input and output performance parameters-->
42 <para>
43 <emphasis>a1, a2</emphasis> -- audio signals that are compared.
44 </para>
45 <para>
46 <emphasis>aless</emphasis> -- audio signal selected if a1[n]&lt;a2[n]
47 </para>
48 <para>
49 <emphasis>aequal</emphasis> -- audio signal selected if a1[n]=a2[n]
50 </para>
51 <para>
52 <emphasis>asig</emphasis> -- audio signal selected if a1[n]&gt;a2[n]
53 </para>
54 <para>
55 The comparison is made sample by sample.
56 </para>
57 </refsect1>
58
59 <refsect1>
60 <title>Examples</title>
61 <para>
62 Here is an example of the select opcode. It uses the file <ulink url="examples/select.csd"><citetitle>select.csd</citetitle></ulink>.
63 <example>
64 <title>Example of the select opcode.</title>
65 <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>
66 <xi:include href="examples-xml/select.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
67 </example>
68 </para>
69 </refsect1>
70
71 <refsect1>
72 <title>See also</title>
73 <para><link linkend="MiscopcodesTop"><citetitle>Miscellaneous opcodes</citetitle></link></para>
74 </refsect1>
75
76 <refsect1>
77 <title>Credits</title>
78 <para>By: &namejohn; 2016</para>
79 <para>New in vesion 6.09</para>
80 </refsect1>
81 </refentry>