Page 1 of 2

Help with editing

Posted: Sun Sep 27, 2015 6:12 pm
by mac895
I am using Ver 2.1.1 on Windows 7. I have a clip of organ music I recorded using a single track Sansa Clip. Unfortunately during the recording a hot air furnace in the auditorium came on resulting in several loud clicks over a few seconds of the recording. I have loaded the clip into Audacity and was unable to understand the Tutorial on editing. What I need is someone to walk me through the editing process. Many thanks...mac895

Re: Help with editing

Posted: Sun Sep 27, 2015 6:33 pm
by Gale Andrews
Please post a WAV file that is a sample of the offending audio. See How to post an audio sample.


Gale

Re: Help with editing

Posted: Sun Sep 27, 2015 9:29 pm
by mac895
I think I have saved a sample of the recording where the outside noise occyrred. I will try to attach it

Re: Help with editing

Posted: Mon Sep 28, 2015 4:15 pm
by Gale Andrews
mac895 wrote:I think I have saved a sample of the recording where the outside noise occyrred. I will try to attach it
I doubt the furnace caused the clicks. You have severe overshoot clipping where the samples reverse polarity. Instead of flat topping at the positive (top) part of the waveform, they shoot down to the bottom (negative) part:
overshoot.png
overshoot.png (4.67 KiB) Viewed 536 times
That abrupt change of direction causes a severe click.

You can zoom in (CTRL + 1) then select a region about the size of the region in the image above, then use Effect > Repair....

As far as I know we don't have a plugin that deals with that type of clipping by selecting all the audio at once. If there is such, someone will say.


Gale

Re: Help with editing

Posted: Mon Sep 28, 2015 4:21 pm
by Gale Andrews
I moved your question about copying material from our Tutorials to http://forum.audacityteam.org/viewtopic ... 46&t=87842.


Gale

Re: Help with editing

Posted: Fri Mar 24, 2017 2:48 am
by barry.beattie
Gale Andrews wrote: I doubt the furnace caused the clicks. You have severe overshoot clipping where the samples reverse polarity. Instead of flat topping at the positive (top) part of the waveform, they shoot down to the bottom (negative) part:
overshoot.png
That abrupt change of direction causes a severe click.

You can zoom in (CTRL + 1) then select a region about the size of the region in the image above, then use Effect > Repair....

As far as I know we don't have a plugin that deals with that type of clipping by selecting all the audio at once. If there is such, someone will say.


Gale
To expand on Gale's correct answer...

" You have severe overshoot clipping where the samples reverse polarity."

Looking at 24 bit waveforms... as part of the analog to digital process, the initial waveform is captured 48,000 or 44,100 times a second (48kHz or 44.1kHz sample rate)...

... and converted into a large number - so big that it takes (say) 24 bits of memory to store/manipulate (lets ignore 32 bit floating, dither, etc). Because the waveform swings around a center line the number can be positive or negative. It's a whole number so it's a "Signed" (+ or -) "integer" (whole number).

https://en.wikipedia.org/wiki/24-bit

that number calculated from the sampling process (for 24 bit) is somewhere between −8,388,608 to 8,388,607.

When some code tries to push that number past its end point (too big), it loops right around to the negative side and works up towards zero

eg: 8,388,607 + 3 = −8,388,606

or in this case, probably generates an error and is held at −8,388,608 for a few samples before the wavefom starts to come back from 8,388,607 (looking at the image of the waveform).

I wonder if this was handled with later code along the lines of (sloppy pseudocode):

if (sampleValue) greater than "8,388,607" then
sampleValue = "8,388,607" // effectively limiting the number, stops it from "reversing polarity"
end if

Re: Help with editing

Posted: Fri Mar 24, 2017 2:45 pm
by Gale Andrews
So are you requesting an Audacity feature to correct reverse polarity? I think someone (tried to) modify Clipfix to do this, some years ago.


Gale
barry.beattie wrote:
Gale Andrews wrote: I doubt the furnace caused the clicks. You have severe overshoot clipping where the samples reverse polarity. Instead of flat topping at the positive (top) part of the waveform, they shoot down to the bottom (negative) part:
overshoot.png
That abrupt change of direction causes a severe click.

You can zoom in (CTRL + 1) then select a region about the size of the region in the image above, then use Effect > Repair....

As far as I know we don't have a plugin that deals with that type of clipping by selecting all the audio at once. If there is such, someone will say.


Gale
To expand on Gale's correct answer...

" You have severe overshoot clipping where the samples reverse polarity."

Looking at 24 bit waveforms... as part of the analog to digital process, the initial waveform is captured 48,000 or 44,100 times a second (48kHz or 44.1kHz sample rate)...

... and converted into a large number - so big that it takes (say) 24 bits of memory to store/manipulate (lets ignore 32 bit floating, dither, etc). Because the waveform swings around a center line the number can be positive or negative. It's a whole number so it's a "Signed" (+ or -) "integer" (whole number).

https://en.wikipedia.org/wiki/24-bit

that number calculated from the sampling process (for 24 bit) is somewhere between −8,388,608 to 8,388,607.

When some code tries to push that number past its end point (too big), it loops right around to the negative side and works up towards zero

eg: 8,388,607 + 3 = −8,388,606

or in this case, probably generates an error and is held at −8,388,608 for a few samples before the wavefom starts to come back from 8,388,607 (looking at the image of the waveform).

I wonder if this was handled with later code along the lines of (sloppy pseudocode):

if (sampleValue) greater than "8,388,607" then
sampleValue = "8,388,607" // effectively limiting the number, stops it from "reversing polarity"
end if

Re: Help with editing

Posted: Fri Mar 24, 2017 3:31 pm
by steve
Gale Andrews wrote: I think someone (tried to) modify Clipfix to do this, some years ago.
That was me It was one of my first attempts to modify a Nyquist plug-in.
See: http://forum.audacityteam.org/viewtopic ... 433#p31433

Re: Help with editing

Posted: Fri Mar 24, 2017 4:31 pm
by Gale Andrews
steve wrote:
Gale Andrews wrote: I think someone (tried to) modify Clipfix to do this, some years ago.
That was me It was one of my first attempts to modify a Nyquist plug-in.
See: http://forum.audacityteam.org/viewtopic ... 433#p31433
Do you still regard that code as alpha/pre-alpha from your now more experienced perspective?


Gale

Re: Help with editing

Posted: Fri Mar 24, 2017 7:52 pm
by DVDdoug
I recorded using a single track Sansa Clip.
You have severe overshoot clipping where the samples reverse polarity. Instead of flat topping at the positive (top) part of the waveform, they shoot down to the bottom (negative) part:
So, now we know the Sansa has a bad defect when recording!

An ADC (or DAC or any digital signal processing) should clip if you try to go over the maximum. Clipping is distortion and it's bad too, so it's best if you can keep your levels down, but polarity reversal is a LOT worse.