home *** CD-ROM | disk | FTP | other *** search
/ Esprit de Apple Corps / EDAC-1.iso / MOD.Utilities / Info / AMIGAAUDIO.TXT next >
Text File  |  1993-03-20  |  2KB  |  60 lines

  1. Al,
  2.  
  3. I'll try to explain how the notes are played on the Amiga so you can
  4. figure out how to handle them. If I'm unclear on any detail feel free
  5. to ask questions.
  6.  
  7. The Amiga's audio DMA runs on a bus cycle of 2.79365E-07 seconds. (All
  8. you really need to know about the Amiga's audio DMA for your purposes
  9. is this number.) All the sample playback periods are based on this
  10. number.
  11.  
  12. So the a table can be constructed of Amiga playback sample periods
  13. with the following formula:
  14.  
  15.                               1
  16.     Sample period=---------------------------
  17.                   Sampling rate * 2.79365E-07
  18.  
  19. And you get the following table.
  20.  
  21.            C    C#   D    D#   E    F    F#   G    G#   A    A#   B
  22.         ------------------------------------------------------------
  23. 1st Oct.| 856  808  762  720  678  640  604  570  538  508  480  453
  24.         |
  25. 2nd Oct.| 428  404  381  360  339  320  302  285  269  254  240  226
  26.         |
  27. 3rd Oct.| 214  202  190  180  170  160  151  143  135  127  120  113
  28.  
  29.  
  30. This gives the values for the 3 octaves the Amiga can play from a raw
  31. sample.
  32.  
  33. To get the sample rates in samples per second that you'll need you
  34. use the formula:
  35.  
  36.                                     1
  37.      Sample rate(Hz) =---------------------------
  38.                       Sample period * 2.79365E-07
  39.                       (from table)
  40.  
  41. So for a note C-2 the sample rate is 8363 Hz.
  42.  
  43. The fine tuning is accomplished buy adding/subtracting to the periods
  44. taken from period table at playback. Thus you get this conversion
  45. formula:
  46.  
  47.                                         1
  48.      Sample rate(Hz) =------------------------------------------
  49.                       (Sample period + Finetuning) * 2.79365E-07
  50.  
  51. (Finetuning value can be positive or negative)
  52.  
  53. MED and the newer Trackers can also use IFF instrument files which
  54. contain a sample for each octave. With these instruments you use only
  55. the playback rates from one octave but a different sample from the
  56. file. This allows five instead of three octaves per instrument. The
  57. IFF specifications should be available in the Pro/Am libraries.
  58.  
  59. -Mike
  60.