A simple script that when run, asks for what applications to control and then gives the X-Touch Mini the ability to control the volumes of the audio streams (ex. Browser, Discord, Music Player etc.). Fader controls master volume and play, next, previous and stop buttons are also mapped.
This script should also work with other MIDI controllers, but you will need to change the mappings, see the Sources chapter for an explanation on how to do it.
- Knobs 1 - 8 control the volume of 8 sources chosen on script start (0-127 mapped from 0.0 to 1.0)
- Fader control the main volume (0-127 mapped from 0 to 100%)
- Buttons mapped:
- Play
- Stop
- Next
- Previous
- MC Button switches between two outputs (ex. Speakers and Headphones), which are set on script start
- Record Button Resets Terminal view, in case error messages made it unreadable
- playerctl
- Arch
- Debian / Ubuntu
- Other distributions will have it as well
- Plugin your Behringer X-Touch MINI
- Run
aseqdump -lto make sure, your X-Touch MINI is recognized and namedX-TOUCH MINIunder Client name - If it is named otherwise go to the Script and change the line
aseqdump -p "X-TOUCH MINI"toaseqdump -p "WHAT YOUR MIDI CONTROLLER IS NAMED" - Run the script
bash midi_control.sh - Follow the instructions
- Control your volumes
Same steps as for X-Touch MINI but you maybe need to change the mappings, for that read the article in the Sources chapter of the README.
This article by Martin de Reuver made it possible for me to write this script. I tried countless scripts, programs and repos but none worked, which is why I decided to write my own.