Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Beat Counter based xpression gets really SLOW!!

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Anders HattneBeat Counter based xpression gets really SLOW!!
by on Feb 8, 2012 at 4:47:48 pm

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


Posts IndexRead Thread
Reply   Like  


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2012 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]