Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of negative values in audio waveforms

Tags:

I've been pondering this question lately. I've got this small app I've built, in which I visualize a wav file and give it a wave form (similar to what audacity does).

I've noticed that from some reason there are negative and positive values. Well, I can understand the importance of negative values in sinusoidal waves, where the direction represents the direction of the electric current. But what does negative value represent in music?

like image 733
vondip Avatar asked Sep 04 '09 17:09

vondip


People also ask

What does negative sound wave mean?

Your phrase negative sound just means sound that is 180º out of phase with the sound you're trying to cancel. However it's rarely possible to cancel the sound over more than a very small region. The cancellation requires the amplitude of the cancelling sound to be precisely matched to amplitude of the noise.

What does negative amplitude mean in sound?

If the electric field 'wave' has a 'negative' amplitude, it just signifies that the electric field vector at that particular point is in the opposite direction of positive.

What does an audio waveform represent?

A waveform is an image that represents an audio signal or recording. It shows the changes in amplitude over a certain amount of time. The amplitude of the signal is measured on the y-axis (vertically), while time is measured on the x-axis (horizontally).


1 Answers

Sound is fundamentally a pressure wave, made up of "peaks" which are regions of higher pressure and "troughs" which are regions of lower pressure. A microphone responds to the incident pressure wave by taking advantage of some physical material property to measure that pressure over time. Making a recording is the process of sampling those measurements and transcribing them to some media.

A reasonable representation to choose is to call the ambient pressure zero, with higher and lower pressures positive and negative. Another reasonable representation is to take ambient pressure as half-scale, with lower pressures below and higher pressures above half. Other representations are possible, and it isn't even required that the relationship between the incident pressure and the measured value be linear.

Whether a signed or unsigned representation is used is only a matter of history and convention. 16-bit audio is usually represented as signed but 8-bit audio is usually not, for instance.

Historically, the telephone system has used 8 bit unsigned measurements following a non-linear function called either a-law or µ-law. The non-linear representation supports greater dynamic range within the same bit rate than a linear representation.

like image 102
RBerteig Avatar answered Sep 28 '22 20:09

RBerteig