home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / dsp / 2616 < prev    next >
Encoding:
Text File  |  1992-11-23  |  2.5 KB  |  44 lines

  1. Newsgroups: comp.dsp
  2. Path: sparky!uunet!usc!cs.utexas.edu!torn!nott!dgbt!clark.dgim.doc.ca!news
  3. From: yves@mars.dgrc.doc.ca (Yves Jolly)
  4. Subject: Re: Prefilter type for downsampling
  5. Message-ID: <1992Nov23.151504.9914@clark.dgim.doc.ca>
  6. Sender: news@clark.dgim.doc.ca (Usenet News)
  7. Reply-To: yves@mars.dgrc.doc.ca
  8. Organization: Communication Research Centre
  9. References: <By17CC.J2F@news.cso.uiuc.edu>
  10. Date: Mon, 23 Nov 92 15:15:04 GMT
  11. Lines:       24
  12.  
  13. In article J2F@news.cso.uiuc.edu, ja51359@uxa.cso.uiuc.edu (axelrod) writes:
  14. > If I want to lower a sample's sampling rate, what kind of filter should I use?
  15. > Is there a conventional digital filter design for this purpose specifically?
  16. > It's an audio signal.  How important is keeping phase linear in audio filters?
  17. > Thanks
  18. > Jeff
  19. 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
  20.  
  21.  
  22.  
  23.  
  24. dio signal before keeping one out of every N samples out of the filter.
  25.  
  26. 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 
  27.  
  28.  
  29.  
  30.  
  31. 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).
  32.  
  33. 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.
  34.  
  35. ---
  36. Yves Jolly        Email:    yves@mars.dgrc.doc.ca
  37. Communications Research Centre, Dept. of Communications
  38. P.O. Box 11490, Stn. H, Ottawa, Ont., CANADA  K2H 8S2
  39. Phone: (613) 998-2780        Fax: (613) 990-7987
  40.  
  41.