GithubHelp home page GithubHelp logo

miditoxinput's Introduction

MIDI to XInput

Use MIDI inputs as Xbox controllers.

Requirements

  • Python 3.7

Virtual environment should be created before installing.

python -m venv venv
venv\Scripts\activate
python -m pip install -U pip setuptools

Install in editable mode

-e allows editing the application without having to reinstall it.

pip install -e .
python -m miditoxinput

Running

python -m miditoxinput

Configuring

Debug logging

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]'

Codestyle

This project uses Black for code formatting.

pip install black
black miditoxinput/
black setup.py

miditoxinput's People

Contributors

unmoon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.