Hi. I'm Yuvraj and I have a problem
I am making a music visualiser in Ae CS6. Stock plugins and no budget. I have 4 layers that I would like to move right at different defined speeds to achieve a kind of parallax effect. There should be some basic, constant movement and also, when the bass hits (each kick drum), I would like the layers to move faster, but also then slow down once the kick drum is finished. So it will be a constant plus a variable (dependent on my bass keyframes). I have exported a bass-boosted and treble-dehanced version of my song to keyframes and now have a layer with a slider control which in expression is referred to as "thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider") ". I set a constant for the y-position of the first layer (I tried to nail the first before doing others) and also a slider to keep a constant basic movement so then my expression looked something like this...
temp = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
newt = (effect("Slider Control")("Slider")) + (temp) + 20;
cool = 1080;
[newt,cool];
(I have no clue why I named them newt and cool that was what I heard when typing so there's that )
Anyways, I thought I had this all worked out and it was going to be a simple piece of diddlydonk (do people say that? ) when my layer (a bunch of stars) started jumping back and forth when I asked the rig to play me a RAM preview. I was confused as to why it was doing this - then it hit me.
As it turns out, my audio amplitude keyframes generated from the bass-y audio jumps up and down (as expected) so the temp value goes up and down resulting in jerky movement. My question is is there any way to make the keyframes cumulative in value or some other way to achieve the effect that I want. Feel free to ask more questions and btw project size is 3840x2160 @60fps (like a baus!) and basic movement is 1.5px/frame or 90px/s and I'm a complete noob to expressions and code so please take it easy on me
Many thanks to any cool people who are awesome at expressions and can understand this