Godtone (talk | contribs)
→My Python 3 code: add function to rotate a scale so that the tonic is the nth note (where the original tonic is the 0th note) w.r.t a period (default 2/1) and added a function to check whether scales are equal up to rotation
Godtone (talk | contribs)
Line 1,190: Line 1,190:
rb36br = [45, 80, 69, 49, 81, 94, 53, 82, 95, 57, 58, 120] # len-1=11 53 or 82 to be removed for smoothness; 80 to be removed for distinctness
rb36br = [45, 80, 69, 49, 81, 94, 53, 82, 95, 57, 58, 120] # len-1=11 53 or 82 to be removed for smoothness; 80 to be removed for distinctness
rb36 = rb36ry[:-1] + rb36yg[:-1] + rb36gb[:-1] + rb36br[:-1] # maximal, but uneven, rainbow
rb36 = rb36ry[:-1] + rb36yg[:-1] + rb36gb[:-1] + rb36br[:-1] # maximal, but uneven, rainbow
rb34 = [c for c in rb36 if c not in [61,126]]
rb34 = [c for c in rb36 if c not in [61,62]]
ry5 = [120, 60, 84, 126, 99]
ry5 = [120, 60, 84, 126, 99]
yg5 = [97, 13, 74, 98, 75]
yg5 = [97, 13, 74, 98, 75]