Community Forums Archive

Go Back

Subject:Using EQ
Posted by: korigan
Date:1/2/2006 11:08:18 AM

Hello,

I've found an example with a submenu for the "Fade" scripting operations.
I think for EQ it must be the same, I mean I make my calls like following :
DoEffect("GraphicEQ",...
DoEffect("ParagraphicEQ",...
DoEffect("ParametricEQ",...

Is it correct ? Thanks for help.

Subject:RE: Using EQ
Reply by: _TJ
Date:1/2/2006 8:23:11 PM

Close, but I think you need a space between "Graphic" and "EQ".

If you run the script below in the Script Editor window, then it will give a complete list of names that DoEffect will accept. For effects that have a non-empty Guid. you can also use that number instead of the name. The numbers are guranteed to be unique and work no matter what language the user has chosen, while the friendly names will be different in the German version of Sound Forge (for instance).


using System;
using SoundForge;

public class EntryPoint {
public void Begin(IScriptableApp app) {

int ix = 0;
foreach (ISfGenericEffect fx in app.Effects)
{
DPF("[{0:d2}] \"{1}\" Guid=({2})", ++ix, fx.Name, fx.Guid);
}

}

public void FromSoundForge(IScriptableApp app) {
ForgeApp = app; //execution begins here
app.SetStatusText(String.Format("Script '{0}' is running.", Script.Name));
Begin(app);
app.SetStatusText(String.Format("Script '{0}' is done.", Script.Name));
}
public static IScriptableApp ForgeApp = null;
public static void DPF(string fmt, object o, object o2, object o3) { ForgeApp.OutputText(String.Format(fmt,o,o2,o3)); }
} //EntryPoint


If you right click in the bottom window of the Script Editor after running this script, you should be able to cut and paste this list into a file that you can save off for future reference.



Message last edited on1/2/2006 8:23:51 PM by_TJ.
Subject:RE: Using EQ
Reply by: korigan
Date:1/2/2006 11:50:03 PM

Very interesting, I'm going to try that.

Thanks for help and happy new year...

Go Back