Step by step guide to create a mapping for a new device
I have a sort of understanding what seems to be required to create lua configuration for a brand new device. In my case: Hercules DJControl Compact. After I have created the midi connection (I am using Helvium) I am able to receive events in the verbose log.
[2022-10-03 12:49:29.031] [info] ALSA: Note On: 0x00, 0x19, 127
[2022-10-03 12:49:29.082] [info] ALSA: Note On: 0x00, 0x19, 0
[2022-10-03 12:49:29.257] [warning] INOTIFY: nothing to check
[2022-10-03 12:49:29.735] [info] ALSA: Note On: 0x00, 0x1a, 127
[2022-10-03 12:49:29.810] [info] ALSA: Note On: 0x00, 0x1a, 0
[2022-10-03 12:49:30.764] [info] ALSA: Control Change: 0x00, 0x30, 2
[2022-10-03 12:49:30.839] [info] ALSA: Control Change: 0x00, 0x30, 1
[2022-10-03 12:49:30.864] [info] ALSA: Control Change: 0x00, 0x30, 1
[2022-10-03 12:49:30.990] [info] ALSA: Control Change: 0x00, 0x30, 1
[2022-10-03 12:49:31.065] [info] ALSA: Control Change: 0x00, 0x30, 1
[2022-10-03 12:49:31.718] [info] ALSA: Control Change: 0x00, 0x30, 126
[2022-10-03 12:49:31.768] [warning] INOTIFY: nothing to check
[2022-10-03 12:49:31.894] [info] ALSA: Control Change: 0x00, 0x30, 127
[2022-10-03 12:49:31.919] [info] ALSA: Control Change: 0x00, 0x30, 127
[2022-10-03 12:49:32.119] [info] ALSA: Control Change: 0x00, 0x30, 127
Now I would like to have some simplistic configuration example how to map a Note and a Control. I understand that midi_recv is probably where the magic happens, but it feels that to connect a completely new device I have to complete submerge myself into lua examples, instead of some "documentation". I'll try to do my best to create a new configuration for this device.