[comp.sys.mac.programmer] Sound Manager questions

ronw@inmet.UUCP (06/25/88)

I have two questions regarding the Sound Manager:

	1) The trap numbers for the sound manager calls are missing
	   from the list in the appendix of Inside Mac Vol. V.  How
	   does one access these routines via assembly language?
	
	2) Volume V is very vague on how to initialize a channel for
	   MIDI transmission.  For instance: how do you tell it which
	   serial port your MIDI interface is attached to?

-Ron Wallace
 Intermetrics, Inc.

stern@hc.DSPO.GOV (michael Stern) (06/30/88)

Sorry if this is old, but I was wondering if there were any way to use routines
from other languages (pascal,c) in the midst of Hypercard stacks?  I have an
early version of Hypercard, but I would upgrade if necessary.

I am almost done with a stack based on the Periodic Table stack that comes with
the program.  Among its myriad of features, it will graph and two periodic
properties against each other (for example, electron affinity by atomic mass).
Unfortunately, Hypertalk scripts are too slow to do the sorts in reasonable
time, and I'd rather do it in a real language.

						Thanks,
						Stern

evensen@husc9.harvard.edu (Erik Evensen) (05/18/91)

I'm trying to implement a (perhaps hairbrained) idea:

I want to use the Apple Sound Chip as a function generator.
Initially, I'd like to set it up to generate a square wave of various
frequencies.  I thought this would be easy, I read the Sound Manager
chapter in Inside Mac V and think the way to do this is with the
WaveForm synthesizer since I'd like to be able to have different
functions on different channels (i.e., stereo squarewaves).  Well,
I've been hacking around with this all afternoon and evening and can't
more than a couple of clicks (which I think show up when I initialize
the synthesizer).  I don't see how something like this can be very
difficult.  Please help me figure this out...Thanks in advance

Send me mail or post if you think this would be of somewhat general
interest.  I could also post a summary if there is enough interest and
answers.  Thanks again

--Erik (evensen@husc9.harvard.edu)