Macros

From Audacity Development Manual
Revision as of 11:10, 14 February 2013 by PeterSampson (talk | contribs) (tweaks and corrections - and note on the intro (I don't see it as a "sea of text"))
Jump to: navigation, search
Gale 13Feb13: ToDo-2 Although clearly this is much better than before, equally clearly there are still debates about the manner of presentation of this landing page and how much complexity it should have. So it is hardly finished.
Peter 14Feb13:Implemented Strawman-4 - does this consolidated version flow better and avoid repetition?
  • Steve 13Feb13 via email: Looks pretty good to me.
  • Ed 13Feb13 : I really like this! Again, I would point out that this is a good place for non-standard images - add more chains and shrink down the window to its bare minimum.
    • ToDo-2 Edit Chains image needs redoing anyway - should not have had access key underlines. I am not sure about non-standard images on this page (meaning whatever the final version of this is). Wouldn't non-standard images be better on the split pages? Or are we still trying to make this page a tutorial?
  • Gale 14Feb13: Thanks, Peter. Perhaps it is your best yet, but I still don't like it very much. The intro has become a sea of text again, and the sections give the same impression. You cannot see by skim read what the workflow is, and the direct comparison with mine (Apply Chain) shows that yours has twice the text, repeats itself, and doesn't highlight what matters (you have to close the project first if you are applying to files). We mention trivia that doesn't belong here like going up and down on the keyboard in Apply Chain, but say nothing about having to set export parameters outside the Chain.

    So I suppose I've still got to see if I can produce something "better", or tweak this, or accept everyone else likes this. It's not bad, I just think it should include the GOTCHAS that people trip over, and could be so much easier to follow (yes, like a workflow). If they are not good, why do we have them?

  • Peter 14Feb13: What I have been trying to create with this page is the documentation of a compound command that just happens to be implemented as two commands and not a tutorial (curiously I think it would be easier to document if it were a single consolidated command), just as we document every other command in Audacity - and on those command documentation pages we explain how the command works but do not offer tutorial exposition of "how to do stuff". If this page were a tutorial it should be living in the Tutorials section on the Front Page rather than where it is now. And as I stated yesterday I am coming round to agreeing with Steve in that I think there may may well be room for a more detailed step-by-step tutorial on the usage of Chains (but my level of knowledge/experience of this stuff is probably not up to that.
    • Regarding Ed's request for trimmed images - I do not agree with that proposal, sorry Ed. The reason is precisely because imo this page is "command documentation" and not "tutorial" material as discussed above.
    • Regarding the intro - this is hardly a "sea of text" - it just explains what a chain is, what it contains and what it is used for, the basics. We have plenty of intros in the manual which are as long as this and some even longer.
    • There is a case, I think, for linking to this page from the File Menu page, where File Menu now drills down into the Edit Chains and the Apply Chain page, rather than locating this in the "Help with Advanced Topics" section.
    • Quite happy for you to continue to tweak this page Gale, or produce something "better" (I've run out of fresh ideas) - but I would caution against over-complicating the page with too many GOTCHAS and hand-holding explanations. The GOTCHAS probably belong in Edit Chainsand Apply Chain - and workflow probably belongs in a tutorial (if we decide to write one) - and yes I do think workflows are useful, that's why I wrote them for LP/tape xfr, xfr to iPod and helped Koz edit his overdub workflows. Accordingly I have left your P2 as a marker for "room for improvement".

FrenchFlagSmall.png Procesamiento en lotes Stapelverarbeitung

A Chain is a sequence of preconfigured commands in a set order (mainly effects) that can be applied automatically to projects or audio files. Any built-in or Nyquist effect shown in the Effect Menu and export commands can be added to a Chain. There are two related Chain commands in the File Menu called Edit Chains and Apply Chain.

The two uses of Chains are for:

  • Batch processing (where many audio files are processed unattended with one or more effects then saved to a new file),
  • Effects automation (where the track or tracks in the current project are subjected to the same prescribed sequence of effects, and optionally, a file exported).

See the examples below.

Edit Chains

Use File > Edit Chains... if you need to create a new Chain or to edit an existing Chain. To create an audio file as part of the Chain process you must include a command that exports an audio file such as ExportWav. The Chain can include a number of common Audacity functions and effects to be executed in any order you specify. In many cases the parameters for each command in the Chain can be specified within the Edit Chains window.

Edit Chains dialog box

The left hand box in the dialog box (labeled Chains) contains a list of already defined Chains. You can define the name of a new Chain and select which Chain is active by using the Add, Remove and Rename buttons.

The right hand box (labeled Chain) lists the ordered sequence of commands for the Chain selected in the "Chains" box on the left. Here you can add or remove commands for the selected Chain, change the order in which the commands execute in the Chain, or edit the parameters for some effects in the Chain.

For further details see the Edit Chains page.


Apply Chain

Use File > Apply Chain... to select one of the existing chains and apply it to either:

  • The project in the current window (this is essentially a method of effects automation)
or
  • A selected list of external audio files in a single directory (this is essentially an unattended batch processing of many individual items)


Apply Chain dialog box

The dialog window contains the list of all your current chains. Use left-click (or use the Up or Down arrow on the keyboard) to select the Chain you want to apply. Then use the Apply to Current Project button for effects automation or the Apply to Files button to apply the selected chain to a set of files which you select (the current Audacity Project window must be empty to use this option).

For more details see the Apply Chain page.


Examples:
  • A batch processing Chain might use Compressor to reduce the dynamic range of multiple WAV files (also normalizing them to maximum amplitude of 0 dB), then convert them to MP3 format.
  • An effects automation Chain for the current project might run:
    1. Normalize with settings of:
    2. Noise Removal
    3. Equalization (to perform the frequency adjustment)
    4. Normalize again at different settings (without offset removal, setting a final amplitude of -1 dB).