Created
February 24, 2018 18:17
-
-
Save carolosf/67d9aafe9dc71d9e143b8531e48d889a to your computer and use it in GitHub Desktop.
Nice mappings for FL Studio 12 and my M-Audio Axiom air 32 mini
This file contains hidden or 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
#!/bin/bash | |
# Nice mappings for FL Studio 12 and my M-Audio Axiom air 32 mini | |
# aseqdump -l | |
# aseqdump -p "Axiom A.I.R. Mini32" | |
# sudo apt install xdotool | |
aseqdump -p "Axiom A.I.R. Mini32" | \ | |
while IFS=" ," read src ev1 ev2 ch label1 data1 label2 data2 rest; do | |
#echo "$srsc $ev1 $ev2 $ch $label1 $data1 $label2 $data2 $rest" | |
case "$ev1 $ev2 $data1 $data2" in | |
"Control change 17 127" ) xdotool key space ;; | |
"Control change 18 127" ) xdotool key shift+r ;; | |
"Control change 18 127" ) xdotool key shift+r ;; | |
"Control change 19 127" ) xdotool key Up ;; | |
"Control change 20 127" ) xdotool key Down ;; | |
"Control change 22 127" ) xdotool key Left ;; | |
"Control change 21 127" ) xdotool key Right ;; | |
"Control change 16 127" ) xdotool key alt+F8 ;; | |
"Control change 23 127" ) xdotool key Return ;; | |
esac | |
done |
Where i should put it
If you’re on Debian or Ubuntu
Run ‘ sudo apt install xdotool’
Copy and paste it into a file and put it anywhere probably home directory is a good place.
do ‘chmod a+x flscript.sh’ to make the script runnable
Then you can run ‘./flscript.sh’ before you start fl studio
No guarantees that this still works I haven’t tried in years.
If it works and you are using Ubuntu you can add it to Startup Applications in settings so it runs on login.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Men how can i make run that script