How Does a Computer Store Sound?
In order to understand how to manipulate and create sounds on a computer, you must understand how a computer stores sound. Use this help page as a reference guide. For detailed information, or if you have not done so already, be sure to read the Sound section of your textbook. |
Sound Samples A sound sample is a numerical representation of the pressure that a sound wave creates when it hits a microphone. If you take enough samples, you can describe the sound wave. A sequence of samples describes a simple sound wave: |
jump
to top
|
Sounds as Arrays of Samples A computer can store sequences of numbers as arrays. (See the help section on data structures for more help with arrays.) It is easy to see how the samples for the simple wave in the image above could be stored in an array. The first place in the array would contain the first sample, the second place would contain the second sample, and so on to the end of the sound. To manipulate sounds, then, you need to figure out how changing the numbers in the array will change the sound that is encoded. Manipulating a sound is actually manipulating an array. Creating a sound is actually creating an array. |
jump
to top
|