diff options
| -rw-r--r-- | cli/app/search/live.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/app/search/live.py b/cli/app/search/live.py index 27662b0..3d5d17c 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -118,14 +118,14 @@ class SinParam: self.t = 0 def update(self): - self.orbit_time.assign(self.orbit_time.value + (np.pi * 2) / self.orbit_speed.value, immediate=True) + self.orbit_time.assign(self.orbit_time.value + (np.pi) / self.orbit_speed.value, immediate=True) self.t += 1 # randomize the orbit when possible - # - check if we've done one full orbital period # - check if the noise is done transitioning - # if self.lerp and self.t >= self.orbit_speed.value and self.noise.n.value == 0 or self.noise.n.value == 1: - # self.noise.switch() - # self.t = 0 + if self.lerp and self.t >= self.orbit_speed.value and self.noise.n.value == 0 or self.noise.n.value == 1: + self.noise.switch() + self.t = 0 class LerpParam: def __init__(self, name, shape, a_in=None, b_in=None, datatype="noise", ease=easing.QuadEaseInOut): |
