Loudness Opacity Gate

Layer shows/hides depending on audio volume threshold.

Code

var thresh = effect("Thresh")("Slider");
amp = thisComp.layer("Audio Amplitude")("Both Channels");
(amp > thresh) ? 100 : 0;
audioopacitygate

How to Use

Add a Slider named “Thresh”. When volume crosses threshold, layer turns on.