Godtone (talk | contribs)
Godtone (talk | contribs)
Line 1,117: Line 1,117:
print(to_send)
print(to_send)
mo.send(to_send)
mo.send(to_send)
# rb for rainbow
rb12 = [5, 9, 13, 17, 21, 25, 77, 37, 45, 81, 53, 57]
rb12 = [5, 9, 13, 17, 21, 25, 77, 37, 45, 81, 53, 57]
rb13 = [5, 9, 13, 17, 21, 25, 77, 37, 41, 45, 81, 53, 57] # add 41 to rb12
rb13 = [5, 9, 13, 17, 21, 25, 77, 37, 41, 45, 81, 53, 57] # add 41 to rb12
Line 1,126: Line 1,127:
rb30 = rb29[:6] + [126] + rb29[6:] # insert 126 between 61 and 62
rb30 = rb29[:6] + [126] + rb29[6:] # insert 126 between 61 and 62
rb31 = rb30[:4] + [9] + rb30[4:] # insert 9 between 84 and 96
rb31 = rb30[:4] + [9] + rb30[4:] # insert 9 between 84 and 96
# 29 colours is a fairly ideal rainbow; we use it for indexing into to derive a 17-colour palette.
# 29 colours is a fairly ideal rainbow; we use it for indexing into, so as to derive a 17-colour palette.
# note that i chose the +0.4 experimentally based on the colour palette i liked most.
# note that i chose the +0.4 experimentally based on the colour palette that seemed most distinct to me.
rb17v2 = [ rb29[round( k/17*29+0.4 )%29] for k in range(17)]
rb17v2 = [ rb29[round( k/17*29+0.4 )%29] for k in range(17)]
rb19 = [ rb29[round( k/19*29+0.4 )%29] for k in range(17)]
def iso(x=5, y=1, note_to_col = lambda n: 1 if n>0 else 0, bottomleftnote=10, vel=102, half=40):
def iso(x=5, y=1, note_to_col = lambda n: 1 if n>0 else 0, bottomleftnote=10, vel=102, half=40):
colmap = note_to_col
colmap = note_to_col