Godtone
Joined 17 December 2020
→Novation Launchpad Pro MK3 isomorphic keyboard code: make it much easier to use larger tunings |
m →Novation Launchpad Pro MK3 isomorphic keyboard code: print info that helps the user |
||
| Line 1,404: | Line 1,404: | ||
coverage = args.get('coverage') or args.get('c') or 10 | coverage = args.get('coverage') or args.get('c') or 10 | ||
if large: | if large: | ||
print('WARNING: the midi note range of your layout is too large, so x=1, y='+str(coverage)+'=c=coverage is being used.') | |||
edo = args.get('edo') or args.get('ed2') or args.get('ed') or args.get('et') or len(colmap) | edo = args.get('edo') or args.get('ed2') or args.get('ed') or args.get('et') or len(colmap) | ||
print('IMPORTANTLY: the below is a scale of',edo,'EDO corresponding to your chosen layout.') | |||
print('IMPORTANTLY: the base note for frequency MUST be midi note 0 so that the notes are placed correctly!') | |||
for j in range(coverage): | for j in range(coverage): | ||
for i in range(coverage): | for i in range(coverage): | ||
if j!=0 or i!=0: | if j!=0 or i!=0: | ||
print( str(i*x + j*y)+'\\'+str(edo) ) | print( str(i*x + j*y)+'\\'+str(edo) ) | ||
print() | |||
# for the launchpad pro MK3 specifically: | # for the launchpad pro MK3 specifically: | ||
distinct_half_buttons = ( args.get('distinct_half_buttons') or args.get('distinct_halves') | distinct_half_buttons = ( args.get('distinct_half_buttons') or args.get('distinct_halves') | ||