Godtone (talk | contribs)
Godtone (talk | contribs)
m My Python 3 code: corrections of indent mishaps that sneaked in <_< also added percent variance to help interpretation
Line 636: Line 636:
def pad(what,width,centre='/',space=' '):
def pad(what,width,centre='/',space=' '):
if len(what) >= width:
if len(what) >= width:
return what
return what
lspaces = (width+1)//2
lspaces = (width+1)//2
rspaces = width - lspaces
rspaces = width - lspaces
Line 927: Line 927:
print( str.rjust( str(addable[-1]//2**fact_int(addable[-1])[0]), len(str(max(maximalharmonics))) ), '+',
print( str.rjust( str(addable[-1]//2**fact_int(addable[-1])[0]), len(str(max(maximalharmonics))) ), '+',
str( 100*(oldl-length( cm )) )[:6] + ',',
str( 100*(oldl-length( cm )) )[:6] + ',',
str( math.atan2(cm[0],cm[1])/math.tau*360 )[:6]
str( math.atan2(cm[0],cm[1])/math.tau*360 )[:6],
'('+str( 100 - cm*100 )[:5]+'% out)'
)
)
  return currentharmonics
return currentharmonics
</syntaxhighlight>
</syntaxhighlight>