Godtone
Joined 17 December 2020
→Isomorphic keyboard code for launchpads with programmer mode: add function to get mode n of a period-repeating scale |
→Isomorphic keyboard code for launchpads with programmer mode: fix change of variables |
||
| Line 1,475: | Line 1,475: | ||
def mode(a,b): | def mode(a,b): | ||
scale = [] | scale = [] | ||
n = 0 | |||
if type(a)==int and type(b)==list: | if type(a)==int and type(b)==list: | ||
n = a | |||
scale = b | scale = b | ||
elif type(a)==list and type(b)==int: | elif type(a)==list and type(b)==int: | ||
n = b | |||
scale = a | scale = a | ||
else: | else: | ||