summaryrefslogtreecommitdiff
path: root/inversion
diff options
context:
space:
mode:
Diffstat (limited to 'inversion')
-rw-r--r--inversion/live.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/inversion/live.py b/inversion/live.py
index 30786da..711df22 100644
--- a/inversion/live.py
+++ b/inversion/live.py
@@ -117,7 +117,7 @@ class LerpParam:
self.direction = 0
def switch(self):
- if self.n > 0.5:
+ if self.n.value > 0.5:
self.a.randomize()
self.direction = -1
else:
@@ -221,6 +221,7 @@ class Interpolator:
return gen_images
def run(self, cmd, payload):
+ print("Command: {} {}".format(cmd, payload))
if cmd == 'switch' and payload in self.lerp_params:
self.lerp_params[payload].switch()
pass