| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Filtering</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 |
Filtering |
| 13 |
</b></font></table></table> |
| 14 |
<p>This tutorial describes the use of filtering techniques in Praat. It assumes you are familiar with the <a href="Intro.html">Intro</a>.</p> |
| 15 |
<h2>Frequency-domain filtering</h2> |
| 16 |
<p>Modern computer techniques make possible an especially simple batch filtering method: multiplying the complex spectrum in the frequency domain by any real-valued filter function. This leads to a zero phase shift for each frequency component. The impulse response is symmetric in the time domain, which also means that the filter is <i>acausal</i>: the filtered signal will show components before they start in the original.</p> |
| 17 |
<dl> |
| 18 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Spectrum__Filter__pass_Hann_band____.html">Spectrum: Filter (pass Hann band)...</a></dd> |
| 19 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Spectrum__Filter__stop_Hann_band____.html">Spectrum: Filter (stop Hann band)...</a></dd> |
| 20 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sound__Filter__pass_Hann_band____.html">Sound: Filter (pass Hann band)...</a></dd> |
| 21 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sound__Filter__stop_Hann_band____.html">Sound: Filter (stop Hann band)...</a></dd> |
| 22 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sound__Filter__formula____.html">Sound: Filter (formula)...</a></dd> |
| 23 |
</dl> |
| 24 |
<p>Spectro-temporal:</p> |
| 25 |
<dl> |
| 26 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="band_filtering_in_the_frequency_domain.html">band filtering in the frequency domain</a></dd> |
| 27 |
</dl> |
| 28 |
<h2>Fast time-domain filtering</h2> |
| 29 |
<p>Some very fast Infinite Impulse Response (IIR) filters can be defined in the time domain. These include recursive all-pole filters and pre-emphasis. These filters are causal but have non-zero phase shifts. There are versions that create new Sound objects:</p> |
| 30 |
<dl> |
| 31 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sound__Filter__one_formant____.html">Sound: Filter (one formant)...</a></dd> |
| 32 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sound__Filter__pre-emphasis____.html">Sound: Filter (pre-emphasis)...</a></dd> |
| 33 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sound__Filter__de-emphasis____.html">Sound: Filter (de-emphasis)...</a></dd> |
| 34 |
</dl> |
| 35 |
<p>And there are in-place versions, which modify the existing Sound objects:</p> |
| 36 |
<dl> |
| 37 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sound__Filter_with_one_formant__in-place____.html">Sound: Filter with one formant (in-place)...</a></dd> |
| 38 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sound__Pre-emphasize__in-place____.html">Sound: Pre-emphasize (in-place)...</a></dd> |
| 39 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sound__De-emphasize__in-place____.html">Sound: De-emphasize (in-place)...</a></dd> |
| 40 |
</dl> |
| 41 |
<h2>Convolution</h2> |
| 42 |
<p>A Finite Impulse Response (FIR) filter can be described as a sampled sound. Filtering with such a filter amounts to a <i><b>convolution</i></b> of the original sound and the filter:</p> |
| 43 |
<dl> |
| 44 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sounds__Convolve___.html">Sounds: Convolve...</a></dd> |
| 45 |
</dl> |
| 46 |
<h2>Described elsewhere</h2> |
| 47 |
<p>Described in the <a href="Source-filter_synthesis.html">Source-filter synthesis</a> tutorial:</p> |
| 48 |
<dl> |
| 49 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sound___Formant__Filter.html">Sound & Formant: Filter</a></dd> |
| 50 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Sound___FormantGrid__Filter.html">Sound & FormantGrid: Filter</a></dd> |
| 51 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="LPC___Sound__Filter___.html">LPC & Sound: Filter...</a></dd> |
| 52 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="LPC___Sound__Filter__inverse_.html">LPC & Sound: Filter (inverse)</a></dd> |
| 53 |
</dl> |
| 54 |
<h3>Links to this page</h3> |
| 55 |
<ul> |
| 56 |
<li><a href="Sound.html">Sound</a> |
| 57 |
<li><a href="Types_of_objects.html">Types of objects</a> |
| 58 |
</ul> |
| 59 |
<hr> |
| 60 |
<address> |
| 61 |
<p>© Paul Boersma 2001,2003,2008,2010</p> |
| 62 |
</address> |
| 63 |
</body> |
| 64 |
</html> |