Setting Up Midiyoke And Glovepie On Windows 7 - Page 7
Page 7 of 10 FirstFirst ... 345678910 LastLast
Results 61 to 70 of 98
  1. #61
    Tech Mentor extraclassic's Avatar
    Join Date
    May 2010
    Location
    Sheffield - UK
    Posts
    255

    Default

    fbonito try this code

    Code:
    //Extra Classics Script For 2 Gamepads
    //Includes 12 Buttons Plus POV And 4 Analog Per Gamepad
    
    midi.DefaultChannel = 1
    
    //Gamepad 1 - Buttons
    midi.csharp0 = Joystick1.Button1
    midi.d0 = Joystick1.Button2
    midi.dsharp0 = Joystick1.Button3
    midi.e0 = Joystick1.Button4
    midi.f0 = Joystick1.Button5
    midi.fsharp0 = Joystick1.Button6
    midi.g0 = Joystick1.Button7
    midi.gsharp0 = Joystick1.Button8
    midi.a0 = Joystick1.Button9
    midi.asharp0 = Joystick1.Button10
    midi.b0 = Joystick1.Button11
    midi.c1 = Joystick1.Button12
    
    //Gamepad 1 - POV
    midi.csharp1 = Joystick1.Pov1Left
    midi.d1 = Joystick1.Pov1Right
    midi.dsharp1 = Joystick1.Pov1Up
    midi.e1 = Joystick1.Pov1Down
    
    //Gamepad 1 - Analogs
    midi.ModWheel = Joystick.x/261 + 65
    midi.Breath = Joystick.y/261 + 65
    midi.Control3 = Joystick.z/261 + 65
    midi.FootPedal = Joystick.roll/261 + 65
    
    //Gamepad 2 - Buttons
    midi.f1 = Joystick2.button1
    midi.fsharp1 = Joystick2.button2
    midi.g1 = Joystick2.button3
    midi.gsharp1 = Joystick2.button4
    midi.a1 = Joystick2.button5
    midi.asharp1 = Joystick2.button6
    midi.b1 = Joystick2.button7
    midi.c2 = Joystick2.button8
    midi.csharp2 = Joystick2.button9
    midi.d2 = Joystick2.button10
    midi.dsharp2 = Joystick2.button11
    midi.e2 = Joystick2.button12
    
    //Gamepad 2 - POV
    midi.f2 = Joystick2.pov1left
    midi.fsharp2 = Joystick2.pov1right
    midi.g2 = Joystick2.pov1up
    midi.gsharp2 = Joystick2.pov1down
    
    //Gamepad 2 - Analogs
    midi.PortamentoTime = Joystick2.x/261 + 65
    midi.DataEntry = Joystick2.y/261 + 65
    midi.Volume = Joystick2.z/261 + 65
    midi.Balance = Joystick2.roll/261 + 65

  2. #62
    Tech Mentor fbonito's Avatar
    Join Date
    Nov 2010
    Location
    lisbon
    Posts
    220

    Default

    nothing on that script extra classic...

  3. #63
    Tech Guru zestoi's Avatar
    Join Date
    Mar 2011
    Location
    UK, Ukraine, Romania
    Posts
    2,836

    Default

    Quote Originally Posted by extraclassic View Post
    fbonito try this code
    got confused as to which script i was commenting on - ignore
    11mba / 13mbp / tsp2 / live9 / audio10 / 2x reloop rp7000gold / 2x xdj1000 / 2x d2
    maschine mk2 / x1 mk2 / z1 / f1 / midifighter / lpd8 / 2x launchpad / launchkontrol xl
    Quote Originally Posted by derschaich
    "wohoo, i'm touched, turn on the FX"

  4. #64
    Tech Mentor fbonito's Avatar
    Join Date
    Nov 2010
    Location
    lisbon
    Posts
    220

    Default

    stop... stop everything....

    i think i'm getting somewhere...

    :-D
    :-D

    i thought i had found something in the preliminary documentation of glovepie...

    there is a command that says:
    The "Any" object, for any kind of gamepad

    i've tried with just 3 buttons:

    midi.csharp0 = any.Button1
    midi.d0 = any.Button2
    midi.dsharp0 = any.Button3

    and it's working...

    now i just need to figure out how to make it work for two gamepads...

    any thoughts???

  5. #65
    Tech Mentor fbonito's Avatar
    Join Date
    Nov 2010
    Location
    lisbon
    Posts
    220

    Default

    i found it

    i cracked the code...



    after "any" you put a number and that is the number of the device, like this

    //Gamepad 1 - Buttons
    midi.csharp0 = any1.Button1
    midi.d0 = any1.Button2
    midi.dsharp0 = any1.Button3


    //Gamepad 2 - Buttons
    midi.csharp0 = any2.Button4
    midi.d0 = any2.Button5
    midi.dsharp0 = any2.Button6

    it's working

    :-)

  6. #66
    Tech Guru zestoi's Avatar
    Join Date
    Mar 2011
    Location
    UK, Ukraine, Romania
    Posts
    2,836

    Default

    cool.... i was going to guess at that in the same way the joystick1/joystick2 and mouse1/mouse2 work etc

    awesome news it works now anyway! if a little odd this fixed it...
    11mba / 13mbp / tsp2 / live9 / audio10 / 2x reloop rp7000gold / 2x xdj1000 / 2x d2
    maschine mk2 / x1 mk2 / z1 / f1 / midifighter / lpd8 / 2x launchpad / launchkontrol xl
    Quote Originally Posted by derschaich
    "wohoo, i'm touched, turn on the FX"

  7. #67
    Tech Mentor fbonito's Avatar
    Join Date
    Nov 2010
    Location
    lisbon
    Posts
    220

    Default

    Quote Originally Posted by zestoi View Post
    cool.... i was going to guess at that in the same way the joystick1/joystick2 and mouse1/mouse2 work etc

    awesome news it works now anyway! if a little odd this fixed it...
    it's almost there, i just have a problem

    i' using for the hatswitch the following code:

    midi.f2 = any2.Dpadleft
    midi.fsharp2 = any2.Dpadright
    midi.g2 = any2.Dpadup
    midi.gsharp2 = any2.Dpaddown

    but how can i code the diagonals?

    left+down for example?

  8. #68
    Tech Guru zestoi's Avatar
    Join Date
    Mar 2011
    Location
    UK, Ukraine, Romania
    Posts
    2,836

    Default

    Quote Originally Posted by fbonito View Post
    it's almost there, i just have a problem

    i' using for the hatswitch the following code:

    midi.f2 = any2.Dpadleft
    midi.fsharp2 = any2.Dpadright
    midi.g2 = any2.Dpadup
    midi.gsharp2 = any2.Dpaddown

    but how can i code the diagonals?

    left+down for example?
    don't you just want the 2 notes to be sent out for the diagonals? or you dont want the 2 notes to be sent out but some different note instead?

    not tricky to do anyway... my crappy gamepad does at least have an xy control so i can test that etc - not sure it triggers the any.Dpad* values tho...
    11mba / 13mbp / tsp2 / live9 / audio10 / 2x reloop rp7000gold / 2x xdj1000 / 2x d2
    maschine mk2 / x1 mk2 / z1 / f1 / midifighter / lpd8 / 2x launchpad / launchkontrol xl
    Quote Originally Posted by derschaich
    "wohoo, i'm touched, turn on the FX"

  9. #69
    Tech Mentor fbonito's Avatar
    Join Date
    Nov 2010
    Location
    lisbon
    Posts
    220

    Default

    i what to:

    push up -> A
    push left -> B
    push left+up -> C

  10. #70
    Tech Mentor fbonito's Avatar
    Join Date
    Nov 2010
    Location
    lisbon
    Posts
    220

    Default

    i can you the code "and"

    example

    any1.DpadDown and any1.DpadRight

    but i also get 3 keypress

    dpaddown
    dpadright
    and dpaddown + dpadright

    at the same time

Page 7 of 10 FirstFirst ... 345678910 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •