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