// Playstation Controller To MIDI
midi.channel3.c0 = pressed (Joystick1.button1)
midi.channel3.d0 = pressed (Joystick1.button3)
midi.channel3.f0 = pressed (Joystick1.button2)
midi.channel3.g0 = pressed (Joystick1.button4)
midi.channel3.a0 = pressed (Joystick1.button7)
midi.channel3.b0 = pressed (Joystick1.button8)
midi.channel3.c1 = pressed (Joystick1.button9)
midi.channel3.d1 = pressed (Joystick1.button10)
midi.channel3.f1 = pressed (Joystick1.button11)
midi.channel3.g1 = pressed (Joystick1.button12)
midi.channel3.c2 = pressed(Joystick1.pov1up)
midi.channel3.d2 = pressed(Joystick1.pov1down)
midi.channel3.e2 = pressed(Joystick1.pov1left)
midi.channel3.f2 = pressed(Joystick1.pov1right)
midi.channel3.ByteControl31 = MapRange(Joystick1.x, -1.0, 1.0, 0.0, 1.0)
midi.channel3.ByteControl41 = MapRange(Joystick1.y, -1.0, 1.0, 1.0, 0.0)
midi.channel3.ByteControl51 = MapRange(Joystick1.Rz, -1.0, 1.0, 0.0, 1.0)
midi.channel3.ByteControl61 = MapRange(Joystick1.z, -1.0, 1.0, 1.0, 0.0)