DigiFreq: Home | MusicTechShop | Downloads (Free Music Software) | Videos | Music | Tips | Articles | Newsletter (FREE) | Deals | Issues | Recommend | News | Reviews | Discuss (Forums) | Contest | RSS Feed


Scott R. Garrigus' DigiFreq
only search DigiFreq
SRG Sites > DigiFreq > Tips > Sony Sound Forge Scripting - Applying Multiple Effects
*** Win FREE music recording software and hardware... Click Here! ***

Sony Sound Forge Scripting - Applying Multiple Effects

Written by Scott R. Garrigus - 2006, Thomson Course Technology PTR. Reprinted with Permission.
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: Sony Sound Forge Power books

To stay informed about new tips, be sure to click here to sign up for the DigiFreq Music Technology Newsletter. It's free!
Sharesubmit to reddit
[Back to the Tips Index]
Free music technology newsletter (E-mail):   [About Your Privacy]

DigiFreq: Home | RSS Feed | MusicTechShop | Downloads (Free Music Software) | Videos | Music | Tips |
Articles | Newsletter (FREE) | Deals | Issues | Recommend | News | Reviews | Discuss (Forums) | Contest

SRG Sites: SRG | Power Books | NewTechReview

Copyright 2017 by Scott R. Garrigus. All Rights Reserved. --- Privacy Policy

DigiFreq is for informational purposes only. - Disclosure Statement