Debian Codegraph @

docs/manual/Create_Sound_as_gammatone___.html

raw
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Create Sound as gammatone...</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b>
12 Create Sound as gammatone...
13 </b></font></table></table>
14 <p>A command to create a <a href="Sound.html">Sound</a> as a <a href="gammatone.html">gammatone</a>.</p>
15 <h2>Settings</h2>
16 <dl>
17 <dt><b>Name</b>
18 <dd>the name of the resulting Sound object.</dd>
19 <dt><b>Minimum time (s)</b> and <b>Maximum time (s)</b>
20 <dd>the start and end time of the resulting Sound.</dd>
21 <dt><b>Sampling frequency (Hz)</b>
22 <dd>the <a href="sampling_frequency.html">sampling frequency</a> of the resulting Sound.</dd>
23 <dt><b>Gamma</b>
24 <dd>determines the exponent of the polynomial.</dd>
25 <dt><b>Frequency (Hz)</b> and <b>Bandwidth (Hz)</b>
26 <dd>determine the frequency and damping of the cosine wave in the gammatone.</dd>
27 <dt><b>Initial phase (radians)</b>
28 <dd>the initial phase of the cosine wave.</dd>
29 <dt><b>Addition factor</b> (standard value: 0)
30 <dd>determines the degree of asymmetry in the spectrum of the gammatone. The zero default value gives a gammatone. A value unequal to zero results in a so called <i>gammachirp</i>. A negative value is used in auditory filter modelling to guarantee the usual direction of filter asymmetry, which corresponds to an upward glide in instantaneous frequency.</dd>
31 <dt><b>Scale amplitudes</b>
32 <dd>determines whether the amplitudes will be scaled to fit in the range (-1, 1).</dd>
33 </dl>
34 <h2>Purpose</h2>
35 <p>to create a Sound according to the following formula:</p>
36 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>t</i><sup><i>&#947;</i>&#8211;1</sup> e<sup>&#8211;2<i>&#960;</i>&#183;<i>bandwidth</i>&#183;<i>t</i></sup> cos (2<i>&#960;&#183;frequency&#183;t</i> + <i>additionFactor</i>&#183;ln(<i>t</i>) + <i>initialPhase</i>),</table>
37 <p>The <i>gammachirp</i> function has a monotonically frequency-modulated carrier (the chirp) with instantaneous frequency </p>
38 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>instantaneousFrequency</i>(<i>t</i>) = <i>frequency</i> + <i>additionFactor</i> / (2&#183;&#960;&#183;<i>t</i>)</table>
39 <p>and an envelope that is a gamma distribution function. It is a theoretically optimal auditory filter, in the sense that it leads to minimal uncertainty in the joint time and scale representation of auditory signal analysis.</p>
40 <p>For faithful modelling of the inner ear, <a href="Irino___Patterson__1997_.html">Irino & Patterson (1997)</a> conclude that a value of approximately 1.5 * ERB (<i>frequency</i>) is appropriate for <i>bandwidth</i>. ERB stands for <a href="equivalent_rectangular_bandwidth.html">equivalent rectangular bandwidth</a>. Their formula for ERB is:</p>
41 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle>ERB(<i>f</i>) = 6.23 10<sup>&#8211;6</sup> <i>f</i><sup>2</sup> + 93.39 10<sup>&#8211;3</sup> <i>f</i> + 28.52.</table>
42 <p>To avoid <a href="aliasing.html">aliasing</a> in the chirp sound, a sound is only generated during times where the instantaneous frequency is greater than zero and smaller than the <a href="Nyquist_frequency.html">Nyquist frequency</a>.</p>
43 <h3>Links to this page</h3>
44 <ul>
45 <li><a href="New_menu.html">New menu</a>
46 </ul>
47 <hr>
48 <address>
49 <p>© djmw 20161013</p>
50 </address>
51 </body>
52 </html>