-
Notifications
You must be signed in to change notification settings - Fork 5
/
input.conf
60 lines (49 loc) · 1.87 KB
/
input.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
;;
;; Example configuration for Xbox 360 gamepad
;;
;;
;; Configuration Syntax:
;;
;; ((t i) ((CMD CH) PARAM));
;;
;; t := [ab] = axis or button
;; i := [0-9]+ = number of axis/button
;; CMD := #x[89a-fA-F]0 = MIDI command
;; CH := #x0[0-9a-fA-F] = MIDI channel (#x00 is Channel 1; #x0F is Channel 16)
;; PARAM := #x[0-7][0-9a-fA-F] = optional parameter defaults to #x00 if not supplied
;;
;; Extended Syntax for buttons (since 1.1.0)
;;
;; ((t i) ((CMD CH) PARAM BUTTON_VALUE))
;;
;; BUTTON_VALUE := range [#x00; #x7F]; range for Pitch Bend [0x0000; 0x3FFF] = Value which is injected as joystick read value
;;
;;
(
;; Left Trigger as CC 1 (Modulation) on Channel 3
((a 2)
((#xB0
;; did you know? you can add comments between lines of a configuration entry
#x02) #x01))
;; Left Analog Stick Y Axis as Pitch Bend on Channel 3
((a 1) ((#xE0 #x02)))
;; Right Trigger as CC 1 (Modulation) on Channel 1
((a 5) ((#xB0 #x00) #x01))
;; Right Analog Stick X Axis as Note-Off/On on Channel 1
((a 3)
((#x80 #x00)) ; first send note-off with value of the input before the current input
((#x90 #x00))) ; then send note-on with the value of the current input
;; Right Analog Stick Y Axis as Pitch Bend on Channel 1
((a 4) ((#xE0 #x00)))
;; Right Bumper as CC 122 (Mute all sounding notes, respecting sustain/release) on Channel 1
((b 5)
((#xB0 #x00) #x7B))
;; Midi Real-Time Universal SysEx play/stop cmd on Start button
((b 7)
((#xF0) #x7F #x7F #x06 #x02 #xF7) ;; play
((#xF0) #x7F #x7F #x06 #x01 #xF7)) ;; stop
;; New in Version 1.1.0: user configurable button values
((b 1) ;; bind button 5
((#xB0 #x04) #x40 #x7F) ;; CC 0x40 (Damper/Sustain) on Channel 5 with the value 0x7F (ON)
((#xB0 #x04) #x40 #x00)) ;; CC 0x40 (Damper/Sustain) on Channel 5 with the value 0x00 (OFF)
)