home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / compress / 3805 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.7 KB

  1. Path: sparky!uunet!mcsun!ieunet!swift.cs.tcd.ie!omahony
  2. From: omahony@swift.cs.tcd.ie
  3. Newsgroups: comp.compression
  4. Subject: Re: U-Law Encoding....HELP!!!!
  5. Message-ID: <1992Nov11.173900.8528@swift.cs.tcd.ie>
  6. Date: 11 Nov 92 17:39:00 GMT
  7. References: <1992Nov10.163040.27563@rmece49.upr.clu.edu>
  8. Organization: Computer Science Department, Trinity College Dublin
  9. Lines: 42
  10.  
  11. In article <1992Nov10.163040.27563@rmece49.upr.clu.edu>, julior@rmece02.upr.clu.edu (Julio A. Rodriguez) writes:
  12. >     I've been working with the program PLAY and RECORD.  RECORD produces a
  13. > file with a .au extension and is supposse to use the U-LAW encoding method.
  14. > I need to decode this data to be able to process this information usign FFT.
  15. > If you got any ideas on how to do so please send me your ideas.  Thanks.
  16. >
  17.  
  18. Mu-Law encoding involves passing the analogue signal through a compressor
  19. that conforms to the Mu-Law before quantizing it.  I expect what you
  20. need to do is to "expand" the digital values by performing the reverse
  21. transformation on the digital values held in the file.
  22.  
  23. According to "Principles of Communication Systems", Taub & Schilling,
  24. McGraw Hill, 1986 pg 245
  25.  
  26. A Mu law compressor relates input to output by the relation
  27.  
  28.  
  29. y  = +   log(1+mu/x)
  30.      -  ______________
  31.          log(1+mu)
  32.  
  33. the plus sign applies when x is positive, and the minus sign is used when
  34. x is negative
  35.  
  36. where x = Input Voltage/ V and
  37.       y = Output Voltage/ V
  38.       range of allowable voltages is -V..+V
  39.      
  40.  
  41. The parameter mu determines the degree of compression, and a common value is
  42. 255
  43.  
  44. __________________________________________________________________________
  45. Hope this helps!
  46.  
  47. Donal O'Mahony,             omahony@cs.tcd.ie
  48. Computer Science Dept
  49. Trinity College
  50. Dublin 2
  51. Ireland
  52.