Godtone (talk | contribs)
Godtone (talk | contribs)
m →Isomorphic keyboard code for launchpads with programmer mode: add more precision to make sure the sound is indistinguishable
Line 1,878: Line 1,878:
if j!=0 or i!=0: # equiv. if (i,j) != (0,0) (i think)
if j!=0 or i!=0: # equiv. if (i,j) != (0,0) (i think)
steps = i*x - i//every_x*x_reducer + j*y - j//every_y*y_reducer
steps = i*x - i//every_x*x_reducer + j*y - j//every_y*y_reducer
print( str(steps)+'\\'+str(edo) if args.get('backslash') or args.get('backslashes') else int(.5 + 10000 * steps/edo*1200)/10000 )
print( str(steps)+'\\'+str(edo) if args.get('backslash') or args.get('backslashes') else int(.5 + 1000**2 * steps/edo*1200)/1000**2 )
print()
print()
# for the launchpad pro MK3 specifically:
# for the launchpad pro MK3 specifically: