[comp.sys.amiga] Correlating IFF SMUS note numbers to IFF 8SVX sample octaves

karl@sugar.UUCP (Karl Lehenbauer) (05/15/88)

Does anyone know a way from the IFF SMUS format to determine which octave
of an IFF 8SVX sample is to be played?  I am trying to play DMCS IFF
files.  Soundscape IFF files are brain damaged in that they set the 8SVX
bits to specify MIDI devices rather than Amiga instruments.  If DMCS
files are brain damaged too or there are DMCS-specific chunks that I
must use, please let me know, including specifics if possible.

Also, has anyone already written some sort of periodic timer.device that
is driven by copper interrupts to produce a rock solid, high precision
timer?  I am planning to get a vertical retrace interrupt and, in there,
see if I need any interrupts within this video frame and if so, merge
a copper instruction to generate a 68000 interrupt at the appropriate
scan line.  Is this the way to do it?  Does anyone have a better way or,
better, working examples of either?  

Also, I had trouble before trying to execute C code inside interrupts.
I used manx and specified '+p' to get the full 32-bit model and relevant
register saves gratis.  It would do stuff OK but always bombed on return.
I'm new to this area, so pardon my stupidity.  I was probably trying to
do things that aren't permitted.  Is it OK to DoIO inside an interrupt?
How about to send messages?  The Exec manual is pretty thin in this area.

I feel safe enough to promise a public domain SMUS player as soon as the
SMUS/8SVX problem is solved.  This is the only remaining known severe bug 
in an otherwise working, and totally well behaved, program.  Source will 
be included, so if you send the answer, you'll get source to a SMUS player 
all the sooner.
-- 
"Now here's something you're really going to like!" -- Rocket J. Squirrel
..!{bellcore!tness1,uunet!nuchat}!sugar!karl, Unix BBS (713) 438-5018