| 1 | |
| 2 | <refentry id="dbamp"> |
| 3 | <indexterm id="IndexDbamp"><primary>dbamp</primary></indexterm> |
| 4 | <refentryinfo><title>Mathematical Operations:Amplitude Functions</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>dbamp</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>dbamp</refname> |
| 13 | |
| 14 | <refpurpose> |
| 15 | Returns the decibel equivalent of the raw amplitude <emphasis>x</emphasis>. |
| 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>. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis><command>dbamp</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 dbamp opcode. It uses the file <ulink url="examples/dbamp.csd"><citetitle>dbamp.csd</citetitle></ulink>. |
| 35 | |
| 36 | <example> |
| 37 | <title>Example of the dbamp 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/dbamp.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 = 40.000 |
| 47 | instr 1: idb = 60 |
| 48 | instr 1: idb = 80 |
| 49 | instr 1: idb = 86.021</screen> |
| 50 | </para> |
| 51 | </refsect1> |
| 52 | |
| 53 | <refsect1> |
| 54 | <title>See also</title> |
| 55 | <para><link linkend="MathAmp"><citetitle>Amplitude Converters</citetitle></link></para> |
| 56 | </refsect1> |
| 57 | |
| 58 | </refentry> |