Stereo Tool
https://forums.stereotool.com/

Stereo Tool 6.10
https://forums.stereotool.com/viewtopic.php?t=3065
Page 32 of 213

Author:  Bojcha [ Sun May 01, 2011 11:02 pm ]
Post subject:  Re: Stereo Tool 6.10

Hans,
Did you tryed my, maybe stupid, but simple idea for Clip level detecting. I wrote it somewhere already.
Simple Peek detection with double fast AGC on input and output.
- 1st Peek detection Level finds largest peek and adjust, and 2nd just folows 1st and do opposite to maintain always same level.
- remove some highs from input detection to avoid peeks from highs.

Author:  hvz [ Sun May 01, 2011 11:20 pm ]
Post subject:  Re: Stereo Tool 6.10

Bojcha, I don't understand what you're saying at all... But besides that: Clipping level detection alone doesn't suffice! I really need to know PER SAMPLE whether it's clipped or not. Because for tracks like the Metallica song, if I use the clipping level I need to throw away more than half of the samples, which makes it impossible to properly reconstruct the audio. And many of the samples I would be throwing away are actually ok........


Edit: At the NAB in Vegas, we had to reduce the clipping level determined by the Omnia 9 by 2.5 dB to capture all the clipping from this Metallica track. That way it still sounded MUCH better than without declipping - but 2.5 dB means that we were REALLY throwing a way a lot of useful data.

(What apparently happened in this track is that after clipping, something like equalization was done). There are more tracks like this - although for MOST tracks clipping level detection is extremely easy.

Author:  Bojcha [ Sun May 01, 2011 11:31 pm ]
Post subject:  Re: Stereo Tool 6.10

Don't you want just to have "Assume values to be clipped if they are at or above" slider to be automatic ?
or something more is needed ?

Author:  hvz [ Sun May 01, 2011 11:32 pm ]
Post subject:  Re: Stereo Tool 6.10

Bojcha, I just edited my post above - yes, I need more.......

Author:  Bojcha [ Sun May 01, 2011 11:37 pm ]
Post subject:  Re: Stereo Tool 6.10

ahh ok then ...
can't help further

Author:  eldoradofm [ Sun May 01, 2011 11:46 pm ]
Post subject:  Re: Stereo Tool 6.10

I notice in the Metallica track that the clipping happens at different levels.
Idea: make something which detects the flat lines with a maximum difference per sample too allow some wobble in the flat line.

Author:  hvz [ Mon May 02, 2011 12:30 am ]
Post subject:  Re: Stereo Tool 6.10

@ eldoradofm: That's already part of what I'm doing. But it's too simple because:
1. The line is NOT really flat - there's actually quite a lot of 'wobble' in it. And (wildly varying!) tilt too.
2. Clipping can also be very short, if that happens there won't even be a flat line visible in the waveform...
So I'm actually doing something different.

Unfortunately, I'm getting too many false positives: If you play for example a bass sound, the tops of the bass will also look like long flat lines - and my current algorithm unfortunately detects them as clipped.

Author:  eldoradofm [ Mon May 02, 2011 12:38 am ]
Post subject:  Re: Stereo Tool 6.10

Could you post images of the different clipped samples it has to detect?

Author:  hvz [ Mon May 02, 2011 12:39 am ]
Post subject:  Re: Stereo Tool 6.10

Ah! I just found at least part of the cause....


Edit: Ok, I've been looking into this a bit more and I need to do some more thinking first. I think I'm pretty close to the solution (the Metallica track sounds really good!), but I need to fix some remaining issues.

Flat area detection might work, but the real problem is that I have a filter that determines how much clipping occurs, and that's the filter that gets confused by loud sinusoids in the signal. Next, I use the determined amount of clipping to mark samples as clipped based on the likelyhood that a specific sample is clipped - the problem is that if the number of samples that's being marked as clipped is far too high, this results in throwing away far too much valid data.

--> I did just find 2 bugs in the algorithm that determines clipping likelyhood...

So I first need to fix my filter that determines the amount of clipping, after that the rest should be easy (because most of it is already working).

For the Metallica song the current filter works, and for extremely clipped audio it also works - the biggest problem is currently that loud sinusoids (specifically loud bass) are considered to be clipped while they are not.


NOTE TO SELF: First add clipping distortion level detection. - will continue later...

Author:  hvz [ Mon May 02, 2011 1:31 am ]
Post subject:  Re: Stereo Tool 6.10

Quote:
Could you post images of the different clipped samples it has to detect?
That's difficult - because in some cases it's not visible at all in the waveform that clipping has occurred. :shock:

You've seen the Metallica track, that's one extreme example.

No time now to create some screenshots, but imagine that this audio is clipped: http://www.audiomisc.co.uk/asymmetry/miles8.gif

How would you see that? Especially if only a few of the spikes are clipped, and if the clipping level isn't completely constant... (I'm not saying that my filter will be able to... But I hope it will).

Page 32 of 213 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/