Godtone
Joined 17 December 2020
m →Isomorphic keyboard code for launchpads with programmer mode: add 32-colour rainbow |
|||
| Line 1,444: | Line 1,444: | ||
rb30 = ry5 + yg5 + gc5 + cb5 + bp5 + pr5 | rb30 = ry5 + yg5 + gc5 + cb5 + bp5 + pr5 | ||
rb31 = [120, 5] + rb30[1:] | rb31 = [120, 5] + rb30[1:] | ||
rb32 = [c for c in rb34 if c not in [85,96]] | |||
rb29 = [c for c in rb30 if c!=75] | rb29 = [c for c in rb30 if c!=75] | ||
# 29 colours is a fairly ideal rainbow; we use it for indexing into, so as 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. | ||
| Line 1,456: | Line 1,457: | ||
rb25 = [c for c in rb26 if c!=74] | rb25 = [c for c in rb26 if c!=74] | ||
colmaps = { 12: rb12, 13: rb13, 16: cm16, 17: rb17v2, 18: rb18, 19: rb19, 25: rb25, 26: rb26, 27: rb27, 28: rb28, 29: rb29, 30: rb30, 31: rb31, 34: rb34, 35: rb35, 36: rb36 } | colmaps = { 12: rb12, 13: rb13, 16: cm16, 17: rb17v2, 18: rb18, 19: rb19, 25: rb25, 26: rb26, 27: rb27, 28: rb28, 29: rb29, 30: rb30, 31: rb31, 32: rb32, 34: rb34, 35: rb35, 36: rb36 } | ||
# for example, if you're using 34 EDO and you want a 1\2 = 17\34 period | # for example, if you're using 34 EDO and you want a 1\2 = 17\34 period | ||