How to Use a MIDI Keyboard in a Flight Sim
Channel: Sax-Flyer
Date: 2022-03-15

IMPORTANT: GlovePIE Scripts must be saved as .PIE files, not .txt. Write it in a text editor and then save it as .PIE!! 

To check which MIDI Device you're using, use this script (.PIE!!!): debug = midi.InDevName

Then add the following to check each what each device is: midi.devicein = 1

Change it to 2, 3, 4, until the debug reads as the device you want to use. This probably isn't necessary for 99% of people trying to do this, but you want to add the midi.devicein line if GlovePIE doesn't recognize the right midi device.

Let me know in the comments if you have any questions! I will post the script that works for ME here, but keep in mind that you WILL need to change your CC numbers to the ones that match YOUR device.

If you don't know which CC numbers your device is using, download MIDIOX  to find your CC numbers from MIDIOX. (The DATA1 field is your CC number, but it's in HEX form!! i.e. 12 is 18, etc. Use a hex to decimal converter.) 
Link for the old forum post: http://forum.1cpublishing.eu/showthread.php?t=22463
Link for PPJoy and GlovePIE: https://drive.google.com/drive/folders/1fDKdR6Tzp_0GnqD1n2BHG_hC1lotlsXZ?usp=sharing 

Link for MIDIOX: http://www.midiox.com/?http://midiox.com/moxdown.htm

Link to my website: https://sax-flyer.com/