-
Turning on a layer dependant on waveform.
Hello all.
First off I use these forums regularly to help me out with day to day problems and I’ve finally signed up today and this will be my first post. As much as expressions intrigue me it’s all still a bunch of jumbled code to my brain which I find myself copy and pasting without understanding so if when you’re answering my question could you please do your best to add an explanation in so that I can begin to understand.
I’m trying to create an overlay for my radio comms in my videos. When the comms are active I want it to turn on a layer so to indicate that’s where the audio is coming from. I’ve converted the waveform to keyframes and made an if/else expression to turn it on and off however if there is a slight pause between words the layer will flicker on and off because of the drop in the audio levels. Is there a way to create a time buffer so that the audio has to be below or above the level for a certain period of time.
if(thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider")>0.5)100 else 0;