Debian Codegraph @

opcodes/dbfsamp.xml

raw symbols SCIP
1
2 <refentry id="dbfsamp">
3 <indexterm id="IndexDbfsamp"><primary>dbfsamp</primary></indexterm>
4 <refentryinfo><title>Mathematical Operations:Amplitude Functions</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>dbfsamp</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>dbfsamp</refname>
13
14 <refpurpose>
15 Returns the decibel equivalent of the raw amplitude <emphasis>x</emphasis>, relative to full scale amplitude.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Returns the decibel equivalent of the raw amplitude <emphasis>x</emphasis>, relative to full scale amplitude. Full scale is assumed to be 16 bit. New is Csound version 4.10.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>dbfsamp</command>(x) (init-rate or control-rate args only)</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Examples</title>
33 <para>
34 Here is an example of the dbfsamp opcode. It uses the file <ulink url="examples/dbfsamp.csd"><citetitle>dbfsamp.csd</citetitle></ulink>.
35
36 <example>
37 <title>Example of the dbfsamp opcode.</title>
38
39
40
41 <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>
42 <xi:include href="examples-xml/dbfsamp.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
43 </example>
44
45 Its output should include lines like this:
46 <screen>instr 1: idb = -90.309
47 instr 1: idb = -50.309
48 instr 1: idb = -30.309
49 instr 1: idb = -10.309
50 instr 1: idb = -0.767</screen>
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <title>See also</title>
56 <para><link linkend="MathAmp"><citetitle>Amplitude Converters</citetitle></link></para>
57 </refsect1>
58
59 </refentry>