summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-12-19 20:46:27 +0100
committerJules Laplace <julescarbon@gmail.com>2019-12-19 20:46:27 +0100
commit2a2c7c5ff57c13afd2d2fd6af9525cf0cb5b151e (patch)
tree71fa45ebfe7c160815140f8e16c3b1c50815d69a
parentebb50e0061fa8dcea522d819920595e96687eea0 (diff)
sending command
-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