Difference between revisions of "Click Removal"

From Audacity Wiki
Jump to: navigation, search
m (layout tweak for Connie)
m (Text replace - "http://manual.audacityteam.org" to "https://manual.audacityteam.org")
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Introrel|'''Click Removal''' (under the Effect Menu) tries to remove clicks from audio tracks. It is especially suited to removing random discrete clicks from a recording of a vinyl record without damaging the rest of the audio.||[[Noise Removal]] for attenuation of constant background noise like hiss or hum
+
{{advice|This page has been transferred to the Audacity Manual - see [https://manual.audacityteam.org/o/man/click_removal.html Click Removal] and [https://manual.audacityteam.org/o/man/sample_workflow_for_lp_digitization.html Sample workflow for LP digitization] in the Manual for [https://web.audacityteam.org/download/ current Audacity].}}
* [[Transferring tapes and records to computer or CD|Transferring tapes and records]] and other media to computer or CD
 
* [[:Category:Tutorial|Other Tutorials]]}}
 
 
 
 
 
==Audacity Click Removal==
 
 
 
=== How does it work? ===
 
 
 
The tool looks for short, abrupt discontinuities (known as "spikes") in the waveform, typical of those produced by a click on a record. Click Removal then interpolates the samples either side of the click to reconstruct the waveform.  However, it's common sense not to rely exclusively on digital sound processing to clean up noisy records. Where possible, have the records professionally cleaned, or use your own cleaning methods.
 
 
 
The Click Removal algorithm consists of two parts:
 
 
 
'''The first part''', click '''''detection''''', works by measuring the amplitude of the sound in each small piece of the selected sound, and comparing it to the average amplitude in surrounding pieces.  Short pieces of sound that are much louder than the region before or after might be spikes.  (The threshold slider bar sets the square of the required ratio between the amplitudes inside and outside the loud section).  Pieces of extra-loud sound that are shorter than the max spike width (measured in milliseconds) are marked for removal.  This technique works well for vinyl record pops and clicks because it catches oscillations (not just single spikes).  Electronic spikes typically drive the speaker in just one direction, but LP pops are harder to find because they often contain oscillation as the stylus and cartridge settle back down after the initial hit of the dust mote, groove gouge, or whatever.
 
 
 
'''The second part''' click '''''removal''''', replaces the marked segment of sound.  This part of the algorithm is pretty simple-minded -- it tries to moves smoothly across from the position before the pop to the position after the pop.  This may have the effect of creating a very short, hopefully not-very-noticeable silence in the track where before there was a loud click. 
 
 
 
=== Click Removal steps ===
 
 
 
First of all, select the audio to which you want to apply Click Removal. You can select all of a track by clicking on its Track Control Panel (where the mute/solo buttons are). Alternatively, {{menu|Edit > Select > All}} or {{shortcut|CTRL + A}} ({{shortcut|CMD + A}} on a Mac) select all the audio on screen. If there are a lot of clicks it's possible they may be removed more effectively by selecting individual clicks or groups of clicks rather than the whole track. You can select part of a track by clicking in the track and dragging to left or right with your mouse, or by holding down {{shortcut|SHIFT}} and the left or right arrow keys. Zooming right in and selecting only an individual spike may not work well - extend the selection a little either side of the immediate click or group of clicks to give the algorithm more idea of the undamaged audio it can use.   
 
 
 
Second, choose {{menu|Effect > Click Removal}}. Move the "Threshold" slider to adjust how sensitive the click detection is, and the "Spike Width" slider to adjust the length of spiked audio to be considered as a click. Then click the "Remove Clicks" or "OK". Softer clicks may require you to move the threshold slider further to left (but moving it too far to left may create a "broken up" effect with too much audio removed). For broader clicks, move the "Spike Width" slider further to right.
 
 
 
Very soft and rapid light ticks that sound like static electricity and which are typical of vinyl (even though the pressing is often the cause rather than a static charge) won't be effectively removed with Click Removal. For this type of noise, select an area of vinyl that contains only the noise (no music or speech) and use the [[Noise Removal]] tool under the same Effect menu.
 
 
 
 
 
==Silencing and Draw Tool==
 
 
 
Sometimes an even better result can be obtained by zooming in ({{shortcut|CTRL + 1}}) to near sample level and either silencing the click ({{menu|Edit > Silence}}), or using Draw Tool to smooth out the contours of  the samples and so attenuate the click. Remember, the click will be visible as a "spike" in the waveform. Most discrete clicks up to 10 milliseconds long can actually be simply silenced or deleted without leaving an audible gap in the sound, although many clicks spread wider that that.
 
 
 
If the click is not suitable for silencing or deletion, enable Draw Tool by clicking the pencil icon center top of the Audacity screen, or press {{shortcut|F3}} on your keyboard. The mouse pointer will change to a pencil while over the audio track. You must zoom in until you can see the individual sample dots before you can use Draw Tool.
 
 
 
Click in the track at the point you wish a sample to be redrawn to, and wait for the samples to be rejoined together. Alternatively, click in the area of track where the line of samples is not smooth and hold down {{kbrd|ALT}} on your keyboard. The pointer will now change to a brush. Each mouse click will then progressively smooth out the samples in the area. See Draw Tool in the [http://manual.audacityteam.org/o/man/tools_toolbar.html#draw current Manual] for more help.
 
 
 
 
 
==Other techniques==
 
 
 
Silencing highly zoomed areas or redrawing samples can get tedious even over a relatively short stretch of audio. Here are a few other tricks you can try if Click Removal did not help as much as you hoped. 
 
 
 
=== Repair of very short sections ===
 
A new and automatic [http://manual.audacityteam.org/o/man/repair.html Repair] effect for very short sections of badly damaged audio up to 128 samples in length is included in Audacity 1.3.2 and later.
 
 
 
===Spectrum analysis===
 
 
 
Analyse the area with {{menu|Analyze > Plot Spectrum}} to see if any spikes are concentrated in particular frequencies and then use Equalization under the Effect menu to reduce the volume of those frequencies. You can do this more precisely with the [http://audacity.sourceforge.net/nyquist/notch.zip Notch Filter plug-in].
 
 
 
To install new plug-ins, unzip them into the Plug-Ins folder inside the Audacity installation folder. On Windows computers, this is usually under {{path|Program Files}}. On Mac OS X, it is usually under {{path|Applications}}. The plug-ins will be available after restarting Audacity.
 
 
 
===Subtraction===
 
 
 
[[Image:Track_Pop_Down_Open.png|right|190px|Track Pop-Down Menu]]Where the clicks sound equally loud in both left and right channels of a stereo recording (this often isn't the case), but the music information in the channels is very different at that point, you can try to cancel out the click by making the affected section of track mono and inverting one of the channels:
 
 
 
* First, select the area of track with the click and and hit the downward pointing arrow in the Track Pop-Down Menu (right), then "Split Stereo Track" followed by {{menu|Edit > Split}} which moves the selected area into a new track underneath your original track.
 
 
 
* Now on the new track, use the same Track Popdown Menu, make both tracks mono and then select one of the channels and {{menu|Effect > Invert}}.
 
 
 
When you export the result as a stereo track, the area you split out will be effectively mono (in the sense that the previous music signal in the left and right channels will be mixed into both channels), but the click should be sharply attenuated without harming the music too much.
 
 
 
===Hard limiting===
 
 
 
Some users find the Hard Limiter an additional way of removing clicks. A Hard Limiter is a particularly strong dynamic compressor to reduce the difference between loud and soft in an area of audio. A Hard Limiter is included in the Audacity 1.2.6 Windows installer under the Effect Menu, or is available in the SWH plug-ins suite:
 
 
 
* Windows: [http://audacity.sourceforge.net/beta/ladspa/ladspa-0.4.15.exe Lapsda 0.4.15].
 
* Mac: {{external|http://ardour.org/files/releases/swh-plugins-0.4.15.dmg}}.
 
* Linux: {{external|http://plugin.org.uk/download.php}}.
 
 
 
The Hard Limiter controls are:
 
 
 
* '''dB limit:''' the input signal level above which the input signal will be clipped.
 
* '''Wet level:''' controls the amount of the clipped signal fed to the output. It thus acts as a volume control applied after the limiter (just as if you applied the effect and then used the Amplify effect).
 
* '''Residue level:''' controls the amount of the clipped signal that will be mixed back in. By default the value is set to zero and so the clipped signal is discarded. By raising this level, some of the clipped signal will be restored, making the limit softer and retaining more of the peaks and troughs of the original waveform. Alternatively if you turn the residue full up and the Wet signal full down, you get only the pieces of waveform that are above the dB limit you chose.
 
 
 
=== Repair of broader clicks === 
 
Click Removal may not work well with broader clicks of 10 milliseconds or longer. Here are two [[Nyquist Plug-ins|Nyquist plug-ins]] you can try. Installation instructions for Nyquist plug-ins are [[Nyquist Plug-ins#Installation|here]].
 
 
 
* [http://forum.audacityteam.org/viewtopic.php?f=42&t=50671 PopMute] heavily attenuates loud clicks and pops (and even hand claps or small bangs) to make them less obtrusive.
 
* Really loud and wide glitches may still sound too bad even if moderated with "Pop Mute". In that case, try [http://forum.audacityteam.org/viewtopic.php?f=42&t=62384 EZ-Patch]. This lets you repair the damage by selecting the glitch together with some undamaged audio on one side of the glitch, then smoothly replaces the glitch with the undamaged part of the selection.
 
 
 
===[[Click removal using the Spectrogram view]]===
 
This is a [[Click removal using the Spectrogram view|link]] to a workflow tutorial which gives steps to remove hard-to-spot clicks using Audacity's [http://manual.audacityteam.org/o/man/track_drop_down_menu.html#Spectrogram Spectrogram] view.  In the default Waveform view loud clicks often show up as easily seen spikes, but smaller, lower amplitude, clicks can be very hard to spot without changing to Spectrogram view.
 
 
 
 
 
==[http://wiki.audacityteam.org/wiki/Other_Specific_Tasks#Audio_Restoration Other software]==
 
 
 
It's also possible to use [http://wiki.audacityteam.org/wiki/Other_Specific_Tasks#Audio_Restoration other software] than Audacity for click removal, while still using Audacity for the other editing tasks and to produce the final master. Export your audio track from Audacity as a lossless [[WAV]] or [[AIFF]] file, and also save the click-removed audio as a WAV or AIFF for import back into Audacity.
 
 
 
{{CategoryTutorial}}
 

Latest revision as of 12:53, 21 August 2017

Warning icon This page has been transferred to the Audacity Manual - see Click Removal and Sample workflow for LP digitization in the Manual for current Audacity.