expresion to do 0 1 0

   3745   6   0
User Avatar
Member
617 posts
Joined: 8月 2008
Offline
do we have an expresion to go to 0 ->1 -> 0
like any of the fit's?
User Avatar
Member
1743 posts
Joined: 3月 2012
Offline
Do you mean like 2*min(x, 1-x) ? It's 0 at x=0, linear up to 1 at x=0.5, and linear down to 0 at x=1.

Or, did you mean like 1-x, which is 1 at x=0 and 0 at x=1 ?

Or, have I completely misunderstood the question? :wink:
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
User Avatar
Member
7750 posts
Joined: 7月 2005
Offline
Or do you mean abs(sin($FF)) ?
User Avatar
Member
383 posts
Joined:
Offline
my turn !

trunc(($FF/myFrequency)%2)
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
15 posts
Joined: 1月 2010
Offline
where x = 0 -> 1
1-(2*abs(x-0.5))
this is linear
User Avatar
Member
599 posts
Joined: 5月 2011
Offline
A parabolic arc for x {0,1}: 1-(x*2-1)^2
Halfdan Ingvarsson
Senior Developer
Side Effects Software Inc
User Avatar
Member
8605 posts
Joined: 7月 2007
Offline
one more linear: abs(x%2-1)
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links