Audio Clipping

Author
thewordsmith
Max Output Level: -90 dBFS
  • Total Posts : 41
  • Joined: 2009/05/09 11:38:50
  • Location: United States
  • Status: offline
2012/01/08 17:50:11 (permalink)

Audio Clipping

The WordSmith has an audio production question. Here is a situation. I just mixed a new track. Set the audio volume to -0.01bd with a limiter. Bounced the track from Cakewalk down to a wave file. The wave file is not clipping because of the limiter. Now it is time create the MP3 file. LAME is the most popular MP3 software used by Napster, Amazon….. and is free. I use it to convert a WAVE file into an MP3 file. So I run the command line prompt like: lame.exe "File.wav" "FilE.mp3" –option --option --clipdetect. Notice the ClipDetect option. In several case I have noticed that despite having created a wave file that is not clipping. Lame has detected a volume above -0.01db which is clipping. So I fix that problem with --scale 0.99 or what ever Lame suggests. Now I have a MP3 song that is not clipping according to Lame. But I am just thinking that each audio playback software is different and may detect a clip instance even though a new LIMITER has been put on the MP3 file. So my questions are: 1) Should I bounce the wave file down to some thing less than -0.01db then see what LAME say about clipping? Or is it safe to get right on the clipping edge? 2) When clipping is detected what is lost? 3) Do you lose on the vocal or instrumental side or both?
post edited by thewordsmith - 2012/01/08 17:56:36
#1

