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