Why "show clipping" looks worse than it is

This read-only archive contains discussions from the Adding Feature forum.
New feature request may be posted to the Adding Feature forum.
Technical support is available via the Help forum.
Locked
steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Why "show clipping" looks worse than it is

Post by steve » 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):
clipping0.png
clipping0.png (9.77 KiB) Viewed 1612 times
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:
clipping1.png
clipping1.png (5.09 KiB) Viewed 1612 times
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:
clipping2.png
clipping2.png (6.03 KiB) Viewed 1612 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Why "show clipping" looks worse than it is

Post by Gale Andrews » Wed Mar 04, 2015 6:23 pm

Another way to make Show Clipping look more like it sounds would be to allow Show Clipping to discriminate between clipping runs of different length (show runs of only one to three samples in a different colour or provide an option not to show them at all).

If I ever post the proposal for improved display of clipping http://forum.audacityteam.org/viewtopic ... 20&t=81802 on Wiki, should your idea of distinguishing positive and negative clipping be included there?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: Why "show clipping" looks worse than it is

Post by steve » Wed Mar 04, 2015 6:49 pm

Gale Andrews wrote:If I ever post the proposal for improved display of clipping http://forum.audacityteam.org/viewtopic ... 20&t=81802 on Wiki, should your idea of distinguishing positive and negative clipping be included there?
If that ever gets written up as a proposal, then I think this could certainly be mentioned (unless this has already been implemented by then), but I wouldn't want this only as a sub-feature of that larger proposal. This feature could be implemented whether or not other features in that proposal are implemented. As such it is a stand-alone enhancement.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Why "show clipping" looks worse than it is

Post by Gale Andrews » Wed Mar 04, 2015 6:57 pm

steve wrote:This feature could be implemented
So I moved this to "Adding Features". Thanks for the idea.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

waxcylinder
Forum Staff
Posts: 14684
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Why "show clipping" looks worse than it is

Post by waxcylinder » Wed Mar 04, 2015 7:57 pm

Gale Andrews wrote:Another way to make Show Clipping look more like it sounds would be to allow Show Clipping to discriminate between clipping runs of different length (show runs of only one to three samples in a different colour or provide an option not to show them at all).
Gale, do you have any suggestions for bandings and appropriate color-ways?

I'm guessing red would be reserved for the worst-case scenario.

Peter.
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Why "show clipping" looks worse than it is

Post by Gale Andrews » Wed Mar 04, 2015 8:06 pm

waxcylinder wrote:
Gale Andrews wrote:Another way to make Show Clipping look more like it sounds would be to allow Show Clipping to discriminate between clipping runs of different length (show runs of only one to three samples in a different colour or provide an option not to show them at all).
Gale, do you have any suggestions for bandings and appropriate color-ways?

I'm guessing red would be reserved for the worst-case scenario.
Yes.

I think there was some feeling that Show Clipping should always be able to show a single clipped sample, so perhaps the groups could be one sample, two to three samples, four samples or more (which is what Meter Toolbar shows).

A lot depends on how colours show against the light and dark blue. I had in mind an orange for one sample, pink for two to three samples and red as now for four samples or more.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Locked