Community Forums Archive

Go Back

Subject:Insert Silence at each Marker?
Posted by: Mike the K.
Date:11/16/2015 7:37:34 AM

I'd like a simple SF 10 Pro script to step through an open wav file and insert 2 secs of silence at each existing marker. (Maybe if it's easy, prompt for the silence length.) I have the Scripting SDK, but I don't see a way to do this and I'm on a deadline.
It sounds simple, so can someone either point me in the right direction, or (in a perfect world) put together a script for me? :^)
Thanks!
-Mike.

Subject:RE: Insert Silence at each Marker?
Reply by: roblesinge
Date:11/16/2015 12:16:48 PM

This is pretty simple to accomplish with scripting. I can try and script it for you, but I'm not sure when I'll have free time. It could be a couple of days.

If you want to give it a go, look through the sample scripts provided with the SDK to find out how to operate on an open file window. Or do a search of this forum. I did a search for Marker and found this exchange I had with someone. The code inside deals loosely with stepping through markers and performing an operation, which is most of what you want to do.[url]http://www.sonycreativesoftware.com/forums/showmessage.asp?forumid=27&messageid=933271

-Rob.

Subject:RE: Insert Silence at each Marker?
Reply by: Mike the K.
Date:11/16/2015 10:01:23 PM

That's great Rob, thanks. Apparently regions and markers are both treated as markers in scripts? I missed that; I should have looked more closely... Anyway, I should be able to take it from here.
BTW, I did an Autohotkey script until I figure out SF scripting. I was pleased to find that it sends the key shortcuts for Insert Silence and OK before the Insert Silence window even appears, which makes it pretty fast...

Thanks again,
-Mike.

Go Back