Fixing bug in hsv_to_rgb function.
This commit is contained in:
parent
53ceeb5dcc
commit
7c6153cd50
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ note_time = 60 / bpm * (note_length * 4)
|
||||||
# 0 = up
|
# 0 = up
|
||||||
# 1 = down
|
# 1 = down
|
||||||
# 2 = up-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
|
# 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.
|
# or backwards (-1) if the style is down.
|
||||||
|
|
|
@ -444,6 +444,6 @@ def hsv_to_rgb(h, s, v):
|
||||||
if i == 5:
|
if i == 5:
|
||||||
rgb = [v, p, q]
|
rgb = [v, p, q]
|
||||||
|
|
||||||
rgb = (int(c * 255) for c in rgb)
|
rgb = tuple(int(c * 255) for c in rgb)
|
||||||
|
|
||||||
return rgb
|
return rgb
|
Loading…
Reference in a new issue