home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / audio / 3195 < prev    next >
Encoding:
Text File  |  1992-08-26  |  2.9 KB  |  58 lines

  1. Newsgroups: comp.sys.amiga.audio
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!src.honeywell.com!hwcae!ericj
  3. From: ericj@hwcae.Honeywell.COM (Eric Jacobsen)
  4. Subject: Re: Halving sample speed while keeping pitch
  5. In-Reply-To: djs@jet.uk's message of 26 Aug 92 14: 54:36 GMT
  6. Message-ID: <ERICJ.92Aug26131424@lagos.cfsat.Honeywell.COM>
  7. Sender: news@src.honeywell.com (News interface)
  8. Nntp-Posting-Host: lagos.hwcae.az.honeywell.com
  9. Organization: Honeywell, Air Transport Division; Phoenix, AZ
  10. References: <9208241809.AA00474@.nairobi.inel.gov.inel.gov.>
  11.     <ERICJ.92Aug24131911@lagos.cfsat.Honeywell.COM>
  12.     <1992Aug26.145436.5222@jet.uk>
  13. Date: Wed, 26 Aug 1992 19:14:24 GMT
  14. Lines: 42
  15.  
  16. In article <1992Aug26.145436.5222@jet.uk> djs@jet.uk (David J Stevenson) writes:
  17.  
  18.    >2. Take the upsampled signal and mix it with a sine wave that shifts
  19.    >the pitch back up. (You get a sum and difference frequency, you filter
  20.    >out the difference freq). Actually, this is kinda tough to do 
  21.    >digitally. It is a lot easier to do this in the analog domain when
  22.    >you play it back.
  23.    Eh?  What pitch sine wave? At what level?
  24.    What the software actually needs to do is double the number of samples
  25.    in the signal; this is what oversampling does.  So, between every sample
  26.    in the source signal add a sample at the zero level (may be zero, or 32768
  27.    or whatever, depending on number of bits and whether the signal data is
  28.    signed).  This gives the correct number of samples, but has introduced some
  29.    high-frequency distortion.
  30.  
  31. Ayup. Adds a lot of unnecessary crap to an otherwise clean signal. A real
  32. upsampler (or oversampler as you call it) interpolates the missing samples
  33. so you have the same nice clean signal you started with, only with more 
  34. samples (but no added bandwidth). Even so, doing this doesn't provide the
  35. time stretch with pitch preservation that the original poster was looking
  36. for.
  37.  
  38.    However, this distortion is ABOVE the maximum frequency present in the
  39.    original signal (see Nyquist theorem).  It can therefore be removed by a
  40.    simple filter.  How to design digital filters is a complex subject to
  41.    understand, but the algorithms for designing filters are available in the
  42.    public domain.  Search the comp.dsp FAQ for references on filter design.
  43.  
  44. DSP design is a lot fun, though. It's what I do for a living.
  45.  
  46. --
  47. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  48. * Eric Jacobsen        Honeywell Inc.                           *
  49. |     1-602-436-3941   Commercial Flight Systems, Air Transport |
  50. * HVN       436-3941   US Mail: P.O. Box 21111, MS 2Q34C1       *
  51. | FAX 1-602-436-1310   Phoenix AZ 85036-1111                    |
  52. * INet: ericj@hwcae.honeywell.com                               *
  53. | UUCP: uunet!hwcae.honeywell.com!ericj@uunet.uu.net            |
  54. * The opinions expressed are my own and therefore better        *
  55. | thought out than my employer's.                               |
  56. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  57.  
  58.