Why "show clipping" looks worse than it is
Posted: Wed Mar 04, 2015 3:39 pm
When "Show Clipping" is enabled in the View menu, users are frequently alarmed by the amount of red, especially if the music in question was commercially purchased.
I've also noticed that when "Show Clipping" is enabled, it often looks much worse than it really is.
Here is an example of some audio that is quite badly clipped ("Show Clipping" off): Clipping is evident by the way that the waveform slams into the top/bottom of the track.
Nevertheless, although distortion can be heard, it is not as bad as is suggested by the appearance when "Show Clipping" is enabled:
I was wondering why it looked quite so bad, so I looked more closely and noticed that it is because of the way that the clipping lines are drawn.
If the waveform hits +1.0 OR -1.0, then a red line is drawn across the full width of the track.
This is misleading in cases where the waveform just touches +1.0 OR -2.0 as, (even if we ignore the question of whether 0.0 dB is "clipped), it is indicating twice as many clipped samples as there really are.
A more informative and realistic way to show (possibly) clipped samples would be if we drew clipped lines from the centre line to the clipped sample, rather than across the full track width:
I've also noticed that when "Show Clipping" is enabled, it often looks much worse than it really is.
Here is an example of some audio that is quite badly clipped ("Show Clipping" off): Clipping is evident by the way that the waveform slams into the top/bottom of the track.
Nevertheless, although distortion can be heard, it is not as bad as is suggested by the appearance when "Show Clipping" is enabled:
I was wondering why it looked quite so bad, so I looked more closely and noticed that it is because of the way that the clipping lines are drawn.
If the waveform hits +1.0 OR -1.0, then a red line is drawn across the full width of the track.
This is misleading in cases where the waveform just touches +1.0 OR -2.0 as, (even if we ignore the question of whether 0.0 dB is "clipped), it is indicating twice as many clipped samples as there really are.
A more informative and realistic way to show (possibly) clipped samples would be if we drew clipped lines from the centre line to the clipped sample, rather than across the full track width: