Godtone (talk | contribs)
→80 EDO interval colours/types (seconds and thirds): added more interval names for 80 EDO table
Godtone (talk | contribs)
added padding function for intervals
Line 546: Line 546:
return str(n)+'/'+str(d)
return str(n)+'/'+str(d)
return '[not interval]'
return '[not interval]'
def pad_striv(what, spaces, center = '/'):
center_loc = what.find(center)
lhs = what[:center_loc]
rhs = what[center_loc+len(center):]
return ' '*(spaces//2 - len(lhs)) + lhs + center + rhs + ' '*(spaces//2 - len(rhs))
def as_float(x, p=None):
def as_float(x, p=None):
if type(x)==list: # monzo (factored)
if type(x)==list: # monzo (factored)