Use MIDI inputs as Xbox controllers.
- Python 3.7
Virtual environment should be created before installing.
python -m venv venv
venv\Scripts\activate
python -m pip install -U pip setuptools
-e
allows editing the application without having to reinstall it.
pip install -e .
python -m miditoxinput
python -m miditoxinput
Debug logging will be useful for figuring out what commands your MIDI device outputs.
python -m miditoxinput DEBUG
For example, the following slider's command
is 77.
2020-09-01 10:53:47,866 DEBUG: Command is: '[184, 77, 123, 0]'
2020-09-01 10:53:47,881 DEBUG: Command is: '[184, 77, 122, 0]'
2020-09-01 10:53:47,896 DEBUG: Command is: '[184, 77, 121, 0]'
2020-09-01 10:53:47,911 DEBUG: Command is: '[184, 77, 120, 0]'
The following button's command
is 59.
2020-09-01 10:56:05,898 DEBUG: Command is: '[152, 59, 127, 0]'
2020-09-01 10:56:06,241 DEBUG: Command is: '[136, 59, 0, 0]'
This project uses Black for code formatting.
pip install black
black miditoxinput/
black setup.py