Godtone (talk | contribs)
m Novation Launchpad Pro MK3 isomorphic keyboard code: avoid confusing error by using g=1 as the default for consistency with how iso() has been used in the past
Godtone (talk | contribs)
Novation Launchpad Pro MK3 isomorphic keyboard code: less confusing default value for bottomleftnote
Line 1,391: Line 1,391:
colmap = [( colmap*mul )[i%len(colmap)] if i%highlight[-1] in [0]+highlight else 3 for i in range(mul)]
colmap = [( colmap*mul )[i%len(colmap)] if i%highlight[-1] in [0]+highlight else 3 for i in range(mul)]
# get arguments with default values
# get arguments with default values
bottomleftnote = args.get('bottomleftnote') or args.get('blnote') or args.get('bl') or args.get('b') or min(x,y)
bottomleftnote = args.get('bottomleftnote') or args.get('blnote') or args.get('bl') or args.get('b') or 0
vel = args.get('velocity') or args.get('vel') or args.get('v') or 102 # velocity used when lacking sensitivity
vel = args.get('velocity') or args.get('vel') or args.get('v') or 102 # velocity used when lacking sensitivity
min_vel = ( args.get('minimum_velocity') or args.get('minimum_vel') or args.get('minimum_v')
min_vel = ( args.get('minimum_velocity') or args.get('minimum_vel') or args.get('minimum_v')