-
Layer1 Audio Adjusts the audio levels of Layer2? But How?
I have a composition full of classified style ads (each with a voiceover) with a music bed that runs the duration of the entire movie. [b]I want the music bed to drop 10dB any time a voice over read shows up and rises back up 10dB when the voice over stops.[/b] Before laying down the Music bed, I can generate a Audio Amplitude track with the “Convert Audio to Keyframes.” Anytime there is no voice over the slider reads 0; anytime there is voice over the slider reads greater than 0–so we have a good clean “if/else” base to work with.
[i]The script below works ok, but[/i]… there is no ramp for the transition from 0dB to -10dB so the audio just drops and rises immediately (instead of over 1 second. I’m also not sure how to tell the property to ramp “backwards” (-10dB to 0dB) when the voice over stops.
This script is applied to the Music Bed to be manipulated:
temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
if (temp>0){
temp = -10
}else{
temp =0
}[temp, temp]
Can anyone help?
Thanks.
Brandon Brown
http://www.brandonbrown.org