7 Replies Related Threads

    droddey
    Max Output Level: -24 dBFS
    • Total Posts : 5147
    • Joined: 2007/02/09 03:44:49
    • Location: Mountain View, CA
    • Status: offline
    Re:Audio Clipping 2012/01/08 17:57:44 (permalink)
    Any software that has to effectively resample the wave form and rewrite a new one back out can create sample points that are above 0dBFS if the original stuff is too close. Just the nature of the beast, unless it goes back and re-normalizes all of the sample points to peak at the original peak point after the conversion.

    You certainly don't need to peak at -0.01dB in your exported WAV for sure. Try something more like -0.3dBFS. Even without resampling, you may risk clipping in lower quality D/A converters if you are slamming right up against the 0dBFS ceiling. Maybe you still do at -0.3dBFS, but less so at least.

    Dean Roddey
    Chairman/CTO, Charmed Quark Systems
    www.charmedquark.com
    #2
    drewfx1
    Max Output Level: -9.5 dBFS
    • Total Posts : 6585
    • Joined: 2008/08/04 16:19:11
    • Status: offline
    Re:Audio Clipping 2012/01/08 18:26:16 (permalink)
    thewordsmith


     The WordSmith has an audio production question. Here is a situation. I just mixed a new track. Set the audio volume to -0.01bd with a limiter. Bounced the track from Cakewalk down to a wave file. The wave file is not clipping because of the limiter. Now it is time create the MP3 file. LAME is the most popular MP3 software used by Napster, Amazon….. and is free. I use it to convert a WAVE file into an MP3 file. So I run the command line prompt like: lame.exe "File.wav" "FilE.mp3" –option --option --clipdetect. Notice the ClipDetect option. In several case I have noticed that despite having created a wave file that is not clipping. Lame has detected a volume above -0.01db which is clipping. So I fix that problem with --scale 0.99 or what ever Lame suggests. Now I have a MP3 song that is not clipping according to Lame. But I am just thinking that each audio playback software is different and may detect a clip instance even though a new LIMITER has been put on the MP3 file. So my questions are: 1) Should I bounce the wave file down to some thing less than -0.01db then see what LAME say about clipping? Or is it safe to get right on the clipping edge?  


    The sample points in digital audio do not always fall on the peaks of a waveform. You can have intersample peaks that might be +2dB (or a little more) over the peak values displayed by the meters over the course of a typical piece of audio.

    If your limiter doesn't see these peaks, it can't reduce them. So you need to reduce the limiter to give yourself a bit of headroom. Or, if you use a limiter that upsamples (or upsample your audio, then limit it), the maximum intersample peak levels will be less.
    2) When clipping is detected what is lost? 3) Do you lose on the vocal or instrumental side or both? 
    Clipping means the top of your wave from is clipped off. So whatever part of the waveform was above 0dB is replaced by a generally nasty sounding distortion.


     In order, then, to discover the limit of deepest tones, it is necessary not only to produce very violent agitations in the air but to give these the form of simple pendular vibrations. - Hermann von Helmholtz, predicting the role of the electric bassist in 1877.
    #3
    droddey
    Max Output Level: -24 dBFS
    • Total Posts : 5147
    • Joined: 2007/02/09 03:44:49
    • Location: Mountain View, CA
    • Status: offline
    Re:Audio Clipping 2012/01/08 18:40:25 (permalink)
    But those shouldn't matter really at the D/A stage. That's a digital thing. It matters in the DAW, hence why you don't push things too hard on the master bus or any given track, because any downstream processing of the signal might end up with a peak above 0dBFS. At the D/A converter stage all that has to happen is that the actual points be below 0dBFS. The regenerated wave happens in the analog domain and isn't limited by the FS scale.

    Conversion of the file to another format is downstream digital processing as well and has the same problems. Anything that takes the original data, processes it and writes it back out, might cause a digital clip.

    Some hardware folks argue that getting too close to 0dBFS can cause bad results on lower quality converters, and that keeping the digital samples at -0.3dBFS or lower helps deal with that. Maybe if the D/A super-samples and doesn't account for the possibility of inter-sample peaks it could be affected I guess.

    Dean Roddey
    Chairman/CTO, Charmed Quark Systems
    www.charmedquark.com
    #4
    drewfx1
    Max Output Level: -9.5 dBFS
    • Total Posts : 6585
    • Joined: 2008/08/04 16:19:11
    • Status: offline
    Re:Audio Clipping 2012/01/08 18:48:51 (permalink)
    droddey


    But those shouldn't matter really at the D/A stage. That's a digital thing. It matters in the DAW, hence why you don't push things too hard on the master bus or any given track, because any downstream processing of the signal might end up with a peak above 0dBFS. At the D/A converter stage all that has to happen is that the actual points be below 0dBFS. The regenerated wave happens in the analog domain and isn't limited by the FS scale.

    Conversion of the file to another format is downstream digital processing as well and has the same problems. Anything that takes the original data, processes it and writes it back out, might cause a digital clip.
     
    Some hardware folks argue that getting too close to 0dBFS can cause bad results on lower quality converters, and that keeping the digital samples at -0.3dBFS or lower helps deal with that. Maybe if the D/A super-samples and doesn't account for the possibility of inter-sample peaks it could be affected I guess.
    Correct, but the point is if you upsample/resample, then your new samples will fall in different places and you will get some peak sample values that are higher than the original.

     In order, then, to discover the limit of deepest tones, it is necessary not only to produce very violent agitations in the air but to give these the form of simple pendular vibrations. - Hermann von Helmholtz, predicting the role of the electric bassist in 1877.
    #5
    thewordsmith
    Max Output Level: -90 dBFS
    • Total Posts : 41
    • Joined: 2009/05/09 11:38:50
    • Location: United States
    • Status: offline
    Re:Audio Clipping 2012/01/09 00:02:51 (permalink)
    My gut fealing is that you are right. I think I should scale it down a few DB's. Here is another opinion on that question. http://www.digifreq.com/d...opic.asp?TOPIC_ID=6227 But I think you are right.
    #6
    spacealf
    Max Output Level: -54 dBFS
    • Total Posts : 2133
    • Joined: 2010/11/18 17:44:34
    • Status: offline
    Re:Audio Clipping 2012/01/09 00:41:59 (permalink)
    All I can do is go by what a manufacturer of music type program stated. mp3's are only 87.13% the output rate for a wave file or else they can not handle it.

    #7
    Kalle Rantaaho
    Max Output Level: -5 dBFS
    • Total Posts : 7005
    • Joined: 2006/01/09 13:07:59
    • Location: Finland
    • Status: offline
    Re:Audio Clipping 2012/01/09 02:34:37 (permalink)
    According to my understanding it's a consensus here that if the file is going to end up as MP3, it should not leave the DAW louder than -0.3 dB, otherwise the MP3 conversion will most likely make it clip.

    SONAR PE 8.5.3, Asus P5B, 2,4 Ghz Dual Core, 4 Gb RAM, GF 7300, EMU 1820, Bluetube Pre  -  Kontakt4, Ozone, Addictive Drums, PSP Mixpack2, Melda Creative Pack, Melodyne Plugin etc.
    The benefit of being a middle aged amateur is the low number of years of frustration ahead of you.
    #8
    Jump to:
    © 2024 APG vNext Commercial Version 5.1