MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Stereo Sound in Mma 3.0 on a Macintosh


I want to do some stereo sound stuff with Mathematica on my Macintosh.

Monoaural sound appears to work well. For example, 

Play[  Sin[1000/ t], {t,0,1}]

works as expected.

In the MMa 3.0 book, it says, in Appendix A under Play,

"Play[{f1,f2},{t,tmin,tmax}] produces stereo
 sound. The left hand channel is given first."
 
When I do 

Play[{Sin[2Pi 240 t],-Sin[2Pi 240 t]}, {t,0,1}, PlayRange -> {-2.,2.}]

I would expect to hear a pure tone out of each speaker. Instead, I hear nothing.
It appears that Mma is adding the two functions, and then sending the sum
to both speakers.

I am running Mma 3.0 on a Power Macintosh 7500/100, with System 7.5.3. 
I have two (cheap) speakers attached to the stereo miniplug.
With the Monitors and Sound (version 1.1) control panel I can get
significantly different volumes on the two speakers with the
Sound Out Balance slider.

Any help would be appreciated.

-- 
James D. Hanson                          ph. (334) 844-5044
Department of Physics                    fax (334) 844-4613
206 Allison Laboratory
Auburn University, AL 36849-5311         hanson at physics.auburn.edu


  • Prev by Date: Mathematica Classes in Denver-Boulder, CO
  • Next by Date: Wolfram Research Announces - Control Systems Professional
  • Previous by thread: Mathematica Classes in Denver-Boulder, CO
  • Next by thread: Wolfram Research Announces - Control Systems Professional