Subject:Scripting - paste mix
Posted by: gmartina
Date:8/15/2013 7:43:48 AM
I have a couple thousand short wav file's. I need a script "mix paste" one of the same wav (background noise) from clipboard. Length of original files should not be changed. |
Subject:RE: Scripting - paste mix
Reply by: roblesinge
Date:8/15/2013 8:04:29 AM
So you want to paste background noise into several files, I would imagine at a low level, sort of behind the original file (thus the "Mix Paste")? You mention not changing the length of the original files, does the background noise need to just paste in once at a specific position in the original file? If you provide more details, this may be possible. Thanks, Rob. |
Subject:RE: Scripting - paste mix
Reply by: gmartina
Date:8/15/2013 8:20:33 AM
Thanks for the quick response!!! I need to mix a lot of short wav (original files) files (each a different length, 0-2 sec) with one and the same sound (background noise), which is longer (approx. 10 sec). Original short files must remain the same length, not changed... So the final files should not be length "background noise". Must be the same as they were (0-2 sec...). I hope I have explained well :) |
Subject:RE: Scripting - paste mix
Reply by: roblesinge
Date:8/15/2013 9:44:04 AM
I think this is possible with a script utilizing the DoMixReplace method of ISfFileHost. I can try and script this up for you, but I probably won't have time to get to it until this evening. Rob. |
Subject:RE: Scripting - paste mix
Reply by: gmartina
Date:8/15/2013 9:51:51 AM
I do not understand how to do it and it would be veeery grateful if you would have made ​​a script when you have the time... |
Subject:RE: Scripting - paste mix
Reply by: gmartina
Date:8/15/2013 9:52:46 AM
This evening was more than ok! :) |
Subject:RE: Scripting - paste mix
Reply by: roblesinge
Date:8/15/2013 10:31:29 PM
Okay, the script below should do what you're asking. It asks you to choose the folder of audio files you want to paste INTO and then choose the audio file (background) you want to paste FROM. Then it asks for the percentage of foreground audio you want (give it a whole number without a percent sign) and then asks for the percentage of audio you want in the background. NOTE: You'll want to use this on a COPY of the folder with the audio files as it destructively edits them. You might want to test it out on just a few files before you try it on thousands. Also note that Sound Forge can be tricky and will sometimes throw errors that I haven't accounted for. Ideally you would check the results as thoroughly as you have time for. Thanks, Rob.
Message last edited on8/15/2013 10:34:00 PM byroblesinge. |
Subject:RE: Scripting - paste mix
Reply by: gmartina
Date:8/16/2013 1:47:05 AM
Rob you're a genius. Thank you veeery much. I do not know how to return the favor?! Works perfectly! |
Subject:RE: Scripting - paste mix
Reply by: roblesinge
Date:8/16/2013 7:57:26 AM
I'm glad it worked for you. No favor-returning necessary. I edit audio for a living, but I program for fun. One of the reasons I use Sound Forge is that occasionally it lets me combine the two. Cheers, Rob. |