http://www.mtbs3d.com/phpBB/viewtopic.php?f=139&t=20537
http://www.mtbs3d.com/phpBB/viewtopic.php?f=139&t=21436
https://github.com/AndersMalmgren/FreePIE/issues/81
From the above, I am using a script that allows me to use a slider on the MIDI controller as a throttle in flight sims:
Code: Select all
def update():
vJoy[0].slider = filters.mapRange(midi[0].data.buffer[1], 127, 0, 17873, -17873)
if starting:
midi[0].update += update
The slider is a volume control, which is MIDI CC 07. So I am trying to get the script to listen to that only, for example:
Code: Select all
vJoy[0].slider = filters.mapRange(midi[0].data.buffer[1] == 07, 127, 0, 17873, -17873)
Code: Select all
vJoy[0].slider = filters.mapRange((midi[0].data.buffer[1] == 07), 127, 0, 17873, -17873)