| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Sound: Pre-emphasize (in-place)...</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: Pre-emphasize (in-place)... |
| 13 | </b></font></table></table> |
| 14 | <p>A command to change the spectral slope of every selected <a href="Sound.html">Sound</a> object.</p> |
| 15 | <p>The reverse of <a href="Sound__De-emphasize__in-place____.html">Sound: De-emphasize (in-place)...</a>.</p> |
| 16 | <p>This is the in-place version of <a href="Sound__Filter__pre-emphasis____.html">Sound: Filter (pre-emphasis)...</a>, i.e., it does not create a new Sound object but modifies an existing object.</p> |
| 17 | <h2>Setting</h2> |
| 18 | <dl> |
| 19 | <dt><b>From frequency (Hz)</b> |
| 20 | <dd>the frequency <i>F</i> above which the spectral slope will increase by 6 dB/octave.</dd> |
| 21 | </dl> |
| 22 | <h2>Algorithm</h2> |
| 23 | <p>The pre-emphasis factor <i>α</i> is computed as</p> |
| 24 | <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> |
| 25 | <p>where Δ<i>t</i> is the sampling period of the sound. Every sample <i>x</i><sub><i>i</i></sub> of the sound, except <i>x</i><sub>1</sub>, is then changed, going down from the last sample:</p> |
| 26 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>x</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> |
| 27 | <h3>Links to this page</h3> |
| 28 | <ul> |
| 29 | <li><a href="Filtering.html">Filtering</a> |
| 30 | <li><a href="Sound__To_Formant__burg____.html">Sound: To Formant (burg)...</a> |
| 31 | <li><a href="Sound__To_PowerCepstrogram___.html">Sound: To PowerCepstrogram...</a> |
| 32 | <li><a href="What_was_new_in_3_7_.html">What was new in 3.7?</a> |
| 33 | </ul> |
| 34 | <hr> |
| 35 | <address> |
| 36 | <p>© Paul Boersma 2022-04-07</p> |
| 37 | </address> |
| 38 | </body> |
| 39 | </html> |