From 2a2c7c5ff57c13afd2d2fd6af9525cf0cb5b151e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 19 Dec 2019 20:46:27 +0100 Subject: sending command --- inversion/live.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inversion') 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 -- cgit v1.2.3-70-g09d2