Hmmm, i will try
I have an object(ball,square, doesn’t matter), and i want it to move(like up and down, doesn’t matter too), only when a noise begins, this noise has a start and a end, if u c the graphic of the amplitude theres a some zigzag before it ends(thats garbage to me,that still changes the position).
Imagine a hammer beating, every beat i want to move something, so my idea was to only move the object when the beat comes and eliminate the trash(zigzag) between the start and the end.
Example: The amplitude start at 1 sec and ends at 2 sec, so at 1 sec i mov the object like to the left, the rest of the time he stays put.
p_act = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
B = 0
if(p_act <= 0 && B = 0)
{p_act = 0}
if(p_act > 0 && B = 0)
{p_act = 20
B = 1}
if(p_act > 0 && B = 1)
{p_act = 0}
[325+p_act,150+value[1]]
I tried my best to explain ;_;
If still u cant understand i will draw it lol. Its easier to everyone.