Talk About Network

Google





Electronic Equipment > Digital Signal Processing (DSP) > Re: Amplitude ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 21 of 36 Topic 14008 of 14426
Post > Topic >>

Re: Amplitude Decibel conversion problem

by Randy Yates <yates@[EMAIL PROTECTED] > Oct 8, 2008 at 05:13 PM

"jungledmnc" <jungledmnc@[EMAIL PROTECTED]
> writes:

> Hi,
> this question might be very trivial, but I haven't found good
explanation
> anywhere else.
>
> I have an audio signal - some sine. Use a wavelabl to look at the
> waveform, and its maximum is at about 0.6. When I change the display
into
> dB it shows about -5dB at that level. 
> But this does not make sense - the formula is 10*log10(amplitude). 

No. The formula is 

    dB = 10 * log10(P / P_ref)   [1]

> So it should be -2.5dB. 

No, 0.6 V peak should be about -4.44 dB.

> I have found, that this is because we use squares for comparison : 10
> * log10(amp1^2 / amp2^2) = 20 * log10(amp1 / amp2)

Right equation, wrong reason. We use squares for voltages (or
amplitudes, as you call them) because the decibel formula ALWAYS relates
two powers (see equation [1]), and power is related to the square of
voltage.

Since P = V^2 / R, then if the two powers (P and P_ref) both have the
same resistance R, then we can also compare voltages using dB.

> They say it is often used in electronics to compare voltages, but why is
> it used in digital audio? Yeah I know that the digital values are
> equivalent to resulting electrical power, but we are not comparing
anything
> to anything. 

You are, by definition, comparing one power level to a reference power
level. That is the DEFINITION of dB (see equation [1]). 

> So why should we square?

Because we're always comparing powers (see equation [1]).

> And if so, then when should we NOT square?

As you already know, one property of logarithms is that log(x^y) = y *
log(x). Since P = V^2 / R, then if P and P_ref in equation [1] are
both at the same resistance R, then

  dB = 10 * log10( (V^2 / R) / (V_ref^2 / R) )
     = 10 * log10( V^2 / V_ref^2 )
     = 10 * log10( (V / V_ref)^2 )
     = 20 * log10( V / V_ref ). [2]

So, even though you're computing the ratio of two powers, you can
equivalently use equation [2] when the impedance of the two powers
are the same.

Now to get to your root question, in digital audio we're often concerned
about how close a signal is to full-scale. So when we compute a decibel
value for a digital audio signal, we commonly make the following
assumptions:

  1. The range of digital amplitudes are between +1 and -1. That is, any
  sample x[n] is in the range -1 <= x[n] <= +1.

  2. The amplitude represents voltage (or current).

  3. Even though this is a digital signal and has nothing to do with a
  physical quantity, we assume there is a resistance involved and,
  further, that the resistance is the same as the reference resistance.

  4. The reference power is assumed to be the RMS power of a full-scale
  sine wave. Thus, V_ref = sqrt(2) / 2 VRMS, or simply 1 Vpeak.

Thus your 0.6 Vpeak signal is 20 * log10(0.6 / 1) ~= -4.44 dBFS, which
means it is 4.44 dB below full-scale.
-- 
%  Randy Yates                  % "My Shangri-la has gone away, fading
like 
%% Fuquay-Varina, NC            %  the Beatles on 'Hey Jude'" 
%%% 919-577-9882                %  
%%%% <yates@[EMAIL PROTECTED]
>           % 'Shangri-La', *A New World Record*, ELO
http://www.digitalsignallabs.com
 




 36 Posts in Topic:
Amplitude Decibel conversion problem
"jungledmnc" &l  2008-10-07 13:52:54 
Re: Amplitude Decibel conversion problem
clay@[EMAIL PROTECTED]   2008-10-07 13:24:03 
Re: Amplitude Decibel conversion problem
Richard Owlett <rowlet  2008-10-07 19:27:32 
Re: Amplitude Decibel conversion problem
glen herrmannsfeldt <g  2008-10-07 17:50:44 
Re: Amplitude Decibel conversion problem
"Fred Marshall"  2008-10-07 17:08:59 
Re: Amplitude Decibel conversion problem
Randy Yates <yates@[EM  2008-10-07 21:14:10 
Re: Amplitude Decibel conversion problem
bulegoge@[EMAIL PROTECTED  2008-10-07 20:07:05 
Re: Amplitude Decibel conversion problem
bulegoge@[EMAIL PROTECTED  2008-10-07 20:12:44 
Re: Amplitude Decibel conversion problem
clay@[EMAIL PROTECTED]   2008-10-08 09:13:57 
Re: Amplitude Decibel conversion problem
"Fred Marshall"  2008-10-08 09:33:42 
Re: Amplitude Decibel conversion problem
Randy Yates <yates@[EM  2008-10-08 12:39:20 
Re: Amplitude Decibel conversion problem
clay@[EMAIL PROTECTED]   2008-10-08 10:25:00 
Re: Amplitude Decibel conversion problem
Jerry Avins <jya@[EMAI  2008-10-08 13:44:30 
Re: Amplitude Decibel conversion problem
clay@[EMAIL PROTECTED]   2008-10-08 10:56:57 
Re: Amplitude Decibel conversion problem
Jerry Avins <jya@[EMAI  2008-10-08 14:33:18 
Re: Amplitude Decibel conversion problem
zebra <ezra@[EMAIL PRO  2008-10-08 11:28:44 
Re: Amplitude Decibel conversion problem
clay@[EMAIL PROTECTED]   2008-10-08 13:11:52 
Re: Amplitude Decibel conversion problem
Randy Yates <yates@[EM  2008-10-08 16:22:43 
Re: Amplitude Decibel conversion problem
Randy Yates <yates@[EM  2008-10-08 16:41:54 
Re: Amplitude Decibel conversion problem
Randy Yates <yates@[EM  2008-10-08 16:42:50 
Re: Amplitude Decibel conversion problem
Randy Yates <yates@[EM  2008-10-08 17:13:33 
Re: Amplitude Decibel conversion problem
Randy Yates <yates@[EM  2008-10-08 17:18:41 
Re: Amplitude Decibel conversion problem
clay@[EMAIL PROTECTED]   2008-10-08 14:35:44 
Re: Amplitude Decibel conversion problem
cs_posting@[EMAIL PROTECT  2008-10-08 18:51:37 
Re: Amplitude Decibel conversion problem
Jerry Avins <jya@[EMAI  2008-10-08 22:10:49 
Re: Amplitude Decibel conversion problem
"Philip Martel"  2008-10-09 19:54:40 
Re: Amplitude Decibel conversion problem
Randy Yates <yates@[EM  2008-10-09 00:47:39 
Re: Amplitude Decibel conversion problem
Jerry Avins <jya@[EMAI  2008-10-09 11:14:09 
Re: Amplitude Decibel conversion problem
Rune Allnor <allnor@[E  2008-10-09 01:26:34 
Re: Amplitude Decibel conversion problem
cs_posting@[EMAIL PROTECT  2008-10-09 07:23:28 
Re: Amplitude Decibel conversion problem
clay@[EMAIL PROTECTED]   2008-10-09 08:26:50 
Re: Amplitude Decibel conversion problem
Jerry Avins <jya@[EMAI  2008-10-09 13:49:05 
Re: Amplitude Decibel conversion problem
Randy Yates <yates@[EM  2008-10-11 11:57:54 
Re: Amplitude Decibel conversion problem
Randy Yates <yates@[EM  2008-10-11 12:08:37 
Re: Amplitude Decibel conversion problem
Randy Yates <yates@[EM  2008-10-11 12:12:49 
Re: Amplitude Decibel conversion problem
Jerry Avins <jya@[EMAI  2008-10-11 14:12:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 22:17:13 PST 2009.