Commit c38ce097 authored by Brandon Invergo's avatar Brandon Invergo

Update all device modules to use new define-alsa-ctl from the

alsa module.
parent 1db0924d
......@@ -22,4 +22,4 @@
(define alsa-name "Audio4DJ")
(define input-name #f)
(define-alsa-ctl led-current-input 1)
(define-alsa-ctl led-current-input 1 'integer)
......@@ -26,8 +26,8 @@
(define alsa-name "Audio8DJ")
(define input-name #f)
(define-alsa-ctl led-current-input 1)
(define-alsa-ctl led-gnd-lift-vinyl 2)
(define-alsa-ctl led-gnd-lift-cd 3)
(define-alsa-ctl led-gnd-lift-phono 4)
(define-alsa-ctl led-software-lock 5)
(define-alsa-ctl led-current-input 1 'integer)
(define-alsa-ctl led-gnd-lift-vinyl 2 'boolean)
(define-alsa-ctl led-gnd-lift-cd 3 'boolean)
(define-alsa-ctl led-gnd-lift-phono 4 'boolean)
(define-alsa-ctl led-software-lock 5 'boolean)
This diff is collapsed.
......@@ -102,6 +102,7 @@
pot-max
knob-max))
(use-modules (librekontrol input)
(librekontrol alsa)
(librekontrol device))
(define alsa-name "TraktorKontrolX")
......@@ -111,14 +112,14 @@
(+ x btn-misc))
;; FX
(define-alsa-ctl led-fx-a-on 1)
(define-alsa-ctl led-fx-a-1 2)
(define-alsa-ctl led-fx-a-2 3)
(define-alsa-ctl led-fx-a-3 4)
(define-alsa-ctl led-fx-b-on 5)
(define-alsa-ctl led-fx-b-1 6)
(define-alsa-ctl led-fx-b-2 7)
(define-alsa-ctl led-fx-b-3 8)
(define-alsa-ctl led-fx-a-on 1 'integer)
(define-alsa-ctl led-fx-a-1 2 'integer)
(define-alsa-ctl led-fx-a-2 3 'integer)
(define-alsa-ctl led-fx-a-3 4 'integer)
(define-alsa-ctl led-fx-b-on 5 'integer)
(define-alsa-ctl led-fx-b-1 6 'integer)
(define-alsa-ctl led-fx-b-2 7 'integer)
(define-alsa-ctl led-fx-b-3 8 'integer)
(define-input-event pot-fx-a-dry/wet ev-abs abs-hat0x)
(define-input-event pot-fx-a-1 ev-abs abs-hat0y)
......@@ -130,36 +131,36 @@
(define-input-event pot-fx-b-3 ev-abs abs-hat3y)
;; Middle area
(define-alsa-ctl led-hotcue 9)
(define-alsa-ctl led-shift-white 10)
(define-alsa-ctl led-shift-green 11)
(define-alsa-ctl led-hotcue 9 'integer)
(define-alsa-ctl led-shift-white 10 'integer)
(define-alsa-ctl led-shift-green 11 'integer)
;; Deck A
(define-alsa-ctl led-deck-a-fx1 12)
(define-alsa-ctl led-deck-a-fx2 13)
(define-alsa-ctl led-deck-a-in 14)
(define-alsa-ctl led-deck-a-out 15)
(define-alsa-ctl led-deck-a-<beat 16)
(define-alsa-ctl led-deck-a-beat> 17)
(define-alsa-ctl led-deck-a-cue 18)
(define-alsa-ctl led-deck-a-cup 19)
(define-alsa-ctl led-deck-a-play 20)
(define-alsa-ctl led-deck-a-sync 21)
(define-alsa-ctl led-deck-a-fx1 12 'integer)
(define-alsa-ctl led-deck-a-fx2 13 'integer)
(define-alsa-ctl led-deck-a-in 14 'integer)
(define-alsa-ctl led-deck-a-out 15 'integer)
(define-alsa-ctl led-deck-a-<beat 16 'integer)
(define-alsa-ctl led-deck-a-beat> 17 'integer)
(define-alsa-ctl led-deck-a-cue 18 'integer)
(define-alsa-ctl led-deck-a-cup 19 'integer)
(define-alsa-ctl led-deck-a-play 20 'integer)
(define-alsa-ctl led-deck-a-sync 21 'integer)
(define-input-event knob-deck-a-1 ev-abs abs-x)
(define-input-event knob-deck-a-2 ev-abs abs-y)
;; Deck B
(define-alsa-ctl led-deck-b-fx1 22)
(define-alsa-ctl led-deck-b-fx2 23)
(define-alsa-ctl led-deck-b-in 24)
(define-alsa-ctl led-deck-b-out 25)
(define-alsa-ctl led-deck-b-<beat 26)
(define-alsa-ctl led-deck-b-beat> 27)
(define-alsa-ctl led-deck-b-cue 28)
(define-alsa-ctl led-deck-b-cup 29)
(define-alsa-ctl led-deck-b-play 30)
(define-alsa-ctl led-deck-b-sync 31)
(define-alsa-ctl led-deck-b-fx1 22 'integer)
(define-alsa-ctl led-deck-b-fx2 23 'integer)
(define-alsa-ctl led-deck-b-in 24 'integer)
(define-alsa-ctl led-deck-b-out 25 'integer)
(define-alsa-ctl led-deck-b-<beat 26 'integer)
(define-alsa-ctl led-deck-b-beat> 27 'integer)
(define-alsa-ctl led-deck-b-cue 28 'integer)
(define-alsa-ctl led-deck-b-cup 29 'integer)
(define-alsa-ctl led-deck-b-play 30 'integer)
(define-alsa-ctl led-deck-b-sync 31 'integer)
(define-input-event knob-deck-b-1 ev-abs abs-z)
(define-input-event knob-deck-b-2 ev-abs abs-misc)
......
......@@ -94,28 +94,29 @@
knob-volume-max
knob-rotary-max))
(use-modules (librekontrol input)
(librekontrol alsa)
(librekontrol device))
(define alsa-name "KoreController")
(define input-name "Kore Controller")
;; Left side
(define-alsa-ctl led-f1 1)
(define-alsa-ctl led-f2 2)
(define-alsa-ctl led-f3 3)
(define-alsa-ctl led-f4 4)
(define-alsa-ctl led-f5 5)
(define-alsa-ctl led-f6 6)
(define-alsa-ctl led-f7 7)
(define-alsa-ctl led-f8 8)
(define-alsa-ctl led-touch1 9)
(define-alsa-ctl led-touch2 10)
(define-alsa-ctl led-touch3 11)
(define-alsa-ctl led-touch4 12)
(define-alsa-ctl led-touch5 13)
(define-alsa-ctl led-touch6 14)
(define-alsa-ctl led-touch7 15)
(define-alsa-ctl led-touch8 16)
(define-alsa-ctl led-f1 1 'integer)
(define-alsa-ctl led-f2 2 'integer)
(define-alsa-ctl led-f3 3 'integer)
(define-alsa-ctl led-f4 4 'integer)
(define-alsa-ctl led-f5 5 'integer)
(define-alsa-ctl led-f6 6 'integer)
(define-alsa-ctl led-f7 7 'integer)
(define-alsa-ctl led-f8 8 'integer)
(define-alsa-ctl led-touch1 9 'integer)
(define-alsa-ctl led-touch2 10 'integer)
(define-alsa-ctl led-touch3 11 'integer)
(define-alsa-ctl led-touch4 12 'integer)
(define-alsa-ctl led-touch5 13 'integer)
(define-alsa-ctl led-touch6 14 'integer)
(define-alsa-ctl led-touch7 15 'integer)
(define-alsa-ctl led-touch8 16 'integer)
(define-input-event button-1 ev-key btn-4)
(define-input-event button-2 ev-key btn-3)
......@@ -143,15 +144,15 @@
(define-input-event knob-8 ev-abs abs-hat3y)
;; Middle
(define-alsa-ctl led-left 17)
(define-alsa-ctl led-right 18)
(define-alsa-ctl led-up 19)
(define-alsa-ctl led-down 20)
(define-alsa-ctl led-stop 21)
(define-alsa-ctl led-play 22)
(define-alsa-ctl led-record 23)
(define-alsa-ctl led-listen 24)
(define-alsa-ctl led-lcd 25)
(define-alsa-ctl led-left 17 'integer)
(define-alsa-ctl led-right 18 'integer)
(define-alsa-ctl led-up 19 'integer)
(define-alsa-ctl led-down 20 'integer)
(define-alsa-ctl led-stop 21 'integer)
(define-alsa-ctl led-play 22 'integer)
(define-alsa-ctl led-record 23 'integer)
(define-alsa-ctl led-listen 24 'integer)
(define-alsa-ctl led-lcd 25 'integer)
(define-input-event button-right ev-key key-right)
(define-input-event button-down ev-key key-down)
......@@ -163,12 +164,12 @@
(define-input-event button-stop ev-key key-stop)
;; Right side
(define-alsa-ctl led-menu 26)
(define-alsa-ctl led-sound 27)
(define-alsa-ctl led-esc 28)
(define-alsa-ctl led-view 29)
(define-alsa-ctl led-enter 30)
(define-alsa-ctl led-control 31)
(define-alsa-ctl led-menu 26 'integer)
(define-alsa-ctl led-sound 27 'integer)
(define-alsa-ctl led-esc 28 'integer)
(define-alsa-ctl led-view 29 'integer)
(define-alsa-ctl led-enter 30 'integer)
(define-alsa-ctl led-control 31 'integer)
(define-input-event button-menu ev-key key-fn-f1)
(define-input-event button-control ev-key key-fn-f2)
......
......@@ -94,28 +94,29 @@
knob-volume-max
knob-rotary-max))
(use-modules (librekontrol input)
(librekontrol alsa)
(librekontrol device))
(define alsa-name "KoreController2")
(define input-name "Kore Controller 2")
;; Left side
(define-alsa-ctl led-f1 1)
(define-alsa-ctl led-f2 2)
(define-alsa-ctl led-f3 3)
(define-alsa-ctl led-f4 4)
(define-alsa-ctl led-f5 5)
(define-alsa-ctl led-f6 6)
(define-alsa-ctl led-f7 7)
(define-alsa-ctl led-f8 8)
(define-alsa-ctl led-touch1 9)
(define-alsa-ctl led-touch2 10)
(define-alsa-ctl led-touch3 11)
(define-alsa-ctl led-touch4 12)
(define-alsa-ctl led-touch5 13)
(define-alsa-ctl led-touch6 14)
(define-alsa-ctl led-touch7 15)
(define-alsa-ctl led-touch8 16)
(define-alsa-ctl led-f1 1 'integer)
(define-alsa-ctl led-f2 2 'integer)
(define-alsa-ctl led-f3 3 'integer)
(define-alsa-ctl led-f4 4 'integer)
(define-alsa-ctl led-f5 5 'integer)
(define-alsa-ctl led-f6 6 'integer)
(define-alsa-ctl led-f7 7 'integer)
(define-alsa-ctl led-f8 8 'integer)
(define-alsa-ctl led-touch1 9 'integer)
(define-alsa-ctl led-touch2 10 'integer)
(define-alsa-ctl led-touch3 11 'integer)
(define-alsa-ctl led-touch4 12 'integer)
(define-alsa-ctl led-touch5 13 'integer)
(define-alsa-ctl led-touch6 14 'integer)
(define-alsa-ctl led-touch7 15 'integer)
(define-alsa-ctl led-touch8 16 'integer)
(define-input-event button-1 ev-key btn-4)
(define-input-event button-2 ev-key btn-3)
......@@ -143,15 +144,15 @@
(define-input-event knob-8 ev-abs abs-hat3y)
;; Middle
(define-alsa-ctl led-left 17)
(define-alsa-ctl led-right 18)
(define-alsa-ctl led-up 19)
(define-alsa-ctl led-down 20)
(define-alsa-ctl led-stop 21)
(define-alsa-ctl led-play 22)
(define-alsa-ctl led-record 23)
(define-alsa-ctl led-listen 24)
(define-alsa-ctl led-lcd 25)
(define-alsa-ctl led-left 17 'integer)
(define-alsa-ctl led-right 18 'integer)
(define-alsa-ctl led-up 19 'integer)
(define-alsa-ctl led-down 20 'integer)
(define-alsa-ctl led-stop 21 'integer)
(define-alsa-ctl led-play 22 'integer)
(define-alsa-ctl led-record 23 'integer)
(define-alsa-ctl led-listen 24 'integer)
(define-alsa-ctl led-lcd 25 'integer)
(define-input-event button-right ev-key key-right)
(define-input-event button-down ev-key key-down)
......@@ -163,12 +164,12 @@
(define-input-event button-stop ev-key key-stop)
;; Right side
(define-alsa-ctl led-menu 26)
(define-alsa-ctl led-sound 27)
(define-alsa-ctl led-esc 28)
(define-alsa-ctl led-view 29)
(define-alsa-ctl led-enter 30)
(define-alsa-ctl led-control 31)
(define-alsa-ctl led-menu 26 'integer)
(define-alsa-ctl led-sound 27 'integer)
(define-alsa-ctl led-esc 28 'integer)
(define-alsa-ctl led-view 29 'integer)
(define-alsa-ctl led-enter 30 'integer)
(define-alsa-ctl led-control 31 'integer)
(define-input-event button-menu ev-key key-fn-f1)
(define-input-event button-control ev-key key-fn-f2)
......
......@@ -217,6 +217,7 @@
pad-max
knob-max))
(use-modules (librekontrol input)
(librekontrol alsa)
(librekontrol device))
(define alsa-name "MaschineControl")
......@@ -229,22 +230,22 @@
(+ x abs-pressure))
;; Pads
(define-alsa-ctl led-pad-1 1)
(define-alsa-ctl led-pad-2 2)
(define-alsa-ctl led-pad-3 3)
(define-alsa-ctl led-pad-4 4)
(define-alsa-ctl led-pad-5 5)
(define-alsa-ctl led-pad-6 6)
(define-alsa-ctl led-pad-7 7)
(define-alsa-ctl led-pad-8 8)
(define-alsa-ctl led-pad-9 9)
(define-alsa-ctl led-pad-10 10)
(define-alsa-ctl led-pad-11 11)
(define-alsa-ctl led-pad-12 12)
(define-alsa-ctl led-pad-13 13)
(define-alsa-ctl led-pad-14 14)
(define-alsa-ctl led-pad-15 15)
(define-alsa-ctl led-pad-16 16)
(define-alsa-ctl led-pad-1 1 'integer)
(define-alsa-ctl led-pad-2 2 'integer)
(define-alsa-ctl led-pad-3 3 'integer)
(define-alsa-ctl led-pad-4 4 'integer)
(define-alsa-ctl led-pad-5 5 'integer)
(define-alsa-ctl led-pad-6 6 'integer)
(define-alsa-ctl led-pad-7 7 'integer)
(define-alsa-ctl led-pad-8 8 'integer)
(define-alsa-ctl led-pad-9 9 'integer)
(define-alsa-ctl led-pad-10 10 'integer)
(define-alsa-ctl led-pad-11 11 'integer)
(define-alsa-ctl led-pad-12 12 'integer)
(define-alsa-ctl led-pad-13 13 'integer)
(define-alsa-ctl led-pad-14 14 'integer)
(define-alsa-ctl led-pad-15 15 'integer)
(define-alsa-ctl led-pad-16 16 'integer)
(define-input-event button-pad-1 ev-abs (pad 12))
(define-input-event button-pad-2 ev-abs (pad 13))
......@@ -281,14 +282,14 @@
(define-control pad-16 button-pad-16 led-pad-16)
;; Middle
(define-alsa-ctl led-mute 17)
(define-alsa-ctl led-solo 18)
(define-alsa-ctl led-select 19)
(define-alsa-ctl led-duplicate 20)
(define-alsa-ctl led-navigate 21)
(define-alsa-ctl led-pad-mode 22)
(define-alsa-ctl led-pattern 23)
(define-alsa-ctl led-scene 24)
(define-alsa-ctl led-mute 17 'integer)
(define-alsa-ctl led-solo 18 'integer)
(define-alsa-ctl led-select 19 'integer)
(define-alsa-ctl led-duplicate 20 'integer)
(define-alsa-ctl led-navigate 21 'integer)
(define-alsa-ctl led-pad-mode 22 'integer)
(define-alsa-ctl led-pattern 23 'integer)
(define-alsa-ctl led-scene 24 'integer)
(define-input-event button-mute ev-key (btn 40))
(define-input-event button-solo ev-key (btn 39))
......@@ -302,21 +303,21 @@
(define-control mute button-mute led-mute)
(define-control solo button-solo led-solo)
(define-control select button-select led-select)
(define-control duplicate button-duplicte led-duplicate)
(define-control duplicate button-duplicate led-duplicate)
(define-control navigate button-navigate led-navigate)
(define-control pad-mode button-pad-mode led-pad-mode)
(define-control pattern button-pattern led-pattern)
(define-control scene button-scene led-scene)
;; Transport
(define-alsa-ctl led-shift 25)
(define-alsa-ctl led-erase 26)
(define-alsa-ctl led-grid 27)
(define-alsa-ctl led-right-bottom 28)
(define-alsa-ctl led-rec 29)
(define-alsa-ctl led-play 30)
(define-alsa-ctl led-left-bottom 31)
(define-alsa-ctl led-restart 32)
(define-alsa-ctl led-shift 25 'integer)
(define-alsa-ctl led-erase 26 'integer)
(define-alsa-ctl led-grid 27 'integer)
(define-alsa-ctl led-right-bottom 28 'integer)
(define-alsa-ctl led-rec 29 'integer)
(define-alsa-ctl led-play 30 'integer)
(define-alsa-ctl led-left-bottom 31 'integer)
(define-alsa-ctl led-restart 32 'integer)
(define-input-event button-shift ev-key (btn 32))
(define-input-event button-erase ev-key (btn 31))
......@@ -337,14 +338,14 @@
(define-control restart button-restart led-restart)
; Groups
(define-alsa-ctl led-group-a 33)
(define-alsa-ctl led-group-b 34)
(define-alsa-ctl led-group-c 35)
(define-alsa-ctl led-group-d 36)
(define-alsa-ctl led-group-e 37)
(define-alsa-ctl led-group-f 38)
(define-alsa-ctl led-group-g 39)
(define-alsa-ctl led-group-h 40)
(define-alsa-ctl led-group-a 33 'integer)
(define-alsa-ctl led-group-b 34 'integer)
(define-alsa-ctl led-group-c 35 'integer)
(define-alsa-ctl led-group-d 36 'integer)
(define-alsa-ctl led-group-e 37 'integer)
(define-alsa-ctl led-group-f 38 'integer)
(define-alsa-ctl led-group-g 39 'integer)
(define-alsa-ctl led-group-h 40 'integer)
(define-input-event button-group-a ev-key (btn 17))
(define-input-event button-group-b ev-key (btn 18))
......@@ -365,14 +366,14 @@
(define-control group-h button-group-h led-group-h)
; Top-left
(define-alsa-ctl led-auto-write 41)
(define-alsa-ctl led-snap 42)
(define-alsa-ctl led-right-top 43)
(define-alsa-ctl led-left-top 44)
(define-alsa-ctl led-sampling 45)
(define-alsa-ctl led-browse 46)
(define-alsa-ctl led-step 47)
(define-alsa-ctl led-control 48)
(define-alsa-ctl led-auto-write 41 'integer)
(define-alsa-ctl led-snap 42 'integer)
(define-alsa-ctl led-right-top 43 'integer)
(define-alsa-ctl led-left-top 44 'integer)
(define-alsa-ctl led-sampling 45 'integer)
(define-alsa-ctl led-browse 46 'integer)
(define-alsa-ctl led-step 47 'integer)
(define-alsa-ctl led-control 48 'integer)
(define-input-event button-auto-write ev-key (btn 7))
(define-input-event button-snap ev-key (btn 6))
......@@ -393,14 +394,14 @@
(define-control control button-control led-control)
; Top
(define-alsa-ctl led-top-1 49)
(define-alsa-ctl led-top-2 50)
(define-alsa-ctl led-top-3 51)
(define-alsa-ctl led-top-4 52)
(define-alsa-ctl led-top-5 53)
(define-alsa-ctl led-top-6 54)
(define-alsa-ctl led-top-7 55)
(define-alsa-ctl led-top-8 56)
(define-alsa-ctl led-top-1 49 'integer)
(define-alsa-ctl led-top-2 50 'integer)
(define-alsa-ctl led-top-3 51 'integer)
(define-alsa-ctl led-top-4 52 'integer)
(define-alsa-ctl led-top-5 53 'integer)
(define-alsa-ctl led-top-6 54 'integer)
(define-alsa-ctl led-top-7 55 'integer)
(define-alsa-ctl led-top-8 56 'integer)
(define-input-event button-top-1 ev-key (btn 8))
(define-input-event button-top-2 ev-key (btn 9))
......@@ -429,10 +430,10 @@
(define-control volume knob-volume #f)
(define-control tempo knob-tempo #f)
(define-control swing knob-swing #f)
(define-control note-repeat knob-note-repeat #f)
(define-control note-repeat button-note-repeat #f)
; Misc
(define-alsa-ctl backlight-display 57)
(define-alsa-ctl backlight-display 57 'integer)
(define-input-event knob-1-in ev-abs abs-hat0x)
(define-input-event knob-2-in ev-abs abs-hat0y)
......
......@@ -61,19 +61,20 @@
gain-headphones
knob-max))
(use-modules (librekontrol input)
(librekontrol alsa)
(librekontrol device))
(define alsa-name "RigKontrol2")
(define input-name "RigKontrol2")
;; Main
(define-alsa-ctl led-1 1)
(define-alsa-ctl led-2 2)
(define-alsa-ctl led-3 3)
(define-alsa-ctl led-4 4)
(define-alsa-ctl led-5 5)
(define-alsa-ctl led-6 6)
(define-alsa-ctl led-pedal 7)
(define-alsa-ctl led-1 1 'boolean)
(define-alsa-ctl led-2 2 'boolean)
(define-alsa-ctl led-3 3 'boolean)
(define-alsa-ctl led-4 4 'boolean)
(define-alsa-ctl led-5 5 'boolean)
(define-alsa-ctl led-6 6 'boolean)
(define-alsa-ctl led-pedal 7 'boolean)
(define-input-event button-1-in ev-key key-1)
(define-input-event button-2-in ev-key key-2)
......@@ -92,24 +93,24 @@
(define-control pedal button-pedal led-pedal)
;; 7-segment LED
(define-alsa-ctl led-7seg-1b 8)
(define-alsa-ctl led-7seg-1c 9)
(define-alsa-ctl led-7seg-1b 8 'boolean)
(define-alsa-ctl led-7seg-1c 9 'boolean)
(define-alsa-ctl led-7seg-2a 10)
(define-alsa-ctl led-7seg-2b 11)
(define-alsa-ctl led-7seg-2c 12)
(define-alsa-ctl led-7seg-2d 13)
(define-alsa-ctl led-7seg-2e 14)
(define-alsa-ctl led-7seg-2f 15)
(define-alsa-ctl led-7seg-2g 16)
(define-alsa-ctl led-7seg-2a 10 'boolean)
(define-alsa-ctl led-7seg-2b 11 'boolean)
(define-alsa-ctl led-7seg-2c 12 'boolean)
(define-alsa-ctl led-7seg-2d 13 'boolean)
(define-alsa-ctl led-7seg-2e 14 'boolean)
(define-alsa-ctl led-7seg-2f 15 'boolean)
(define-alsa-ctl led-7seg-2g 16 'boolean)
(define-alsa-ctl led-7seg-3a 17)
(define-alsa-ctl led-7seg-3b 18)
(define-alsa-ctl led-7seg-3c 19)
(define-alsa-ctl led-7seg-3d 20)
(define-alsa-ctl led-7seg-3e 21)
(define-alsa-ctl led-7seg-3f 22)
(define-alsa-ctl led-7seg-3g 23)
(define-alsa-ctl led-7seg-3a 17 'boolean)
(define-alsa-ctl led-7seg-3b 18 'boolean)
(define-alsa-ctl led-7seg-3c 19 'boolean)
(define-alsa-ctl led-7seg-3d 20 'boolean)
(define-alsa-ctl led-7seg-3e 21 'boolean)
(define-alsa-ctl led-7seg-3f 22 'boolean)
(define-alsa-ctl led-7seg-3g 23 'boolean)
;; Knobs
(define-input-event knob-gain-1 ev-abs abs-x)
......
......@@ -83,21 +83,22 @@
gain-headphones
knob-max))
(use-modules (librekontrol input)
(librekontrol alsa)
(librekontrol device))
(define alsa-name "RigKontrol3")
(define input-name "RigKontrol3")
;; Main
(define-alsa-ctl led-1 1)
(define-alsa-ctl led-2 2)
(define-alsa-ctl led-3 3)
(define-alsa-ctl led-4 4)
(define-alsa-ctl led-5 5)
(define-alsa-ctl led-6 6)
(define-alsa-ctl led-7 7)
(define-alsa-ctl led-8 8)
(define-alsa-ctl led-pedal 9)
(define-alsa-ctl led-1 1 'boolean)
(define-alsa-ctl led-2 2 'boolean)
(define-alsa-ctl led-3 3 'boolean)
(define-alsa-ctl led-4 4 'boolean)
(define-alsa-ctl led-5 5 'boolean)
(define-alsa-ctl led-6 6 'boolean)
(define-alsa-ctl led-7 7 'boolean)
(define-alsa-ctl led-8 8 'boolean)
(define-alsa-ctl led-pedal 9 'boolean)
(define-input-event button-1-in ev-key key-1)
(define-input-event button-2-in ev-key key-2)
......@@ -120,41 +121,41 @@
(define-control pedal button-pedal led-pedal)
;; 7-segment LED
(define-alsa-ctl led-7seg-1a 10)
(define-alsa-ctl led-7seg-1b 11)
(define-alsa-ctl led-7seg-1c 12)
(define-alsa-ctl led-7seg-1d 13)
(define-alsa-ctl led-7seg-1e 14)
(define-alsa-ctl led-7seg-1f 15)
(define-alsa-ctl led-7seg-1g 16)
(define-alsa-ctl led-7seg-1p 17)
(define-alsa-ctl led-7seg-1a 10 'boolean)
(define-alsa-ctl led-7seg-1b 11 'boolean)
(define-alsa-ctl led-7seg-1c 12 'boolean)
(define-alsa-ctl led-7seg-1d 13 'boolean)
(define-alsa-ctl led-7seg-1e 14 'boolean)
(define-alsa-ctl led-7seg-1f 15 'boolean)
(define-alsa-ctl led-7seg-1g 16 'boolean)
(define-alsa-ctl led-7seg-1p 17 'boolean)
(define-alsa-ctl led-7seg-2a 18)
(define-alsa-ctl led-7seg-2b 19)
(define-alsa-ctl led-7seg-2c 20)
(define-alsa-ctl led-7seg-2d 21)
(define-alsa-ctl led-7seg-2e 22)
(define-alsa-ctl led-7seg-2f 23)
(define-alsa-ctl led-7seg-2g 24)
(define-alsa-ctl led-7seg-2p 25)
(define-alsa-ctl led-7seg-2a 18 'boolean)
(define-alsa-ctl led-7seg-2b 19 'boolean)
(define-alsa-ctl led-7seg-2c 20 'boolean)
(define-alsa-ctl led-7seg-2d 21 'boolean)
(define-alsa-ctl led-7seg-2e 22 'boolean)
(define-alsa-ctl led-7seg-2f 23 'boolean)
(define-alsa-ctl led-7seg-2g 24 'boolean)
(define-alsa-ctl led-7seg-2p 25 'boolean)
(define-alsa-ctl led-7seg-3a 26)
(define-alsa-ctl led-7seg-3b 27)
(define-alsa-ctl led-7seg-3c 28)
(define-alsa-ctl led-7seg-3d 29)
(define-alsa-ctl led-7seg-3e 30)
(define-alsa-ctl led-7seg-3f 31)
(define-alsa-ctl led-7seg-3g 32)
(define-alsa-ctl led-7seg-3p 33)
(define-alsa-ctl led-7seg-3a 26 'boolean)
(define-alsa-ctl led-7seg-3b 27 'boolean)
(define-alsa-ctl led-7seg-3c 28 'boolean)
(define-alsa-ctl led-7seg-3d 29 'boolean)
(define-alsa-ctl led-7seg-3e 30 'boolean)
(define-alsa-ctl led-7seg-3f 31 'boolean)
(define-alsa-ctl led-7seg-3g 32 'boolean)
(define-alsa-ctl led-7seg-3p 33 'boolean)
(define-alsa-ctl led-7seg-4a 34)
(define-alsa-ctl led-7seg-4b 35)
(define-alsa-ctl led-7seg-4c 36)
(define-alsa-ctl led-7seg-4d 37)
(define-alsa-ctl led-7seg-4e 38)
(define-alsa-ctl led-7seg-4f 39)
(define-alsa-ctl led-7seg-4g 40)
(define-alsa-ctl led-7seg-4p 41)
(define-alsa-ctl led-7seg-4a 34 'boolean)
(define-alsa-ctl led-7seg-4b 35 'boolean)
(define-alsa-ctl led-7seg-4c 36 'boolean)
(define-alsa-ctl led-7seg-4d 37 'boolean)
(define-alsa-ctl led-7seg-4e 38 'boolean)
(define-alsa-ctl led-7seg-4f 39 'boolean)
(define-alsa-ctl led-7seg-4g 40 'boolean)
(define-alsa-ctl led-7seg-4p 41 'boolean)
;; Knobs
(define-input-event knob-gain-1 ev-abs abs-x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment