Created
August 22, 2020 14:40
-
-
Save SimonHoiberg/754361d60238c4f9d0f206f7a995292a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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