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