home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / apple2 / 27346 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.4 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!ucbvax!cxr_rs6000.med.ge.com!marc
  2. From: marc@cxr_rs6000.med.ge.com (Marc Wolfgram)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re:  MIDISynth tool programming questions
  5. Message-ID: <9301211704.AA09504@cxr_rs6000>
  6. Date: 21 Jan 93 17:04:57 GMT
  7. Sender: usenet@ucbvax.BERKELEY.EDU
  8. Organization: The Internet
  9. Lines: 22
  10.  
  11. William Hall asks:
  12. >1. In order to use a MIDI driver, it must be loaded into memory (by me).  By
  13. >  looking through the synthLab code, I found that this must be done by a 
  14. >  system loader call.  Where can I find the documentation for the system
  15. >  loader?  (Possibly GS/OS Ref?)
  16.  
  17. Yes... the GS/OS maunal covers the System Loader as well.
  18.  
  19. >3. According to the SetTempo call, the tempo range is 10-265 BPM with the
  20. >  parameter to the call ranging from 0 to 255 (BPM-10).  So how come synthLAB
  21. >  takes the tempo value stored in a song file, subtracts 5, and then multiplies
  22. >  the result by 2?
  23.  
  24. A guess... is the valuie stored in the file pre-scaled to 0..127 (i.e. a byte
  25. with the msb clear?  That would explain the range offset calculation you're
  26. seeing.  If the value is stored in a byte, and byte-wide math is applied, the
  27. full range would be signed as -128..127, so storing it in a half-value form
  28. would work.  This does create a small problem storing an "odd" temp value.
  29.  
  30. Marc Wolfgram
  31. AOL: M Wolfgram   GEnie: M.WOLFGRAM2   inet: marc@cxr_rs6000.med.ge.com
  32. There are two ways to write bug-free code and only the third one works!
  33.