Skip to content

Instantly share code, notes, and snippets.

@SimonHoiberg
Created August 22, 2020 14:40
Show Gist options
  • Save SimonHoiberg/754361d60238c4f9d0f206f7a995292a to your computer and use it in GitHub Desktop.
Save SimonHoiberg/754361d60238c4f9d0f206f7a995292a to your computer and use it in GitHub Desktop.
## This script works specifically with Boss GT-100
## The same principle can be used for any MIDI controller.
aseqdump -p "GT-100" | \
while IFS=" ," read src ev1 ev2 ch label1 data1 label2 data2 rest; do
case "$data1 $data2" in
"80 127" ) xdotool key Down ;;
"81 127" ) xdotool key Up ;;
esac
if [[ "$data1" == "7" ]]; then
if [[ $data2 = 127 || $data2 = 0 ]]; then
xdotool key Down
fi
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment