[comp.sys.mac.programmer] Sound Manager and snd resources

recerik@alliant.uni-c.dk (Erik Bertelsen) (08/25/89)

As a new member of a multi media project
I'm trying to learn how to programme a macintosh computer. In 
the project we are using the MPW programming environment. 
As a resource programming exercise I have decided to construct 
some 'snd ' resources containing a wavetable sound and a four 
part setting of a tune. For that purpose I have been studying the 
'Sound Manager Documentation' from Apple. I started to see how 
the sound commands are working, so that I could 'translate' my 
musical score. 
That seems not to be very difficult, but how do I combine a 
sequence of NoteCmds with a resource containing a 
'generalWaveTableSynth' so that I can have my four parts played 
synchronously ?
Must the header of the wave table contain information about 
number of samples etc. like the generalSampledSynth ?
Can I have the sound information in one resource and open 4 
channels with SndNewChannel each using the same wave table and 
the score represented as NoteCmds in another resource? When I 
want to play the score, do I then have to open yet another channel 
for the performance of then NoteCmds, and how do that channel 
know how to find the four sound channels?
I have made several experiments all of them ending with 
silence or crash.

Erik Bertelsen
UNI-C, The Danish Computing Centre for Research and Education.