From 7c6153cd5075994c14f11c295693dc8b2e765453 Mon Sep 17 00:00:00 2001 From: sandyjmacdonald Date: Fri, 12 Mar 2021 18:23:41 +0000 Subject: [PATCH] Fixing bug in hsv_to_rgb function. --- examples/midi-arp.py | 2 +- keybow2040.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/midi-arp.py b/examples/midi-arp.py index 0a39624..2d690de 100644 --- a/examples/midi-arp.py +++ b/examples/midi-arp.py @@ -50,7 +50,7 @@ note_time = 60 / bpm * (note_length * 4) # 0 = up # 1 = down # 2 = up-down -arp_style = 2 +arp_style = 1 # Start the arp in a forwards direction (1) if the style is up or up-down, or # or backwards (-1) if the style is down. diff --git a/keybow2040.py b/keybow2040.py index 0c51147..bdeb733 100755 --- a/keybow2040.py +++ b/keybow2040.py @@ -444,6 +444,6 @@ def hsv_to_rgb(h, s, v): if i == 5: rgb = [v, p, q] - rgb = (int(c * 255) for c in rgb) + rgb = tuple(int(c * 255) for c in rgb) return rgb \ No newline at end of file