Godtone (talk | contribs)
→My Python 3 code: added ringer val search code
Godtone (talk | contribs)
m →My Python 3 code: added showRinger as a way of standardising the human process completion of a preferred Ringer val deduced by base_ringer
Line 807: Line 807:
i += 1
i += 1
return result
return result
# if the val given splits a 2-step superparticular interval into two 1-step superparticular intervals without modification
# then it will show that, otherwise it will just show what the superparticular interval is mapped to by the val.
# used for completing building Ringer scales.
def showRinger(edo, warts = None, tendency = 0):
  if warts==None:
    warts = []
  v = val(lim(edo*4),ed(edo),warts,tendency)
  for h in range(v[0],v[0]*2):
    x = (h+1,h)
    edosteps = map_iv(v,x)
    if edosteps==2 and map_iv(v,(2*h+1,2*h))==map_iv(v,(2*h+2,2*h+1))==1:
      print(striv( (2*h+1,2*h  ),1 ))
      print(striv( (2*h+2,2*h+1),1 ))
    else:
      print(striv(x,edosteps))
</syntaxhighlight>
</syntaxhighlight>