Help with editing

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
mac895
Posts: 40
Joined: Thu Jan 31, 2008 6:34 pm
Operating System: Please select

Help with editing

Post by mac895 » Sun Sep 27, 2015 6:12 pm

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

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

Re: Help with editing

Post by Gale Andrews » Sun Sep 27, 2015 6:33 pm

Please post a WAV file that is a sample of the offending audio. See How to post an audio sample.


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

mac895
Posts: 40
Joined: Thu Jan 31, 2008 6:34 pm
Operating System: Please select

Re: Help with editing

Post by mac895 » Sun Sep 27, 2015 9:29 pm

I think I have saved a sample of the recording where the outside noise occyrred. I will try to attach it
Attachments
VORC008 Rev 1.wav
(286.48 KiB) Downloaded 21 times

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

Re: Help with editing

Post by Gale Andrews » Mon Sep 28, 2015 4:15 pm

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 535 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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: Help with editing

Post by Gale Andrews » Mon Sep 28, 2015 4:21 pm

I moved your question about copying material from our Tutorials to http://forum.audacityteam.org/viewtopic ... 46&t=87842.


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

barry.beattie
Posts: 62
Joined: Wed Mar 22, 2017 5:21 am
Operating System: Windows 10

Re: Help with editing

Post by barry.beattie » Fri Mar 24, 2017 2:48 am

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

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

Re: Help with editing

Post by Gale Andrews » Fri Mar 24, 2017 2:45 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: Help with editing

Post by steve » Fri Mar 24, 2017 3:31 pm

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
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: Help with editing

Post by Gale Andrews » Fri Mar 24, 2017 4:31 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

DVDdoug
Forum Crew
Posts: 9278
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Help with editing

Post by DVDdoug » Fri Mar 24, 2017 7:52 pm

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.

Post Reply