Daemon to map MIDI input to keyboard strokes
Currently hardcoded to map piano sustain pedal to Zoom push-to-talk (Alt+A)
Instructions:
sudo apt install xdotool
aseqdump -l
; replaceScarlett
with name of your MIDI device- Replace mapping in case list with desired mapping
sudo cp midi2key.sh /usr/local/bin/midi2key
- Run with
midi2key &
I have so far been unsuccessful getting this to run on startup on Ubuntu 20.04, as it needs to be run in userland after display/MIDI device have been initialized. Things I've tried below that haven't worked:
crontab -e
(note do not run this assudo
as script needs to be run as user); add@reboot /usr/local/bin/midi2key &
to end of file