Luca Conte 5 months ago
parent
commit
fd35d2d117
1 changed files with 3 additions and 0 deletions
  1. 3 0
      AudioToDeforumKeyframes.py

+ 3 - 0
AudioToDeforumKeyframes.py

@@ -76,6 +76,9 @@ def f(t):
     return 1.0025+0.002*np.sin(1.25*3.14*t/30)
     #return x ** 2
 
+def sig(x):
+ return 1/(1 + np.exp(-12*(x-0.431)))
+
 
 strength_min = 0.4
 strength_max = 0.6