-
Random jump cuts to audio
Hello
I am currently working with a time remapping script that makes jump cuts to a random location within a clip every .44 seconds
Is there a way to modify the expression pasted below to make it so the jump cuts occur corresponding to changes in an audio track or keyframes generated from an audio track? In other words, every time the audio level jumps above a certain threshold I would like to jump cut to a random location within the clip
Any tips would be infiny appreciated
Thanks so much!!
Anna
segDur = .44;// duration of each "segment" of random time
minVal = inPoint;
maxVal = outPoint - segDur;seed = Math.floor(time/segDur);
segStart = seed*segDur;
seedRandom(seed,true);
startVal = random(minVal,maxVal);
endVal = startVal + segDur;
linear(time,segStart,segStart + segDur, startVal, endVal);