Article View: comp.dsp
Article #1823Re: Prefilter type for downsampling
From: Yves Jolly
Date: Mon, 23 Nov 1992 15:15
Date: Mon, 23 Nov 1992 15:15
30 lines
2559 bytes
2559 bytes
In article J2F@news.cso.uiuc.edu, ja51359@uxa.cso.uiuc.edu (axelrod) writes: > > If I want to lower a sample's sampling rate, what kind of filter should I use? > Is there a conventional digital filter design for this purpose specifically? > It's an audio signal. How important is keeping phase linear in audio filters? > > Thanks > Jeff > What you need is called a decimation filter. This can be a lowpass FIR designed at your initial sampling rate. If there is no noise above your band of interest, you don't even need a filter ! Just keep one out of every N sample, and you have the simplest decimation filter. Now, if there happens to be some noise (as is usually the case) above the band of interest, you would probably like to avoid having some of it aliased back in your signal. Just filter out as much as you can without distorting the au dio signal before keeping one out of every N samples out of the filter. If computing speed is of interest to you, be aware that interpolation-by-2 and decimation-by-2 filters can often be designed as what is called a half-band filter. These filters have the nicest property: every second coefficient is 0. See the advantage ? At the expense of a sligthly different data structure, you get the result in (almost) half the time. If you want to design one, here is how: I use Park-McClellan (equiripple) FIR type of filter design. Everything you specify should be symmetric about Fs/4, including passband and stopband ripple, as well as the transition band (ex: for Fs/2 = 0.5, PBC = 0.2, SBC = 0.3, PBR = 0.01, SB = 0.01 will give you a half-band filter). From my own experience, phase is important for the quality of audio, but phase linearity is not. What really hurts an audio signal is phase discontinuity. However this is not an issue here since decimation filters can be FIR, thus linear. --- Yves Jolly Email: yves@mars.dgrc.doc.ca Communications Research Centre, Dept. of Communications P.O. Box 11490, Stn. H, Ottawa, Ont., CANADA K2H 8S2 Phone: (613) 998-2780 Fax: (613) 990-7987
Technical Details
Message-ID:
<1992Nov23.151504.9914@clark.dgim.doc.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!torn!nott!dgbt!clark.dgim.doc.ca!newsReferences:
<By17CC.J2F@news.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.dsp Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!torn!nott!dgbt!clark.dgim.doc.ca!news From: yves@mars.dgrc.doc.ca (Yves Jolly) Subject: Re: Prefilter type for downsampling Message-ID: <1992Nov23.151504.9914@clark.dgim.doc.ca> Sender: news@clark.dgim.doc.ca (Usenet News) Reply-To: yves@mars.dgrc.doc.ca Organization: Communication Research Centre References: <By17CC.J2F@news.cso.uiuc.edu> Date: Mon, 23 Nov 92 15:15:04 GMT Lines: 24