|
Musician's Tech Central
Music Equipment, Recording, MIDI, Digital Audio, Indie How-To
|
|
Editor's note: Thanks to Scott R. Garrigus at DigiFreq for giving permission to reprint the following article. Visit DigiFreq for more great music technology tips & techniques.
DFreqTIP: Sound Forge Scripting - Applying Multiple Effects
This article is an excerpt from the following book: Sound Forge 8 Power!
http://www.garrigus.com/powerbooks.asp
by Scott R. Garrigus
The Apply Multiple Effects to Open Files script applies two effects (or
functions) to all open audio files automatically. It even takes into
account any data selections you may have in each of the audio files. For
example, if you need to change the sampling rate and bit depth for a
number of different audio files you are currently working on, you can do
that automatically to all the files by running this one script. Of course,
with a little editing, you can use the script to apply any two functions
you would like. Here are specific instructions for editing and running the
Apply Multiple Effects to Open Files script:
1. Choose View Script Editor (or press Ctrl + Alt + 2) to open the Script
Editor.
2. Click the Open button (or press Ctrl + 0) to open the Open Script
dialog box. Select the Apply Multiple Effects to Open Files script and
click Open.
3. Scroll down in the Source Code pane until you get to the line of the
code labeled //start MODIFY HERE. In this section, you can define the two
audio effects you would like to have automatically applied to your
file(s).
4. The first line of code in this section reads string szPlugl =
GETARG("fx", "Resample") , and it sets the first function that will be
applied to your audio file(s). The default setting is the Resample
function, which you normally access by choosing the Process Resample menu
in Sound Forge. If you would like to use a different function, change the
name of the function. For example, to use the Chorus function (found in
the Effects Chorus menu), change the line of code to the following: string
szPlugl = GETARG("fx", "Chorus").
5. The next line of code reads string szPlug2 = GETARG("fx2", "Bit-Depth
Converter"), and it sets the second function that will be applied to your
audio file(s). The default setting is the Bit-Depth Converter function. As
with the first function, you can change the name of this second function
to anything you would like. In addition, if you don't want a second
function applied to your files, simply put nothing between the second set
of quotes in the second line of code as follows: string szPlug2 =
GETARG("fx2", "").
6. If you'd like to test the script to make sure you haven't made any
editing errors, click the Compile Script button (or press Ctrl + Shift +
R).
7. Save the script. If you want to replace the original script file, click
the Save button (or press Ctrl + S on your computer keyboard). If you want
to save the script as a different file (so you that you don't overwrite
the original file), click the Save As button to open the Save Script
dialog box. Type a new name for the script file and be sure to use the
same file extension as the original file. Then click Save.
8. Open one or more audio files and run the script.
9. When you run the Apply Multiple Effects to Open Files script, it will
display the dialog box for the first function so that you can choose a
preset to apply. If you run the script with the default settings, it will
show the dialog box for the Resample function first. Select a preset and
click OK.
10. Using the default settings, the second dialog box displayed is for the
Bit-Depth Converter function. Select a preset and click OK.
11. The script then displays a message box asking whether you would like
to process all the currently open audio files. Click Yes to process all
open audio files. Click No to process only the selected audio file (the
one with the Data Window currently displayed on top of all the others).
Click Cancel to stop the script and not apply processing to any of the
files.
For more information:
* Sound Forge 8 Power! and Other Sound Forge Power! Books
http://www.garrigus.com/powerbooks.asp
Scott R. Garrigus is the author of Cakewalk Power!, Sound Forge Power!,
Sound Forge 6 Power!, SONAR Power!, and SONAR 2 Power!, as well as the
publisher of DigiFreq. Learn about more cool music technology tips and
techniques and have the chance to win free music products by getting a
FREE subscription to DigiFreq... go to:
http://www.digifreq.com/digifreq/
Copyright © 2006 Scott R. Garrigus Reprinted with permission.
|
|