Created
December 8, 2017 11:58
-
-
Save symdesign/1d677cfa2bcc1785786d4c36803f6b57 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
freq = 2; | |
decay = 1; | |
mult = .05; | |
if (numKeys > 1 && time > key(2).time){ | |
t = time - key(2).time; | |
a = velocityAtTime(key(2).time-.01)[0]; | |
d = a*mult*Math.sin(t*freq*Math.PI*2)/Math.exp(t*decay); | |
value + [d,d] | |
}else{ | |
value | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment