I have the "normalize all" script and it's pretty cool, but what I really need is a "normalize selected" script to bring up the volume of clips with dialog. Is there one?
/**
* This script normalizes all Audio Events in the current project.
* This script works best if you run it after all event peaks have
* been built.
*
* Revision Date: Feb. 10, 2003
* Revised June 17, 2006 so script only affects selected events.
**/
import Sony.Vegas;
var trackEnum : Enumerator = new Enumerator(Vegas.Project.Tracks);
while (!trackEnum.atEnd()) {
var track : Track = Track(trackEnum.item());
if (track.IsAudio()) {
var eventEnum : Enumerator = new Enumerator(track.Events);
while (!eventEnum.atEnd()) {
var audioEvent : AudioEvent = AudioEvent(eventEnum.item());
var evnt = TrackEvent(eventEnum.item());
if (evnt.Selected) {
audioEvent.Normalize = true;
}
eventEnum.moveNext();
}
}
trackEnum.moveNext();
}
That works great! Do you have any idea of what I've been going through to accomplish that? I've been loading the audio into Soundforge and normalizing from there. This is so much easier. Thanks!
I may have some time in the next few weeks, as I wait for my nineteen cans of 16mm film that I've transferred to render to DVD. I have all sorts of ideas for scripts that are long overdue, and which I don't think anyone has done yet. I'll post here when they are finished.
I looked here and at VASST and can't find the "normalize all events" (on the track) script. I could sure use it as I've been doing the same run around by going over to SF to "normalize" events on at a time then back onto the Vegas timeline.
If you could post a link or the script here at the forum I would be most grateful..
Thanks much,
Teaktart
p.s. How would I install the script above into my Script folder?
Now save the file as something like "NormalizeSelected.js" in the following folder:
c:\program Files\Sony\Vegas 6.0\Script Menu
(or wherever you installed Vegas - put it in the Script Menu folder)
Thanks so much for your advice.
I did as mentioned but is the original "normalize all..." in the posting above? Looks like it is the revised version which I copied to the Scripts Menu folder...
Would like the "all" script as well...
Thanks for the link to the write up on the VASST site, I'm printing it out right now.
You guys are great!
/**
* This script normalizes all Audio Events in the current project.
* This script works best if you run it after all event peaks have
* been built.
*
* Revision Date: Feb. 10, 2003
**/
import SonicFoundry.Vegas;
var trackEnum : Enumerator = new Enumerator(Vegas.Project.Tracks);
while (!trackEnum.atEnd()) {
var track : Track = Track(trackEnum.item());
if (track.IsAudio()) {
var eventEnum : Enumerator = new Enumerator(track.Events);
while (!eventEnum.atEnd()) {
var audioEvent : AudioEvent = AudioEvent(eventEnum.item());
audioEvent.Normalize = true;
eventEnum.moveNext();
}
}
trackEnum.moveNext();
}
If you are using it in Vegas 5 or 6, the reference to "SonicFoundry" will need to be changed to "Sony".