Footupyzz, on 15 September 2015 - 06:58 AM, said:
@Stijnovic hoe is ie?^^ ook nog steeds diehard player zie ik:D
how is the playing experience with it ?
improved or same?
Hey! Sorry for late reply. I have been using the twin pedal setup for quite some time now and I really like it! It took me a long time to get used to it though, frantically pressing [w] with nothing happening...
I use the right pedal for 0-100% throttle and the left pedal for 0-100% throttle backwards. Whichever is pressed further "wins". This makes peeking super easy and fast. Also it gives me a lot of extra keys that I can use. But yeah, you need to give it some time. Using my feet was really not intuitive for me at first (even though I can drive a car and play both piano and drums).
Shin Ken, on 10 October 2015 - 01:04 AM, said:
As my MIDI stuff now works as well you may also want to cut the middle man and connect your MIDI device directly to VJoy using a FreePIE Python script. It's not much more complicated than a GlovePIE script (in some regards it's easier) and assuming you have Windows 7 or newer, you don't have to use Test Mode for PPJoy this way which is always a huge safety and stability concern. Probably saves some milliseconds delay as well.
I've done some FreePIE MIDI scripting myself and can help you. Basically, FreePIE does not have every MIDI command translated like GlovePIE but works with more general use buffers which you have to differentiate using if-statements in the python language. It's a bit more complex but also a lot more universally applicable, logical and straightforward. I'll explain it in more detail if you want to.
This is interesting! I'm now in the process of reinstalling my pc and was checking this topic to see how I did it again. But now I see you have an improvement!
![Posted Image](http://static.mwomercs.com/forums//public/style_emoticons/default/smile.png)
I do prefer the non-test mode for Windows 7.
I'll see if I can manage by myself to fix it your way.
I found your script:
def update():
vJoy[0].rz = filters.mapRange(midi[0].data.buffer[1], 0, 127, -17873, 17873)
if starting:
midi[0].update += update
My device sends controll change messages on #7 and #14 but I don't know how to acces those from the python script. How do you set the device and channel? This was my old GlovePIE script:
midi.DeviceIn = 2
midi.DefaultChannel = 1
if midi.cc7 > midi.cc14 then
PPJoy1.Analog0 = midi.cc7
else
PPJoy1.Analog0 = -midi.cc14
end
Also, when I use Midi-OX, to check what my device is sending, I get something like this:
Timestamp In Port Status Data1 Data2 Chan Note Event
01A71804 2 2 B0 0E 02 1 --- Control Change (pedal 1)
01AACAB1 2 2 B0 07 10 1 --- Volume (pedal 2)
Okay, it seems to be working now with the following script:
def update():
global pedalleft
global pedalright
pedalvalue = filters.mapRange(midi[1].data.buffer[1], 0, 127, 0, 17873)
pedalchannel = midi[1].data.buffer[0]
if pedalchannel==14:
pedalright = pedalvalue
else:
pedalleft = pedalvalue
if pedalleft > pedalright:
vJoy[0].x = -pedalleft
else:
vJoy[0].x = pedalright
if starting:
pedalleft = 0
pedalright = 0
midi[1].update += update
Edited by Stijnovic, 05 December 2015 - 06:10 PM.