Godtone (talk | contribs)
m My Python 3 code: fix for unsimplified intervals
Godtone (talk | contribs)
m My Python 3 code: do conversion & simplification in correct place
Line 1,478: Line 1,478:


def mediant_path(x):
def mediant_path(x):
x = convert(x,tuple)
x = iv(x[0], x[1])
bottom, middle, top = (0, 1), (1, 1), (1, 0)
bottom, middle, top = (0, 1), (1, 1), (1, 0)
result = ''
result = ''
Line 1,491: Line 1,493:


def mediant_complexity(x,revoicing_octs=7):
def mediant_complexity(x,revoicing_octs=7):
x = convert(x,tuple)
x = iv(x[0], x[1])
mincomplexity = 2**30
mincomplexity = 2**30
for octs in range(revoicing_octs+1):
for octs in range(revoicing_octs+1):