home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / dsp / 3105 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  3.4 KB

  1. Path: sparky!uunet!sequent!gaia.ucs.orst.edu!flop.ENGR.ORST.EDU!rutgers!sun-barr!cs.utexas.edu!torn!nott!dgbt!clark.dgim.doc.ca!news
  2. From: yves@mars.dgrc.doc.ca (Yves Jolly)
  3. Newsgroups: comp.dsp
  4. Subject: Re: DSP project: spectrum reversal
  5. Message-ID: <1993Jan26.145037.3608@clark.dgim.doc.ca>
  6. Date: 26 Jan 93 14:50:37 GMT
  7. References: <1k28e0INNddk@fido.asd.sgi.com>
  8. Sender: news@clark.dgim.doc.ca (Usenet News)
  9. Reply-To: yves@mars.dgrc.doc.ca
  10. Organization: Communication Research Centre
  11. Lines: 65
  12.  
  13. In article 1k28e0INNddk@fido.asd.sgi.com, gints@prophet.esd.sgi.com (Gints Klimanis) writes:
  14. > In article <1k25kgINNb73@geraldo.cc.utexas.edu>,
  15. > ccdo017@bongo.cc.utexas.edu (David Kirk) writes:
  16. > |> I am beginning a DSP project and need some assistance as to which
  17. > |> direction I should head.
  18. > |> 
  19. > |> The project entails taking the frequency response of any signal
  20. > |> after
  21. > |> it has passed through a simple filter (ie RC filter) and producing a
  22. > |> new signal which has its response reversed:
  23. > |> 
  24. > |> |                |
  25. > |> |------------              |          ----------
  26. > |> |            \           ----->   |         /        
  27. > |> |          \            |        /
  28. > |> |           \        |       /
  29. > |> |___________________ f          |_____________________  f
  30. > |> 
  31. > |> I know that taking the FFT will give the spectrum, but it would
  32. > |> be different for different signals. The only constant is the
  33. > |> (analog)
  34. > |> filters response. My design should be able to take any signal of any
  35. > |> spectral make-up.
  36. > |> 
  37. > Hi !
  38. > I am only guessing what you want to do.  If you change the sign of every
  39. > other sample of your signal, you will mirror the frequency response
  40. > around Fs/4 (process also termed spectral inversion: swapping the highs
  41. > with the lows).  If you want to mirror the frequency response of, for
  42. > example an FIR filter, change the sign of every other sample in the
  43. > filter impulse response (be sure not to flip the central sample. 
  44. > Otherwise you will invert the signal).  This is a simple way to convert
  45. > a low pass FIR to a high pass FIR with the frequency response mirrored
  46. > around Fs/4.
  47. > Changing the sign of every sample is the operation of multiplying the
  48. > signal by a full amplitude sinusoid at f=fs/2.  This process amplitude
  49. > modulates the signal out of band such that it aliases perfectly into the
  50. > base band.
  51.  
  52. Congratulations !  This is one of the simplest solution I have ever seen to
  53. a DSP problem.  Since we know that a reverse image of the spectrum "hides" in
  54. the negative (-fs/2 -> 0 Hz) frequencies, let's just use modulation to shift
  55. this image in the positive (0 -> fs/2 Hz) spectrum.  One can also generalize
  56. this for a complex input signal, by using a complex (quadrature) modulator.
  57. That's a DSP project that won't take too much time....
  58.  
  59. David, if you insist on using FFTs to do that, be aware that the more one plays
  60. around with the result of an FFT, the more trouble one has in reconstructing
  61. the signal after (using IFFTs).  In your case, the changes would be pretty
  62. drastic and I don't think you would get a high quality signal out of it.  In
  63. any case, you can try it, but I would recommend you use lots of windowing
  64. (100 % raised-cosine (Hanning)) and 100 % overlap to try to minimize the
  65. effects of block discontinuities.  I'd go for the other solution.
  66.  
  67. Good luck.
  68.  
  69. ---
  70. Yves Jolly        Email:    yves@mars.dgrc.doc.ca
  71. Communications Research Centre, Dept. of Communications
  72. P.O. Box 11490, Stn. H, Ottawa, Ont., CANADA  K2H 8S2
  73. Phone: (613) 998-2780        Fax: (613) 990-7987
  74.