-
Audio Amplitude and Motion, Position
Hey ppl,
So i have a problem xD. I want to move a object only when the Amplitude is starting, imagine the amplitude graphic, theres a noise, the amplitude goes up and theres some more amplitude until it reach zero and go up again.
Ok now this is what i want, when i reach the beginning of the wave(amplitude), the object moves, but the rest of the wave its stalled
This is how i tried, its wrong i know, its kinda a algorithm.p_act = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
B = 0 //i need global, but this is the only thing i can get ;_;
if(p_act <= 0 && B = 0) //if its zero and B(beat) is zero too, so stay put { p_act = 0 [325+p_act,150+value[1]] } if(p_act > 0 && B = 0)//if p_act > 0 this is the beginning of the wave, and it hasn’t beat yet, so BEAT IT
{
p_act = 20
[325+p_act,150+value[1]]
B = 1 //flag to 1
}if(p_act > 0 && B = 1)//if p_act > 0 and already been BEATEN stay put again
{
p_act = 0
[325+p_act,150+value[1]]
}Tks for the coming help =D
I’m leaving town tomorrow, and only comeback april 4, until then im here waiting 😉