| 1 | |
| 2 | <refentry id="GENsone"> |
| 3 | <indexterm id="IndexGENsone"><primary>GENsone</primary></indexterm> |
| 4 | <refmeta> |
| 5 | <refentrytitle>GENsone</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>"sone"</refname> |
| 10 | <refpurpose> |
| 11 | Generate a table with values of the sone function. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Description</title> |
| 17 | <para> |
| 18 | Creates an ftable with values of the sone function for equal power. |
| 19 | </para> |
| 20 | </refsect1> |
| 21 | <refsect1> |
| 22 | <title>Syntax</title> |
| 23 | <synopsis><command>f</command> # time size "sone" start end equalpoint rescale</synopsis> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Initialization</title> |
| 28 | <para> |
| 29 | <emphasis>size</emphasis> -- number of points in the table. Must |
| 30 | be a power of 2 or power-of-2 plus 1 (see <link |
| 31 | linkend="f"><citetitle>f statement</citetitle></link>). |
| 32 | </para> |
| 33 | |
| 34 | <para> |
| 35 | <emphasis>start, end</emphasis> -- first and last value to be stored. The points stored are uniformly spaced between these to the table size. |
| 36 | </para> |
| 37 | <para> |
| 38 | <emphasis>equalpoint</emphasis> -- the point on the curve when the input and output values are equal. |
| 39 | </para> |
| 40 | <para> |
| 41 | <emphasis>rescale</emphasis> -- if not zero the table is not rescaled |
| 42 | </para> |
| 43 | |
| 44 | <para> |
| 45 | The table is filled with the function x*POWER(x/eqlp, |
| 46 | FL(33.0)/FL(78.0)) for x between the start and end points. This |
| 47 | is the Sone loudness curve. |
| 48 | </para> |
| 49 | </refsect1> |
| 50 | |
| 51 | <refsect1> |
| 52 | <title>Examples</title> |
| 53 | <para> |
| 54 | Here is an example of the GENsone routine. It uses the files <ulink url="examples/gensone.csd"><citetitle>gensone.csd</citetitle></ulink>. |
| 55 | <example> |
| 56 | <title>An example of the GENsone routine.</title> |
| 57 | <xi:include href="examples-xml/gensone.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 58 | </example> |
| 59 | |
| 60 | <textobject> |
| 61 | <phrase>This is the diagram of the waveforms of the GENsone routine, as used in the example:</phrase> |
| 62 | </textobject> |
| 63 | |
| 64 | <mediaobject> |
| 65 | <imageobject> |
| 66 | <imagedata fileref="images/gensone.png" format="PNG"/> |
| 67 | </imageobject> |
| 68 | |
| 69 | <textobject> |
| 70 | <phrase>f 2 0 16385 "sone" 0 32000 32000 0</phrase> |
| 71 | </textobject> |
| 72 | |
| 73 | <caption> |
| 74 | <para>f 2 0 16385 "sone" 0 32000 32000 0</para> |
| 75 | </caption> |
| 76 | </mediaobject> |
| 77 | |
| 78 | </para> |
| 79 | </refsect1> |
| 80 | |
| 81 | <refsect1> |
| 82 | <title>See Also</title> |
| 83 | <para> More information on Sone: <ulink url="http://en.wikipedia.org/wiki/Sone"><citetitle>http://en.wikipedia.org/wiki/Sone</citetitle></ulink></para> |
| 84 | </refsect1> |
| 85 | |
| 86 | <refsect1> |
| 87 | <title>Credits</title> |
| 88 | <para>Written by &namejohn;</para> |
| 89 | </refsect1> |
| 90 | </refentry> |