video "scratching" effect
Posted: August 6th, 2005, 5:31 am
I realize this is so incredibly simple, but it works well, with many diff techniques:
basically maxAmp is the highest amplitude you want the code to react to. anything higher than maxAmp will be treated the same as maxAmp. varAmp (which is not assigned by the code) is your INPUT. so that would be audio1.level or whatever.
inAmp divides everything up evenly, so in case your amp is higher than 30, the code will adjust accordingly.
put this code in your time-remap layer. (some playing with would probably be required for a special look).
.. more comin soon
Code: Select all
maxAmp = 30;
minAmp = 1;
spanAmp = maxAmp - minAmp;
incAmp = sqrt(spanAmp);
if(varAmp < spanAmp/2){
(varAmp / incAmp) - incAmp;
} else {
(varAmp / incAmp) + incAmp;
}
inAmp divides everything up evenly, so in case your amp is higher than 30, the code will adjust accordingly.
put this code in your time-remap layer. (some playing with would probably be required for a special look).
.. more comin soon