summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/app/search/live.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/app/search/live.py b/cli/app/search/live.py
index 8e63fc5..8d9a5ef 100644
--- a/cli/app/search/live.py
+++ b/cli/app/search/live.py
@@ -101,7 +101,7 @@ class SinParam:
self.output = output
def update(self):
- self.orbit_time.value += self.orbit_speed.value / FPS
+ self.orbit_time.value += (np.pi * 2) / self.orbit_speed.value
class LerpParam:
def __init__(self, name, shape, a_in=None, b_in=None, datatype="noise"):
@@ -137,7 +137,7 @@ class LerpParam:
def update(self):
if self.direction != 0:
- self.n.value = clamp(self.n.value + self.direction * self.speed.value / FPS)
+ self.n.value = clamp(self.n.value + self.direction / self.speed.value)
print("set_opt: {}_n {}".format(self.name, self.n.value))
if self.n.value == 0 or self.n.value == 1:
self.direction = 0