| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Sound: Filter (de-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 (de-emphasis)... |
| 13 | </b></font></table></table> |
| 14 | <p>A command to filter every selected <a href="Sound.html">Sound</a> object. The resulting Sound object has a lower spectral slope.</p> |
| 15 | <p>The reverse of <a href="Sound__Filter__pre-emphasis____.html">Sound: Filter (pre-emphasis)...</a>. For an example, see <a href="Source-filter_synthesis.html">Source-filter synthesis</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 decrease by 6 dB/octave.</dd> |
| 20 | </dl> |
| 21 | <h2>Algorithm</h2> |
| 22 | <p>The de-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 recursively as:</p> |
| 25 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>y</i><sub>1</sub> = <i>x</i><sub>1</sub></table> |
| 26 | <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>y</i><sub><i>i</i>−1</sub></table> |
| 27 | <h3>Links to this page</h3> |
| 28 | <ul> |
| 29 | <li><a href="Filtering.html">Filtering</a> |
| 30 | <li><a href="Sound__De-emphasize__in-place____.html">Sound: De-emphasize (in-place)...</a> |
| 31 | </ul> |
| 32 | <hr> |
| 33 | <address> |
| 34 | <p>© Paul Boersma 2003-03-09</p> |
| 35 | </address> |
| 36 | </body> |
| 37 | </html> |