[comp.sys.mac.programmer] Sound help!

phd@speech1.cs.cmu.edu (Paul Dietz) (07/21/88)

I got a request the other day to help someone out with the following:

"Essentially all that we want to do is play simultaneously two tones of the
same intensity, using a waveform that has appreciable harmonic content, so
that any  beats between nearly-coincident harmonics will be readily apparent.
These two tones will generally form intervals of either fifths or major thirds.
They can be specified either as two frequencies, or as a lower frequency and
a frequency ratio, or as a lower frequency and an interval in cents, whatever
the Mac sound manager would prefer.  We don't need dynamic variations, and we
don't need changes in timbre.  A two-octave frequency range from A3 (220 Hz)
to A5 (880 Hz) should be more than sufficient.  It is essential, however, that
we be able to play an arbitrary pair of frequencies, because we don't want to
play intervals only in equal temperament, although we would be satisfied to
base all the tunings on A4 = 440."

Unfortunately, I have yet to muck with the sound manager, and seem to recall
some previous discussion about problems with the documentation in IM, Vol. 5.
Does anyone have some source code (LSC prefered, but not absolutely essential)
the gives some basic examples? Any pointers would be much appreciated!

Paul H. Dietz                                        ____          ____
Dept. of Electrical and Computer Engineering        / oo \        <_<\\\
Carnegie Mellon University                        /|  \/  |\        \\ \\
--------------------------------------------     | | (  ) | |       | ||\\
"If God had meant for penguins to fly,             -->--<--        / / |\\\  /
he would have given them wings."            _________^__^_________/ / / \\\\-