A little confused, can someone explain this?

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
pdun459
Posts: 190
Joined: Mon Oct 08, 2012 8:25 pm
Operating System: Please select

A little confused, can someone explain this?

Post by pdun459 » Mon Feb 10, 2014 6:35 pm

Why are the top and bottom of a waveform graphic +1 and -1? In the picture, the peak amplitude is 0 db, but it's represented on the graphic as +1. Shouldn't it be 0?
Attachments
Untitled.jpg
Untitled.jpg (105.79 KiB) Viewed 487 times

pdun459
Posts: 190
Joined: Mon Oct 08, 2012 8:25 pm
Operating System: Please select

Re: A little confused, can someone explain this?

Post by pdun459 » Mon Feb 10, 2014 6:41 pm

Never mind, as soon as I posted this I found the answer. It has to be set to Waveform (db). :)

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: A little confused, can someone explain this?

Post by kozikowski » Mon Feb 10, 2014 6:43 pm

The blue waves are in percent because it's easier to see what you're doing than in dB. You can change the blue waves to dB if you want with the little black arrow drop-down to the left.
"Waveform (dB)."

You see right away that the area of interest becomes scrunched up and hard to see. The waves then represent the whole audible range, but you usually only care about the top 20dB or so and that works in percent.

Koz

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: A little confused, can someone explain this?

Post by kozikowski » Mon Feb 10, 2014 6:48 pm

That rang alarm bells because usually the only people who worry about that are trying to do scientific research or other academic task. Audacity doesn't lend itself very well to doing that. It's an Audio Production Editor, not a WAV editor. There are techniques used that sound good and aren't necessarily statistically accurate.

Koz

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: A little confused, can someone explain this?

Post by steve » Mon Feb 10, 2014 9:21 pm

pdun459 wrote:Why are the top and bottom of a waveform graphic +1 and -1? In the picture, the peak amplitude is 0 db, but it's represented on the graphic as +1. Shouldn't it be 0?
The conventional way to represent waveforms is with a "dB" vertical scale, which as you say would be "0" at full scale. ( 0.0 at the top and at the bottom and "minus infinity" at the centre line).

As you have discovered, Audacity does not always do things the conventional way.

I think that the main reason for the +/- 1 scale was to make it easier for people that are new to audio technology (though I don't personally agree with the validity of that argument). However there is also a sound technical reason for the +/- 1 scale:

In digital audio, the audio is made up of "samples". These are measurements taken in very rapid succession (typically 44100 times per second) of the analogue waveform.
These measurements are stored as binary numbers. There are different formats that those binary number can take, for example, "signed 16 bit", or "signed 24 bit", or, as is the default case for Audacity, "32 bit float". Whichever number format is used, the values are "normalized" to give a common decimal representation of a "valid" signal range (-inf to 0 dB) of +1.0 to -1.0. Thus the short answer to your question is that +/- 1.0 is the (decimal) numerical range of sample values.

If you have a look at the "Sample Data Export" analysis tool (http://manual.audacityteam.org/o/man/sa ... xport.html) you can verify that this is the case.

pdun459 wrote:Never mind, as soon as I posted this I found the answer. It has to be set to Waveform (db)
For most purposes the "Waveform dB" is not very useful because it causes the waveform to appear "squashed".
In practice, the +/- 1.0 range does not take long to get used to, even if you are more familiar with dB.
The conversion betweem "dB" and "linear" is quite simple if you remember the number "6".
Halving the "linear" amplitude is very close to a drop of 6 dB.
Doubling the linear amplitude is an increase of 6 dB.
Thus you can easily approximate the dB value when looking at the normal "Waveform" view.
Full track height = 0 dB
1/2 track height = -6 dB
1/4 track height = 12 dB
1/8 track height = -18 dB
and so on.

Having a dB scale on the normal Waveform view is a feature request. If you'd like to vote for that feature request, please say so and I'll add your vote. (Voting does not mean that it will be implemented any time soon, but it does provide a reference for the popularity of proposed features).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

pdun459
Posts: 190
Joined: Mon Oct 08, 2012 8:25 pm
Operating System: Please select

Re: A little confused, can someone explain this?

Post by pdun459 » Mon Feb 10, 2014 11:21 pm

Very educational indeed. Much appreciated. :)

Post Reply