Skip to content

Converts XBox 360 Controller inputs to MIDI commands

Notifications You must be signed in to change notification settings

jmbiggs/xbox2midi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

xbox2midi

Python script intended for Linux / Raspberry Pi use. Converts XBox 360 controller inputs into MIDI commands.

Getting Started

Prerequisites

Xbox.py

Mido

rtmidi

Installing

  1. Follow installation instructions for xbox.py, download and put the xbox.py file in the same folder as xbox2midi.py

  2. Install Mido

pip install mido
  1. Install rtmidi
pip install python-rtmidi

Usage

You will most likely need to edit the script to get the functionality you want.

I set this up to control a DSI Tetra synthesizer, so consult the manual of your MIDI device to find the CC values you want to control, and update the script accordingly.

Default controls

  • Start Button - toggle note on/off

  • Back Button - exits program

  • Left Stick (x-axis) - OSC 1 shape

  • Left Stick (y-axis) - OSC 1 pitch

  • Right Stick (x-axis) - OSC 2 shape

  • Right Stick (y-axis) - OSC 2 pitch

  • Left Stick (pressed) - toggle up/down direction of OSC 1 pitch

  • Right Stick (pressed) - toggle up/down direction of OSC 2 pitch

  • Left Trigger - OSC 1 fine pitch

  • Right Trigger - OSC 2 fine pitch

  • Left Bumper - toggle up/down direction of OSC 1 fine pitch

  • Right Bumper - toggle up/down direction of OSC 2 fine pitch

  • D-Pad (up) - octave up

  • D-Pad (down) - octave down

  • D-Pad (left) - note down

  • D-Pad (right) - note up

  • A - note change: down a third (4 half steps)

  • B - note change: up a third (4 half steps)

  • X - note change: down a fifth (7 half steps)

  • Y - note change: up a fifth (7 half steps)

Author

jmbiggs, jmbiggsdev@gmail.com

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Converts XBox 360 Controller inputs to MIDI commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages