Debian Codegraph @

opcodes/db.xml

raw symbols SCIP
1
2 <refentry id="db">
3 <indexterm id="IndexDb"><primary>db</primary></indexterm>
4 <refentryinfo><title>Mathematical Operations:Amplitude Functions</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>db</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>db</refname>
13 <refpurpose>
14 Returns the amplitude equivalent for a given decibel amount.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Returns the amplitude equivalent for a given decibel amount. This opcode is the same as <link linkend="ampdb"><citetitle>ampdb</citetitle></link>.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>db</command>(x)</synopsis>
28
29 <para>
30 This function works at a-rate, i-rate, and k-rate.
31 </para>
32 </refsect1>
33
34 <refsect1>
35 <title>Initialization</title>
36 <para>
37 <emphasis>x</emphasis> -- a value expressed in decibels.
38 </para>
39 </refsect1>
40
41 <refsect1>
42 <title>Performance</title>
43 <para>
44 Returns the amplitude for a given decibel amount.
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>Examples</title>
50 <para>
51 Here is an example of the db opcode. It uses the file <ulink url="examples/db.csd"><citetitle>db.csd</citetitle></ulink>.
52
53 <example>
54 <title>Example of the db opcode.</title>
55
56
57
58 <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>
59 <xi:include href="examples-xml/db.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
60 </example>
61
62 Its output should include lines like:
63 <screen>instr 1: iamp = 316.252
64 instr 1: iamp = 1211.582
65 instr 1: iamp = 4641.643
66 instr 1: iamp = 17782.420</screen>
67 </para>
68 </refsect1>
69
70 <refsect1>
71 <title>See also</title>
72 <para><link linkend="MathAmp"><citetitle>Amplitude Converters</citetitle></link></para>
73 </refsect1>
74
75 <refsect1>
76 <para>New in version 4.16</para>
77 </refsect1>
78 </refentry>