# Apply Chain

### From Audacity Manual

Apply Chain automatically applies a series of preconfigured commands in a set order. The dialog allows you to select a Chain (which is a sequence of effect and/or export commands created using Edit Chains) then apply that Chain to either the entirety of the current project or to selected audio files in a single directory.

  Accessed by: File > Apply Chain...

Apply Chain non-default image showing two user-added Chains as well as the as-shipped "MP3 Conversion" Chain

## Select Chain

In the "Chain" list, left-click (or use Up or Down arrow on the keyboard) to select the Chain you want to apply.

## Apply to Current Project

Apply the selected Chain to the current project window.

The typical purpose of this option is effect automation - apply a sequence of effects to the project, using effect parameters and an order of applying the effects that you have found to work well for the type of audio you are processing. This saves time and provides consistency in your workflow.

The effects in the Chain are applied to the selected region of waveform in the selected audio tracks. Usually the selected Chain would not include an export command so as to use the greater flexibility of the File Export Dialog.

If an export command is included in the Chain, the entire project audio is exported irrespective of track or region selection. Therefore if the project contains multiple audio tracks, they will be mixed together, unless any of the tracks are muted on the Track Control Panel.

The exported files will be saved in a folder named "cleaned".

- If the audio in the project came from an imported file or files, the "cleaned" folder will be inside the directory from which the first file was imported. The original files are not altered.
- Otherwise, a message prompt will indicate the location of the "cleaned" folder that will contain the exported file. The "cleaned" folder will be in the last location that the Chain process exported to. If the Chain process has never been used for export before, the "cleaned" folder will be in the location at which the File Export Dialog currently opens.

## Apply to Files...

Apply the selected Chain to selected external audio files that are in a single directory. If you already have audio in the current project window, you must save and close that project using File > Close before applying a Chain to files.

The typical purpose of this option is batch processing - apply the Chain to multiple audio files so as to apply one or more effects to them, and/or convert them to another file format. You can convert from any file format supported by Audacity to WAV, MP3, OGG or FLAC. The selected Chain must include an "export" step, or the processed audio will not be saved.

- A standard File Open dialog box will appear. Choose a directory then you can select one or any number of supported audio files in that directory, but not Audacity AUP project files. You cannot select files outside that directory, and files in folders inside that directory will not be processed. It is convenient therefore to first put all the audio files you want to process into one folder before applying the Chain.
- After selecting the audio files you want to process, choose "Open".
- Each file will be imported into Audacity and processed, exported to the format you chose in the Chain, then the processed audio will be removed so as to clear the temporary disk space that had been used.
- The exported files will be saved in a folder named "cleaned" in the same folder that the original files came from. The original files are not altered.

When a Chain is applied to files, the only option is to import and process the entire file. Thus the entire file will be exported unless an effect in the Chain (such as Truncate Silence or Repeat) performs audio removal or insertion. Some optional Nyquist plug-ins have parameters to trim or extend audio by a specific length and so could be used for this purpose in a Chain.

| You cannot process multi-channel audio files (for example, 5.1 surround sound files) using Chains, even if Import / Export Preferences has been set to "Use custom mix". Any multi-channel files you import will be mixed down on export.

##### Views

##### Useful External Links

- Forum
- Wiki
- Latest Release