Hey, that worked. Just changed the offset to 13.7 and the effects are now vibing with the beat.
Thanks a lot Dan.
period = 13.7; // frames
offset = 13.7; // first beat relative to in point
seed = Math.floor((timeToFrames(time-inPoint) - offset)/period);
seedRandom(seed,true);
random(-50,50);