Comments

xman_charl wrote on 4/7/2023, 12:37 AM

here is a script that I use to use:

the top 6 lines are called headers, sort of similar to C programing

 

using System;

using System.IO;

using System.Windows.Forms;

using SoundForge;

using System.Collections;

using System.Collections.Generic;

public class EntryPoint

{

public void Begin(IScriptableApp app)

{

// how much silence to insert to achieve length

long secToSampTail = app.CurrentFile.SecondsToPosition(.200) - app.CurrentFile.Length;

// InsertSilence at tail

app.CurrentFile.InsertSilence(app.CurrentFile.Length, secToSampTail);

app.ActiveWindow.SelectionLength = app.CurrentFile.Length;

}

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 sz) { ForgeApp.OutputText(sz); }

public static void DPF(string fmt, params object[] args) { ForgeApp.OutputText(String.Format(fmt, args)); }

} //EntryPoint

song-yang wrote on 4/7/2023, 3:05 AM

 

I use this script, error,This editing function is not as convenient as adobe audition's automatic search for mute.
Adobe Audition can automatically find the silence, and automatically shorten the set silence time.
But I don't want to use both software at the same time.

————————————————————————————————

 

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
   at SoundForge.ISfFileHost.InsertSilence(Int64 ccStart, Int64 ccLength)
   at EntryPoint.Begin(IScriptableApp app)
   at EntryPoint.FromSoundForge(IScriptableApp app)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at SoundForge.ScriptHost.ScriptManager.Run(Assembly asm, String className, String methodName)
   at SoundForge.ScriptHost.RunScript(String szFile, String szSourceText, EngineType eType, Boolean fCompileOnly, Boolean fDebug)

john_barr wrote on 4/7/2023, 6:47 AM

Audition is more reliable. But i prefer multichannel software, not multitrack.

song-yang wrote on 4/7/2023, 7:42 AM

😂When you deal with dozens of hours of audio every day, you feel how boring audition is.

john_barr wrote on 4/7/2023, 8:27 AM

You have your preferences, I have my preferences.

john_barr wrote on 4/7/2023, 8:29 AM

Audition has fewer issues than Sound Forge.

xman_charl wrote on 4/7/2023, 3:29 PM

Hi... wonder if anybody above has even ran a script?

 

there use to be a script folder with many scripts on the old sony sf site...

 

Me learned some script junk, run script, make mods, etc,

my favorite script, audio recorded from same radio show, added

5 markers, where commercials are... easy to edit, remove them

 

result was 1 hour talk show, now about 20 minutes

 

my 2 cents