Godtone (talk | contribs)
Godtone (talk | contribs)
→Isomorphic keyboard code for launchpads with programmer mode: FIX MANUAL SPECIFICATION OF MIDI INPUT AND OUTPUT FOR LAUNCHPAD (for some reason i accidentally reverted it when adding smth else :/)
Line 1,553: Line 1,553:
print(i)
print(i)
print('selecting:')
print('selecting:')
launchpad_col = [i for i in midi_outputs if lpselect(i)][0]
launchpad_col = args.get('midi_out_col')
print(launchpad_col)
if not launchpad_col:
launchpad_col = [i for i in midi_outputs if lpselect(i)][0]
print('midi_out_col=\''+launchpad_col+'\'')
# find launchpad input (what we get midi input (mi) data from)
# find launchpad input (what we get midi input (mi) data from)
midi_inputs = mido.get_input_names()
midi_inputs = mido.get_input_names()
Line 1,561: Line 1,563:
print(i)
print(i)
print('selecting:')
print('selecting:')
launchpad_mi = [i for i in midi_inputs if lpselect(i)][0]
launchpad_mi = args.get('midi_input')
print(launchpad_mi)
if not launchpad_mi:
launchpad_mi = [i for i in midi_inputs if lpselect(i)][0]
print('midi_input=\''+launchpad_mi+'\'')
# define mapping from midi note given by launchpad to midi note in isomorphic layout
# define mapping from midi note given by launchpad to midi note in isomorphic layout