To process images, a computer assigns red, green and blue values to every pixel. How does a computer manage sound? What are the values assigned?

95 views
0

To process images, a computer assigns red, green and blue values to every pixel. How does a computer manage sound? What are the values assigned?

In:

All sound waves, even complex ones like talking or instruments are just single intensities at single moments in time. You assign each value in time an intensity and when you play it back you get the whole sound. Depending on how finely you chop up the timeline changes how good the sound will be reproduced.

For sound it’s actually not all that difficult. Sound is pressure waves in the air. You record the pressure very quickly (we’re talking like 44 thousand times a second for CDs). When you play it back you move the speakers at the same rate. The speaker moving causes pressure changes in the air and Bingo.

almost the same way, the amplitude of the air pressure.

At t=0s, amplitude=0.4
At t=0.00001s, amplitude=0.402

It looks like it takes a lot of data for any significant length, but computers are good at stupid but large problems.

You can then store multiple amplitudes for stereo left/right or even center/rear etc. The next step is then usually to compress the data for transmission.

Sound may be stored as a gray image. The sound recorded may be transferred to sound-points. Each point represents one tone of different pitch (sound wave frequency) the higher up in the image the higher pitch. Also each point brightness represents the tone volume (sound wave amplitude). Finally every vertical column of points is one measurement of sound in time, there are a lot of measure,ents per second. You can also “compress” the “sound image” to improve its size. Also there are other more storage-space effective methods to break souns into “image points”.

May be you are asking how does the computer make the wave pressure on the air? There is a electro magnet on the speaker that get activated with the electric signal sent by the computer, this magnet is attached to a membrane, this membrane will move back and forward when the magnet is activated generating the pressure waves they are speaking about. The more frequent the electric signal the more amount of waves pressure per time on the air and higher the pitch you hear.