Presetting L/R audio to two separate tracks?

Comments

rmack350 wrote on 7/31/2007, 12:21 AM
Is there any chance you're forcing things to work in a way that they don't have to? What was your audio setup that required this? Maybe there's a better way that could start a few steps farther back?

It's a wedding. Maybe there was a wireless mic on the bride and the groom?

You're absolutely right. Vegas doesn't help you with this. So what if you were recording double system sound? What would you have to do to line up audio?

You might try setting marks in the trimmer. That way you could probably line up that second track of audio easily.

Rob Mack
vicmilt wrote on 7/31/2007, 3:54 AM
Scorpio -

unless someone else here has a wonderful script to group each of your "group of three tracks" - Video/AudioLeft/AudioRight - I have an alternate workflow that we use all the time here.

I don't use the trimmer much for selecting elements for editing.

Rather I create a AssemblyALL of all clips on each roll (as you did above - and then you split the audio by the script, etc). This AssemblyALL allows me to quickly scan any roll to see EVERYTHING that was shot.

Next I create "sub-chapters" with all the elements I want, keeping the three tracks. I.E. - table shots, bride shots, the ceremony, interviews - any logical grouping, each in it's own VEG. I do this quickly by opening the AssemblyALL VEG - Saving AS :"Ceremony" and then cutting all the "non-ceremony" footage, rippling the tracks as I procede.

These chapters are refined and actually will often end up in the final movie, "as is".

Once I've gotten all the chapters developed, I create a new FinalEdit VEG. I do this by opening the FinalEdit-1 at the same time as a chapter. I then select a clip from the chapter VEG, copy it [CTRL / C] and paste it into the FinalEdit VEG [CTRL / V].

To copy and move the three tracks, I click the letter "D" two times which puts my cursor into a "group grab" mode. I can then grab all three tracks for each clip at one time, and copy and paste them into my "Final Edit". To get back to the "standard" cursor, I once again click the letter "D" two times. It's a no-brainer (which works well for me).

I like this way of working, as it familiarizes me with the footage and makes it easy to find what I need very quickly. I can scroll any of the chapters very quickly and I can also find any element, simply by looking in the correct chapter VEG.

I use this method for two camera shoot work, creating the same three tracks as you are, only with one sound and two pictures, once I've synced the two cameras together.

So essentially, I always have two or three VEG files open, and I am scanning and viewing in one (like the "ceremony") and pasting into the other (FinalEdit).

Hope this helps -
v
jetdv wrote on 7/31/2007, 7:36 AM
Is there any way to make the script regroup all the individual clips with their now TWO audio tracks each?

At the time that script was written, it was not possible for the script to change the grouping. It is possible now for that new clip to be added to the grouping via the script. The basic method would be like this (code is from c# instead of JScript, though, so some slight modification may be required)


TrackEventGroup grp = new TrackEventGroup();
Vegas.Project.Groups.Add(grp);
grp.Add(mynewEvent);
grp.Add(evnt);


ScorpioProd wrote on 7/31/2007, 3:09 PM
Thanks for the alternate workflow ideas, I'll ponder that a bit.

But as for the script, if I could get it to do the event grouping with the copies, that would be cool and solve the problem in my current workflow.

Unfortunately, my programming skills are back in the old Fortran/Pascal world, and not the modern JScript/C# world... So I'm not sure how I would add the code block in, I assume inside that "for" loop, but I have no idea on the differences between JScript and C#.

Although I did modify the JScript to give me the left channel on top and the right channel on the bottom, but that was easy to figure out from the script...

Are there any books or on-line guides for programming this stuff, Vegas 7 specific?

Or any script modifying volunteers? :)

Thanks.
ScorpioProd wrote on 7/31/2007, 3:35 PM
I tried putting the new code block at the end of the innermost "for" loop... Based on the errors, and looking at the rest of the JS and the other one that's in Vegas 7, I tried changing the first line to:

var TrackEventGroup : grp = new TrackEvent Group();

And with that, I'm now down to only one error.

Variable "grp" has not been declared.

Maybe I'm close?

ScorpioProd wrote on 7/31/2007, 9:17 PM
Ah, OK...

So if in C# we have:

TrackEventGroup grp = new TrackEventGroup();

In JScript that would be:

var grp : TrackEventGroup = new TrackEventGroup();

I think that properly declared my variable "grp", it solved the error.

The rest of the C# script I left as the original.

Now the error I get is:

"Expected Expression"

Not sure what that means...
ScorpioProd wrote on 7/31/2007, 11:27 PM
Scripting is fun! :)

Well, I got it working with the code block that Edward posted, translating the C# to JScript, thanks to the docs on Edward's excellent JETDV site.

Only thing is, it now groups the pairs of audio events properly, but they lose their grouping to their original video events.

Since each original audio event is grouped to its appropriate video event initially, I thought I could change:

var grp : TrackEventGroup = new TrackEventGroup();

to

var grp : TrackEventGroup = TrackEventGroup(evnt)

My thought being that would select grp to be the original audio event's group, which the video event would also be in already.

But that gives me the error "The specified conversion or coercion is not possible."

I'm close, I'm very close.

Thanks Edward! :)
jetdv wrote on 8/1/2007, 8:37 AM
Glad you figured out enough to get that part working

evnt is actually pointing to the audio event on the timeline. The "video event" is a separate event that would have to be found and added to the group as well. How you do that would depend on what logic you wanted to use.

You might try changing:

var grp : TrackEventGroup = TrackEventGroup(evnt)

to:

var grp : TrackEventGroup = evnt.Group;


And then ONLY add the "new" event to get it added to the original grouping.
ScorpioProd wrote on 8/1/2007, 12:00 PM
Bingo! :)

OK, well, the script now does exactly what I need.

Thanks for all the help Edward.

Please let me know if you would like me to send you the script or post it somewhere, cause it's really your script.

And I do think it could be quite useful in its new form for users that need to do what I needed to do.

Thanks again. :)
jetdv wrote on 8/1/2007, 1:13 PM
You can e-mail it to me, I'll put it on my website, and then anyone can download it. Just contact me through my site or the e-mail option here.

ScorpioProd wrote on 8/2/2007, 10:40 AM
Here's the link to the script I've been talking about:

http://www.jetdv.com/scripts/StereoSplit+Group.js

It is made for use when you have a timeline full of video events with attached stereo audio events and you want to split the stereo track to separate left and right mono tracks, and maintain the grouping of the two mono audio events with each video event.

Just select the stereo audio track and execute the script.