Skip to content

A small project so I can use a Korg NanoKontrol2 as a joystick input for games like Artemis Starship Bridge Simulator, Space-Nerds-In-Space or anything that would benefit from a bunch of slider or dial controls

License

Notifications You must be signed in to change notification settings

gregjlinton/MIDI-to-FreePIE-to-vJoy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MIDI_to_FreePIE_to_vJoy

#A small project so I can use a Korg NanoKontrol2 as a joystick input for games like Artemis Starship Bridge Simulator, Space-Nerds-In-Space or anything that would benefit from a bunch of slider or dial controls

This is a work in progress and to hell with your warranty!

I wanted to use a Korg nanoKontrol2 as a joystick. Why? 'Cause buttons, dials & sliders for cheaper ($80 CDN).

This: http://www.korg.com/caen/products/computergear/nanokontrol2/

To make this work we need to monitor the midi from the nanoKontrol2 and convert them in real time to a joystick output.

We can do that with FreePIE (Programmable Input Emulator): http://andersmalmgren.github.io/FreePIE/

FreePIE converts that to an output for a virtual joystick.

For this we're using vJoy: http://vjoystick.sourceforge.net/site/

vJoy only supports a limited number of axis which we want to use as sliders/dials and other inputs to games.

To make this all work, we're going to have to split layout of the nanoKontrol2 into multiple virtual joysticks.

To make this all work, we're going to have to split layout of the nanoKontrol2 into multiple virtual joysticks.

4 dials and 4 sliders on the left as a joystick (with some buttons?), 4 dials and 4 sliders on the right as a second joystick (with some buttons?).

A 3rd joystick could be used for all the "transport" buttons (forward, back, play, record, next track, etc).

All of this was coded in a brute force way because I am a noob at this.

Install vJoy.

Install FreePIE.

Copy and past this code into FreePIE. Save it as a script, then press run. If it all works, you should be able to monitor the joystick outuput with vJoy's monitor program.

The horrible, horrible code that's totally inefficient is for a reason. You can comment out the parts you don't want with a #. That way you can disable sliders, buttons or whatever individually within FreePIE without having to learn actually principles of coding. Additionally you can add, subtract or change the mapping of CC# buttons to vJoy buttons directly. There's no fancy loops, counters or time outs. Brute force and ignorance.

This may require more advanced debouncing. This is beyond the scope of my skills. But it looks okay when staring at the vJoy Monitor output.

Share and enjoy the slider, dial, button goodness.

About

A small project so I can use a Korg NanoKontrol2 as a joystick input for games like Artemis Starship Bridge Simulator, Space-Nerds-In-Space or anything that would benefit from a bunch of slider or dial controls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages