Godtone (talk | contribs)
Godtone (talk | contribs)
→Novation Launchpad Pro MK3 isomorphic keyboard code: updated colours to roughly approximate equidistance within constraint of factory palette
Line 1,154: Line 1,154:
rb17 = [120, 60, 84, 96, 109, 13, 98, 122, 25, 29, 37, 41, 45, 49, 81, 53, 57]
rb17 = [120, 60, 84, 96, 109, 13, 98, 122, 25, 29, 37, 41, 45, 49, 81, 53, 57]
rb18 = [120, 60, 84, 96, 109, 13, 98, 122, 25, 29, 37, 41, 45, 49, 81, 94, 82, 57]
rb18 = [120, 60, 84, 96, 109, 13, 98, 122, 25, 29, 37, 41, 45, 49, 81, 94, 82, 57]
rb29 = [120, 5, 60, 84, 96, 61, 62, 97, 13, 74, 98, 75, 122, 21, 25, 29, 33, 37, 41, 79, 67, 80, 49, 81, 94, 53, 95, 57, 58]
rb29old = [120, 5, 60, 84, 96, 61, 62, 97, 13, 74, 98, 75, 122, 21, 25, 29, 33, 37, 41, 79, 67, 80, 49, 81, 94, 53, 95, 57, 58]
rb30old = rb29[:6] + [126] + rb29[6:] # insert 126 between 61 and 62
rb30old = rb29old[:6] + [126] + rb29old[6:] # insert 126 between 61 and 62
rb31old = rb30old[:4] + [9] + rb30old[4:] # insert 9 between 84 and 96
rb31old = rb30old[:4] + [9] + rb30old[4:] # insert 9 between 84 and 96


Line 1,164: Line 1,164:
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,126]]
rb31 = [c for c in rb36 if c not in [61,62,98,75,80]]
_ry = [5, 84, 61, 62, 97]
rb30 = [c for c in rb36 if c!=53]
_yg = [13, 74, 98, 85, 75]
_gc = [17, 122, 21, 25, 29]
_cb = [33, 37, 78, 41, 79]
_bp = [45, 69, 49, 81, 94]
_pr = [53, 82, 95, 57, 58]
rb30 = _ry + _yg + _gc + _cb + _bp + _pr
rb31 = [120] + rb30
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.