home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / rec / video / 13666 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  3.1 KB

  1. Xref: sparky rec.video:13666 rec.video.production:1799
  2. Path: sparky!uunet!ogicse!uwm.edu!daffy!uwvax!astroatc!vidiot!brown
  3. From: brown@vidiot.UUCP (Vidiot)
  4. Newsgroups: rec.video,rec.video.production
  5. Subject: Re: Computing Surround Sound; adding surround to home videos
  6. Keywords: An odd question, but...
  7. Message-ID: <4443@vidiot.UUCP>
  8. Date: 17 Nov 92 19:52:29 GMT
  9. Article-I.D.: vidiot.4443
  10. References: <1992Nov12.054614.29516@foretune.co.jp> <4430@vidiot.UUCP> <1992Nov15.171450.9320@cis.ohio-state.edu> <1992Nov16.051211.4024@foretune.co.jp>
  11. Reply-To: brown@vidiot.UUCP (Vidiot)
  12. Organization: Vidiot's Hangout
  13. Lines: 46
  14.  
  15. In article <1992Nov16.051211.4024@foretune.co.jp> trebor@foretune.co.jp (Robert J Woodhead) writes:
  16. <fontana@iguana.cis.ohio-state.edu (Mark Fontana) writes:
  17. <
  18. <>>It is a lot easier than you think.  You only really have to worry about
  19. <>>two audio channels - left and right.  To output the center channel, you make
  20. <>>the left and right channels equal.  To make the surround channel you change
  21. <>>the phase (180 degrees) of the left or right channel.
  22. <
  23. <>Right.  This works, more or less.  I haven't got a real Dolby processor
  24. <>yet, just the poor man's setup described here every few days.
  25. <
  26. <This is helpful, but being a computer (graphics) weenie, I'm a little
  27. <confused by the meaning of "changing phase."  Can someone elucidate?
  28. <What I'm really looking for is the mixing algorithms (eg: various'
  29. <digital datastreams in, mixed datastreams out.)
  30.  
  31. As a teaching tool, we'll use a pure sine wave at 1 kHz.  As a reference point,
  32. we'll use the positive peak of the sine wave to be 0 degrees.  If this sine
  33. wave is sent to both the left and right channels, the left and right channels
  34. are considered in phase (which also equals the center channel in this case).
  35.  
  36. For a 180 degree out-of-phase sine wave, take the positive peak of the sine
  37. wave and now make it it negative peak.  The negative peak now becomes the
  38. positive peak.  If you were to look at these waveforms on an oscilloscope,
  39. the 180 degree sine wave is exactly upside-down from the reference sinewave.
  40. That is the meaning of 180 degrees out-of-phase.  If you put the two signals
  41. into the left and right channels, you now have the surround channel.  In a
  42. perfect system, if you were to change the stereo amp to mono mode, you would
  43. hear nothing, since the two signals cancel each other out.
  44.  
  45. Now, for the purpose of digital audio, if your audio is represented as signed
  46. data, just invert the sign bit.  That will get you the required 180 phase
  47. shift.  Keep in mind that you have to keep a copy of the original, send it
  48. to one of the audio channels and the inverted data is sent to the other audio
  49. channel.
  50.  
  51. If your audio is represented as unsigned data, then it is a tiny bit tougher.
  52. You need to mathematically flip the represented audio around the mean center.
  53. Working with signed audio is much better, and easier.
  54.  
  55. Hope this helps, a little bit.
  56. -- 
  57.       harvard\                          spool.cs.wisc.edu!astroatc!vidiot!brown
  58. Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
  59.       rutgers/            INTERNET:vidiot!brown%astroatc.UUCP@spool.cs.wisc.edu
  60.                                    brown@wi.extrel.com
  61.