home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 311.lha / SoundConvert_v1.1 / SoundConvert.doc < prev    next >
Encoding:
Text File  |  1980-12-05  |  2.8 KB  |  57 lines

  1.  
  2.          SoundConvert V 1.1, written by Greg Dunlap on 4/13/89
  3.  
  4. (If you had the old version, which I now call "V 1.0", this one fixes the
  5. bug ("undocumented feature":-) where you only get 16-character filenames;
  6. also, the object code is smaller & more efficient.)
  7.  
  8.    This program converts a digitized sound sample from the Macintosh
  9. computer into a digitized sound sample for the Amiga computer, and
  10. vice-versa.  It will consequently (without meaning to) convert Atari ST
  11. sounds in the same way.
  12.    Type "SoundConvert" at the CLI prompt (sorry, this version only runs from
  13. CLI); you will then be prompted with "Enter sourcefile: ". Enter the name of
  14. the file you want to convert (you can enter a pathname up to 256
  15. characters). You wil then be prompted to "Enter destfile: ". Enter the name
  16. of the NEW file you want to create; this will be the converted sound file.
  17.  
  18.    The concept behind this program is actually simple. On both the Amiga and
  19. the Macintosh digitized sounds are stored as a string of bytes, or "samples"
  20. that all together make up a waveform. Each sample has a range of 256 steps;
  21. the value it holds determines the amplitude of the wave at that point. The
  22. only difference between the Amiga and the Mac samples is that the Amiga ones
  23. range from -128 to 127, and the Mac ones range from 0 to 255; therefore, the
  24. task of converting from Mac to Amiga boils down to subtracting 128 from each
  25. sample. An interesting side effect of subtracting within a single byte is
  26. that [if you subtract 128 from an Amiga sample, the subtraction sort of
  27. "wraps around" and turns the Amiga sample into a Mac sample! The upshot of
  28. all this is that you can use this program to not only convert sound samples
  29. you've taken off the Mac to Amiga, you can also convert your Amiga sounds to
  30. Mac ones for your Macintosh friends. The conversion process is the same both
  31. ways.
  32.  
  33.    This program is hereby declared public domain; this means you don't have
  34. feel guilty about not paying me any shareware fees. You are free to do what
  35. you want with the code, even try compiling it under Aztec C if you want. I
  36. only ask you give me some credit. (that is, unless you royally screw it up -
  37. then leave my name out of it! :-)
  38.  
  39.    Any money, hard disks, RAM chips, disks with pictures of naked babes, or
  40. helpful suggestions, hints, or bug reports will be gratefully accepted at
  41. the following address:
  42.  
  43.                 Greg Dunlap
  44.                 PO Box 1881
  45.                 Central Valley, CA
  46.                 96019
  47.  
  48. (This is my parent's address, and my only permanent one, so it may take a
  49. while to get back to you, if necessary)
  50.  
  51.    I hope this program proves useful to you. Enjoy!
  52.  
  53.                                                     Greg Dunlap
  54.                                                     4/13/89
  55.                                                     (1:51 AM)
  56.  
  57.