thanks again all of you for your responses advice thus far…
Heres where im at, using the code below
threshold = 5.0;
level = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
control = effect(“mouthOnOff”)(“Checkbox”) ;
if (level > threshold){
control == 0
}else{
control == 1
}
This code seems to work great as far as determining the pauses in speech, however the mouth does not open and close nearly enough during the speaking.. note: im not looking for 100% perfection, but something somewhat convincing. so when the level > threshold i need the value you to alternate between 0 (mouth open), and 1 (mouth closed). I tried inserting a loop here (see attempt code below), but its not working out. ideas anyone?
Attempt code here:
threshold = .5
level = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
control = effect(“mouthOnOff”)(“Checkbox”) ;
if (level > threshold){
for (i =0; i<5; i++){
control == 1
control == 0
}
}else{
control ==1
}
THANKS AGAIN!