thanks for the replies…
Ok I tried using a while loop but am still stumped… I cant get the position to keep on incrementing
SK = thisComp.layer("Soundkeys").effect("Sound Keys")("Output 1").valueAtTime(time+0.1);
xPos = value[0] ;
yPos = value[1] ;
frame = Math.round(time / thisComp.frameDuration);
while (frame >= 0){
t = frame * thisComp.frameDuration;
if (SK > 80){
xPos = xPos+20;
}else {
xPos = xPos;
}
frame--
}
[xPos, yPos]