diff options
Diffstat (limited to 'inversion/live.py')
| -rw-r--r-- | inversion/live.py | 3 |
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 |
