Update Consumer.py
Browse files- Consumer.py +1 -1
Consumer.py
CHANGED
|
@@ -18,7 +18,7 @@ def change_key(amt = 3, scl="minor", duration=4, flag=True):
|
|
| 18 |
Clock.future(duration, change_key, args=[amt, scl, duration])
|
| 19 |
|
| 20 |
def change_cycle(notes, scales, plen, flag=True):
|
| 21 |
-
if Clock.now() % plen) == 0:
|
| 22 |
Scale.default = scales[(Clock.now()/plen) % len(notes)]
|
| 23 |
Root.default = notes[(Clock.now()/plen) % len(notes)]
|
| 24 |
if flag:
|
|
|
|
| 18 |
Clock.future(duration, change_key, args=[amt, scl, duration])
|
| 19 |
|
| 20 |
def change_cycle(notes, scales, plen, flag=True):
|
| 21 |
+
if (Clock.now() % plen) == 0:
|
| 22 |
Scale.default = scales[(Clock.now()/plen) % len(notes)]
|
| 23 |
Root.default = notes[(Clock.now()/plen) % len(notes)]
|
| 24 |
if flag:
|