| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Sound: Filter (pre-emphasis)...</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 |
Sound: Filter (pre-emphasis)... |
| 13 |
</b></font></table></table> |
| 14 |
<p>A command to filter each selected <a href="Sound.html">Sound</a> object. The resulting Sound object has a higher spectral slope.</p> |
| 15 |
<p>The reverse of <a href="Sound__Filter__de-emphasis____.html">Sound: Filter (de-emphasis)...</a>.</p> |
| 16 |
<h2>Setting</h2> |
| 17 |
<dl> |
| 18 |
<dt><b>From frequency (Hz)</b> |
| 19 |
<dd>the frequency <i>F</i> above which the spectral slope will increase by 6 dB/octave.</dd> |
| 20 |
</dl> |
| 21 |
<h2>Algorithm</h2> |
| 22 |
<p>The pre-emphasis factor <i>α</i> is computed as</p> |
| 23 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>α</i> = exp (-2 <i>π</i> <i>F</i> Δ<i>t</i>)</table> |
| 24 |
<p>where Δ<i>t</i> is the sampling period of the sound. The new sound <i>y</i> is then computed as:</p> |
| 25 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>y</i><sub><i>i</i></sub> = <i>x</i><sub><i>i</i></sub> - <i>α</i> <i>x</i><sub><i>i</i>-1</sub></table> |
| 26 |
<h3>Links to this page</h3> |
| 27 |
<ul> |
| 28 |
<li><a href="Filtering.html">Filtering</a> |
| 29 |
<li><a href="Sound__Pre-emphasize__in-place____.html">Sound: Pre-emphasize (in-place)...</a> |
| 30 |
</ul> |
| 31 |
<hr> |
| 32 |
<address> |
| 33 |
<p>© Paul Boersma 2003-03-09</p> |
| 34 |
</address> |
| 35 |
</body> |
| 36 |
</html> |