QuickEnvelope

roger_74 wrote on 3/2/2003, 5:55 PM
I've always wanted a way to quickly add four envelopepoints so that I could easily change the volume on a long audiotrack to fit with several videoevents. Another example could be lowering the music when a narrator talks. You could do it by splitting the audioevent and change the gain, but envelopes gives you so much more control.

It's a real drag to add all these points and place them exactly the way you want them.

So I made a script that takes care of it. More info here.

Comments

Ben  wrote on 3/3/2003, 6:33 AM
Hey Roger - this looks very cool. However, I get an error when I try and run the script. I'm not in front of my Vegas machine now, but when I am I'll post the error.

Ben
MarkWWW wrote on 3/3/2003, 1:39 PM
Yes, I'm getting an error too. It says:

**********************************************

Error running:

System.Argument.Exception: One machine may not have remote administration enabled, or both machines may not be running the remote registry service.
at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hkey, String machineName)
at JScript 0.Global Code()
at SonicFoundry.Vegas._Startup.Startup()
at Microsoft.Vsa.BaseVsaEngine.Run()

OK

***************************************************************

I've a feeling this may be to do with the fact that I'm still running Win98SE and not WinXP, but that's just a guess. Anyone have any ideas how to get it working correctly?

Many thanks in advance, as this seems like it would be an extremely useful script.

Mark


Grazie wrote on 3/3/2003, 2:00 PM
Yup, me too

Error running:

System.Argument.Exception: One machine may not have remote administration enabled, or both machines may not be running the remote registry service.
at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hkey, String machineName)
at JScript 0.Global Code()
at SonicFoundry.Vegas._Startup.Startup()
at Microsoft.Vsa.BaseVsaEngine.Run()

I'm running WinME. I've run the SoFO scripts no problem. This one gives me the above.

Cheers

Grazie
Ben  wrote on 3/3/2003, 2:53 PM
Yep, that's exactly the error I'm getting. I'm also running 98SE. Neither of us are running XP, which Roger seems to be. I dunno - could this have something to do with it...?

Would be great to get this script working, it looks really useful.

Ben
roger_74 wrote on 3/3/2003, 3:05 PM
It looks like the registry settings are breaking it in Win9X. That is very strange since I'm only using managed code from the framework. It's supposed to work on all .net-supported OS's.

I might change it so that the settings are stored in an XML-file instead, but that will take a while.

JohnnyRoy wrote on 3/3/2003, 4:31 PM
Roger,

No need to resort to XML. Try using this call for the LoadValue function instead:

function LoadValue(strKey : String, strName : String, strDefValue : String) : Object
{
var RegKey = Registry.LocalMachine.CreateSubKey(strKey);
return RegKey.GetValue(strName, strDefValue);
}

This works on my WinME PC whereas your original script didn’t. It makes the key in LocalMachine just as you wanted. Check and make sure it still works on XP first. ;-) Don't forget to fix the VB file in both LoadValue and SaveValue as well. Both have been tested on my WinME machine and seem to work fine.

Other WinME users might want to patch their script in the mean time.

~jr
Grazie wrote on 3/3/2003, 4:43 PM
Sorry JR, this is a Programmer-Free ZOne - Or a PFZ here.

WOuld be much obliged if it could be re-authored - yeah?

Grazie - I thank you - very much.
Ben  wrote on 3/3/2003, 4:44 PM
Me too Grazie. Actually programming the things completely loses me! If someone could make the amendment and publish the new script, that'd be fantastic.

Thanks
Ben
roger_74 wrote on 3/3/2003, 5:06 PM
Thanks JR!

Works fine on WinXP and Win98 now.

I've updated the files.
Ben  wrote on 3/3/2003, 5:18 PM
Roger - that's brilliant, works exactly as advertised! Thanks.

Ben
JohnnyRoy wrote on 3/3/2003, 6:13 PM
You’re welcome. I’m sure you’ll be helping me with a scripting problem next.

Sorry about the “just edit the script” thing. I just assumed folks that hang here are programmers but I guess I figured wrong. I see Roger has updated the file already so you should be OK.

I would call the Vegas forum a PFZ but definitely not the Scripting forum. You guys are surfing with the “real” propeller heads now. ;-)

~jr
Grazie wrote on 3/4/2003, 1:42 AM
Roger - Just got up! First cuppa o' Coffee here in London - will try your WinME friendly script verrrryy soon - next couple of hours - yeah? Thanks in advance for listenning to us 98ers and WinMEs - and then acting on our feedback. Brilliant!

JR - the PFZ I refer to, is me, not this Forum. Hey, I'm the bloke who got in a tizzy when I used to compose Word Macros! - Errmmmm wot's a "propeller-head" - is this an aviation term for guys and gals who have lifted themselves way beyond us mere GUI mortals? You come up with newer and brighter ideas all the time? HELP . . you've got my brain spinning - is THAT it?

JR - If I come up with an idea could you or someone wanna take it on? Of course this is as long as piece of string - yeah? The more functionality, the more code required to be written. This equates to more time I guess. Hey ho . ..

In any event, you know I will come up with the ideas anyway! I'll just share 'em, and see who bites - yeah?

Thanks again for your help here and over at the Vegas Forum.

Now, where DID I put my propeller - must fly!!!

Grazie
MarkWWW wrote on 3/4/2003, 12:54 PM
Thanks for the new version, works perfectly for me now.

Very useful too.
JohnnyRoy wrote on 3/4/2003, 12:58 PM
Grazie,

propeller head n.

Used by hackers, this is syn. with geek. Non-hackers sometimes use it to describe all techies. Prob. derives from SF fandom's tradition (originally invented by old-time fan Ray Faraday Nelson) of propeller beanies as fannish insignia (though nobody actually wears them except as a joke).

> JR - If I come up with an idea could you or someone wanna take it on?

I’m always up for an engineering challenge. Here in the states we just had National Engineer's Week. This is a week where engineers of all types volunteer to talk with middle school and high school students (ages 10 – 18) about pursuing a career in engineering (I'm a software engineer in case you can’t tell by now). I tell the students that engineering is a job you'd probably do for free because you love the challenge so much, but they pay you anyway. We also give them an engineering challenge for them to try in class. It's a lot of fun. So I would be remiss in my duties if I didn’t accept your challenge. (or at least see what I could do to help out) BTW, how long is the string exactly? ;-)

~jr