Godtone
Joined 17 December 2020
m added minor note about a trick for right-aligned padding (for use with eg harmonics) |
→My Python 3 code: misunderstood behaviour when center = '' (empty string) |
||
| 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 = '/'): | def pad_striv(what, spaces, center = '/'): | ||
center_loc = what.find(center) | center_loc = what.find(center) | ||