Godtone
Joined 17 December 2020
m →Isomorphic keyboard code for launchpads with programmer mode: make the default velocity reduction for higher notes more intelligent, and for Launchpad Pro MK3: allow playing with the shift button if preferred (playable_shift=True or playable_shift=1) |
m →Isomorphic keyboard code for launchpads with programmer mode: fix playable_shift |
||
| Line 1,803: | Line 1,803: | ||
note=k, velocity=colmap[ (transform(k) - tuning_note) % len(colmap) ] | note=k, velocity=colmap[ (transform(k) - tuning_note) % len(colmap) ] | ||
)) | )) | ||
if note_vel and (not is_shift or not relative or relative and autorelative): # if we're pressing a key | if note_vel and ((not is_shift or playable_shift) or not relative or relative and autorelative): # if we're pressing a key | ||
note_vel = min(127,round( note_vel * 2**( -(tuning_note-bottomleftnote)/half ) )) | note_vel = min(127,round( note_vel * 2**( -(tuning_note-bottomleftnote)/half ) )) | ||
if note_state[tuning_note]: # if one or more equivalent keys are already held | if note_state[tuning_note]: # if one or more equivalent keys are already held | ||