Midi to vJoy Script Generator

Instructions

Begin by selecting your MIDI device from the dropdown menu. Press an axis on the screen and move an analog MIDI control to bind it to the selected axis. For buttons, press on-screen and correspondingly tap the button on your MIDI controller multiple times to establish the link. Right clicking on the on-screen buttons and axes disables them. Right clicking again allows them to be remapped. Continue this process until all desired controls are mapped onto on-screen joysticks. Adjust the number of virtual joysticks using the joystick input, noting that all six will disable physical joysticks or controllers. Once mapping is complete, click "generate," and copy the code into a Python file. Ensure vJoy and Pygame are installed; if not, install them before closing the browser window. Configure your vJoy instance to match the joysticks you mapped your MIDI controller to. Run the script if prerequisites are already in place. Remember to always make sure the script is running before enabling your robot. You can use the IExpress program in your System32 folder to create an exe file from the Python script to make running the script easier.

Limitations

All of my MIDI controllers use pots instead of encoders, so I haven't tested them. Your milage may vary.

If you keep the browser window open before running the script. You will get an error because the MIDI device is already in use.

It is possible to use POV hats with vJoy but theres no sensible reason to unless you run out of buttons so I didn't implement that functionality.

This mapping is only one way. If you want to change the colors of the pads of your controller, or do any other shenanagins, you have to implement that yourself.





Joystick 1
Joystick 2
Joystick 3
Joystick 4
Joystick 5
Joystick 6