Re: [LAU] Gain and clipping wav -> lame

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Thursday, July 25, 2013 - 7:40 pm

On Thu, Jul 25, 2013 at 02:21:50PM -0400, Martin Cracauer wrote:

> Does anybody know why wav files that do not have clipping would clip

Because the peak sample value says nothing about the real
level. Take a square wave with peak values +/-1. It is the
sum of a number of sine waves, with frequencies 1,3,5,7,...
times the frequency of the square wave. The first one has
a peak value of about +/-1.27, that is +2 dB. So any encoding
that looks at the spectrum (and mp3 does) will see a level
that is +2 dB.

If you really want to normalise on the peak level, use a
lower one. If you want all your samples to have the same
loudness, use RMS instead of peak, or a real loudness
measurement such as provided by ebumeter.

Ciao,

--
FA

A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] Gain and clipping wav -&gt; lame, Martin Cracauer, (Thu Jul 25, 6:21 pm)
Re: [LAU] Gain and clipping wav -> lame, Fons Adriaensen, (Thu Jul 25, 7:40 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Martin Cracauer, (Thu Jul 25, 8:14 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Fons Adriaensen, (Thu Jul 25, 9:44 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Ralf Mardorf, (Fri Jul 26, 4:29 am)
Re: [LAU] Gain and clipping wav -&gt; lame, Will Godfrey, (Thu Jul 25, 9:09 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Marc , (Thu Jul 25, 8:46 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Martin Cracauer, (Fri Jul 26, 10:35 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Marc , (Sun Jul 28, 4:45 am)
Re: [LAU] Gain and clipping wav -&gt; lame, Fons Adriaensen, (Sun Jul 28, 11:27 am)
Re: [LAU] Gain and clipping wav -&gt; lame, Jörn Nettingsmeier, (Sun Jul 28, 12:44 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Ralf Mardorf, (Sun Jul 28, 1:21 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Jörn Nettingsmeier, (Mon Jul 29, 1:29 am)
Re: [LAU] Gain and clipping wav -&gt; lame, Ralf Mardorf, (Mon Jul 29, 6:00 am)
Re: [LAU] Gain and clipping wav -&gt; lame, Marc , (Sun Jul 28, 2:21 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Edgar Aichinger, (Sun Jul 28, 12:00 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Ralf Mardorf, (Sun Jul 28, 12:21 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Ralf Mardorf, (Sun Jul 28, 11:47 am)
Re: [LAU] Gain and clipping wav -&gt; lame, Fons Adriaensen, (Sat Jul 27, 9:18 am)
Re: [LAU] Gain and clipping wav -&gt; lame, Martin Cracauer, (Mon Jul 29, 6:13 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Fons Adriaensen, (Mon Jul 29, 7:56 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Marc , (Sun Jul 28, 11:50 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Fons Adriaensen, (Mon Jul 29, 9:25 am)
Re: [LAU] Gain and clipping wav -&gt; lame, Philipp , (Mon Jul 29, 9:45 am)
Re: [LAU] Gain and clipping wav -&gt; lame, Fons Adriaensen, (Mon Jul 29, 10:13 am)
Re: [LAU] Gain and clipping wav -&gt; lame, Philipp , (Mon Jul 29, 1:27 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Fons Adriaensen, (Mon Jul 29, 2:15 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Philipp , (Mon Jul 29, 4:22 pm)
Re: [LAU] Gain and clipping wav -&gt; lame, Jörn Nettingsmeier, (Mon Jul 29, 1:27 am)
Re: [LAU] Gain and clipping wav -&gt; lame, Philipp , (Sat Jul 27, 7:10 am)