| 1 | |
| 2 | <refentry id="ampdbfs"> |
| 3 | <indexterm id="IndexAmpdbfs"><primary>ampdbfs</primary></indexterm> |
| 4 | <refentryinfo><title>Mathematical Operations:Amplitude Functions</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>ampdbfs</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>ampdbfs</refname> |
| 11 | <refpurpose> |
| 12 | Returns the amplitude equivalent (in 16-bit signed integer scale) of the full scale decibel (dB FS) value <emphasis>x</emphasis>. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Returns the amplitude equivalent of the full scale decibel (dB FS) value <emphasis>x</emphasis>. The logarithmic full scale decibel values will be converted to linear 16-bit signed integer values from −32,768 to +32,767. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis><command>ampdbfs</command>(x) (no rate restriction)</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Examples</title> |
| 30 | <para> |
| 31 | Here is an example of the ampdbfs opcode. It uses the file <ulink url="examples/ampdbfs.csd"><citetitle>ampdbfs.csd</citetitle></ulink>. |
| 32 | |
| 33 | <example> |
| 34 | <title>Example of the ampdbfs opcode.</title> |
| 35 | |
| 36 | <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> |
| 37 | <xi:include href="examples-xml/ampdbfs.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 38 | </example> |
| 39 | |
| 40 | Its output should include lines like: |
| 41 | <screen> |
| 42 | instr 1: iamp = 29204.511 |
| 43 | instr 1: iamp = 18426.801 |
| 44 | instr 1: iamp = 16422.904 |
| 45 | instr 1: iamp = 3276.800</screen> |
| 46 | </para> |
| 47 | </refsect1> |
| 48 | |
| 49 | <refsect1> |
| 50 | <title>See also</title> |
| 51 | <para><link linkend="MathAmp"><citetitle>Amplitude Converters</citetitle></link></para> |
| 52 | <para>New in Csound version 4.10</para> |
| 53 | </refsect1> |
| 54 | |
| 55 | </refentry> |