Debian Codegraph @

scoregens/gentanh.xml

raw symbols SCIP
1
2 <refentry id="GENtanh">
3 <indexterm id="IndexGENtanh"><primary>GENtanh</primary></indexterm>
4 <refmeta>
5 <refentrytitle>GENtanh</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>"tanh"</refname>
10 <refpurpose>
11 Generate a table with values on the tanh function.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 Creates an ftable with values of the tanh function.
19 </para>
20 </refsect1>
21 <refsect1>
22 <title>Syntax</title>
23 <synopsis><command>f</command> # time size "tanh" start end 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 GEN draws a curve that goes from start to end: tanh(start) .... tanh(end). The points stored are uniformly spaced between these to the table size
36 </para>
37 <para>
38 <emphasis>rescale</emphasis> -- if not zero the table is not rescaled
39 </para>
40
41 </refsect1>
42
43 <refsect1>
44 <title>Examples</title>
45 <para>
46 Here is a simple example of the GENtanh routine. It uses the file <ulink url="examples/gentanh.csd"><citetitle>gentanh.csd</citetitle></ulink>.
47 <example>
48 <title>Example of the GENtanh routine.</title>
49 <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>
50 <xi:include href="examples-xml/gentanh.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
51 </example>
52 <textobject>
53 <phrase>These are the diagrams of the waveforms of the GENtanh routines, as used in the example:</phrase>
54 </textobject>
55
56 <mediaobject>
57 <imageobject>
58 <imagedata fileref="images/gentanh_1.png" format="PNG"/>
59 </imageobject>
60
61 <textobject>
62 <phrase> f 2 0 8192 "tanh" -100 100 0 - lots of distortion</phrase>
63 </textobject>
64
65
66 <caption>
67 <para> f 2 0 8192 "tanh" -100 100 0 - lots of distortion</para>
68 </caption>
69 </mediaobject>
70
71 <mediaobject>
72 <imageobject>
73 <imagedata fileref="images/gentanh_2.png" format="PNG"/>
74 </imageobject>
75
76 <textobject>
77 <phrase> f 3 0 8192 "tanh" -10 10 0 - less distortion than f2 </phrase>
78 </textobject>
79
80 <caption>
81 <para> f 3 0 8192 "tanh" -10 10 0 - less distortion than f2</para>
82 </caption>
83 </mediaobject>
84
85 <mediaobject>
86 <imageobject>
87 <imagedata fileref="images/gentanh_3.png" format="PNG"/>
88 </imageobject>
89
90 <textobject>
91 <phrase> f 4 0 8192 "tanh" -10 15 0</phrase>
92 </textobject>
93
94 <caption>
95 <para> f 4 0 8192 "tanh" -10 15 0</para>
96 </caption>
97 </mediaobject>
98 </para>
99 </refsect1>
100
101 <refsect1>
102 <title>See Also</title>
103 <para>
104 <link linkend="GENexp"><citetitle>GENexp</citetitle></link> and
105 <link linkend="GENsone"><citetitle>GENsone</citetitle></link>.
106 <para> More information on this routine: <ulink url="http://www.csoundjournal.com/issue11/distortionSynthesis.html"><citetitle>http://www.csoundjournal.com/issue11/distortionSynthesis.html</citetitle></ulink>, written by Victor Lazzarini</para>
107 </para>
108 </refsect1>
109
110 <refsect1>
111 <title>Credits</title>
112 <para>Written by &namejohn;</para>
113 </refsect1>
114 </refentry>