Hi, I used Dan Ebberts Beat counter expression to make some voice sync easier. It looks which frequences are the loudest in a soundtrack and changes the opacity of the clips accordingly.
Problem is it gets unfeasible slow at 30 minutes (..we made them that long... well..)
Anyway, is there any way of making this faster.. I assumed the numbers just get to high. I tried to subtract some but that didn't work...
src=comp("11_03_cap").layer("soundkeys BOCA"); // the values from soundkeys
offset=Math.abs(src.effect("time_offset_inframes")("Slider"));
range1=Math.round(src.effect("Sound Keys")("Output 1").valueAtTime(time+offset*(thisComp.frameDuration)));
range2=Math.round(src.effect("Sound Keys")("Output 2").valueAtTime(time+offset*(thisComp.frameDuration)));
range3=Math.round(src.effect("Sound Keys")("Output 3").valueAtTime(time+offset*(thisComp.frameDuration)));
largest= undefined;
frame = Math.round((time) / thisComp.frameDuration);
while (frame >= 0){
t = frame * thisComp.frameDuration;
if (range1 >= range2 && range1 >= range3){
largest=1;
}
else if (range2 >= range1 && range2 >= range3){
largest=2;
}
else if (range3 >= range1 && range3 >= range2){
largest=3;}
frame--
}
largest
http://www.ardillamedia.com