Godtone
Joined 17 December 2020
→Isomorphic keyboard code for launchpads with programmer mode: fix equivalent notes bug on large=True EDO layouts |
m →Isomorphic keyboard code for launchpads with programmer mode: deprecate 'vol' and 'volume' as ways of specifying falloff, add better default falloff, allow 'falloff' |
||
| Line 1,679: | Line 1,679: | ||
or args.get('minvelocity') or args.get('minvel') or args.get('minv') | or args.get('minvelocity') or args.get('minvel') or args.get('minv') | ||
or 1 ) # minimum velocity required (else ignored) | or 1 ) # minimum velocity required (else ignored) | ||
edo = args.get('edo') or args.get('ed2') or args.get('ed') or args.get('et') or len(colmap) | |||
half = args.get('half') or args.get('h') or args.get('falloff') or max(40,min(140,edo)) # how many midi notes to go up from bottomleft before the velocity is halved | |||
extra = args.get('extra') or args.get('eleven') or False # whether to consider half-buttons as distinct notes of an uneven 10x11 grid on Launchpad Pro MK3 (off by default as weird to play with) | extra = args.get('extra') or args.get('eleven') or False # whether to consider half-buttons as distinct notes of an uneven 10x11 grid on Launchpad Pro MK3 (off by default as weird to play with) | ||
# these are for if you want or need to keep the colour mapping distinct from the midi notes EG in large EDO subsets | # these are for if you want or need to keep the colour mapping distinct from the midi notes EG in large EDO subsets | ||
| Line 1,699: | Line 1,700: | ||
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.') | print('WARNING: the midi note range of your layout is too large, so x=1, y='+str(coverage)+'=c=coverage is being used.') | ||
print('IMPORTANTLY: the below is a scale of',edo,'EDO corresponding to your chosen layout.') | 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!') | print('IMPORTANTLY: the base note for frequency MUST be midi note 0 so that the notes are placed correctly!') | ||