checked the result with midi ox.
all as expected.
but when i open my song i already assigned all controls on template 2 - nothing ist working anymore.
MIDI OX says right channel. LUA definition alright. but still reason pretends now the old controls are on channel 3?
Code: Select all
function remote_init()
local items = {
{ name = "Keyboard", input = "keyboard" },
{ name = "DeviceScope", output = "text" },
{ name = "Knob 01", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 01_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 01_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 01_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 02", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 02_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 02_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 02_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 03", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 03_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 03_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 03_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 04", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 04_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 04_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 04_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 05", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 05_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 05_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 05_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 06", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 06_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 06_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 06_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 07", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 07_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 07_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 07_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 08", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 08_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 08_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 08_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 09", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 09_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 09_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 09_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 10", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 10_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 10_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 10_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 11", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 11_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 11_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 11_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 12", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 12_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 12_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 12_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 13", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 13_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 13_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 13_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 14", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 14_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 14_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 14_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 15", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 15_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 15_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 15_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 16", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 16_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 16_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 16_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 17", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 17_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 17_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 17_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 18", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 18_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 18_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 18_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 19", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 19_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 19_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 19_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 20", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 20_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 20_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 20_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 21", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 21_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 21_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 21_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 22", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 22_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 22_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 22_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 23", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 23_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 23_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 23_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 24", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 24_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 24_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Knob 24_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 1", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 1_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 1_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 1_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 2_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 2_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 2_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 3_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 3_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 3_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 4_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 4_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 4_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 5", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 5_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 5_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 5_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 6", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 6_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 6_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 6_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 7", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 7_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 7_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 7_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 8", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 8_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 8_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Fader 8_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 01", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 01_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 01_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 01_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 02", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 02_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 02_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 02_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 03", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 03_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 03_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 03_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 04", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 04_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 04_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 04_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 05", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 05_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 05_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 05_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 06", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 06_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 06_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 06_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 07", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 07_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 07_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 07_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 08", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 08_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 08_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 08_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 09", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 09_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 09_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 09_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 10", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 10_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 10_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 10_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 11", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 11_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 11_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 11_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 12", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 12_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 12_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 12_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 13", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 13_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 13_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 13_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 14", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 14_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 14_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 14_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 15", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 15_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 15_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 15_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 16", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 16_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 16_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 16_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 17", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 17_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 17_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 17_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 18", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 18_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 18_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 18_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 19", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 19_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 19_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 19_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 20", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 20_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 20_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 20_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 21", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 21_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 21_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 21_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 22", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 22_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 22_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 22_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 23", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 23_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 23_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 23_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 24", input = "button", output = "value", min = 0, max = 127 },
{ name = "Button 24_2", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 24_3", input = "value", output = "value", min = 0, max = 127 },
{ name = "Button 24_4", input = "value", output = "value", min = 0, max = 127 },
{ name = "Base Channel", input = "value", output = "value", min = 0, max = 127 },
{ name = "Play Button", input = "button", output = "value", min = 0, max = 127 },
{ name = "Stop Button", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 1", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 2", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 3", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 4", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 5", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 6", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 7", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 8", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 9", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 10", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 11", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 12", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 13", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 14", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 15", input = "button", output = "value", min = 0, max = 127 },
{ name = "Page 16", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 1", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 2", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 3", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 4", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 5", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 6", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 7", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 8", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 9", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 10", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 11", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 12", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 13", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 14", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 15", input = "button", output = "value", min = 0, max = 127 },
{ name = "FXS 16", input = "button", output = "value", min = 0, max = 127 },
{ name = "Previous Device", input = "button", output = "value", min = 0, max = 127 },
{ name = "Next Device", input = "button", output = "value", min = 0, max = 127 },
{ name = "Device Mode", input = "button", output = "value", min = 0, max = 127 },
{ name = "Previous Patch", input = "button", output = "value", min = 0, max = 127 },
{ name = "Next Patch", input = "button", output = "value", min = 0, max = 127 },
{ name = "Patch Mode", input = "button", output = "value", min = 0, max = 127 }
}
remote.define_items(items)
local inputs = {
{ pattern = "b0 0D xx", name = "Knob 01" },
{ pattern = "b1 0D xx", name = "Knob 01_2" },
{ pattern = "b2 0D xx", name = "Knob 01_3" },
{ pattern = "b3 0D xx", name = "Knob 01_4" },
{ pattern = "b0 0E xx", name = "Knob 02" },
{ pattern = "b1 0E xx", name = "Knob 02_2" },
{ pattern = "b2 0E xx", name = "Knob 02_3" },
{ pattern = "b3 0E xx", name = "Knob 02_4" },
{ pattern = "b0 0F xx", name = "Knob 03" },
{ pattern = "b1 0F xx", name = "Knob 03_2" },
{ pattern = "b2 0F xx", name = "Knob 03_3" },
{ pattern = "b3 0F xx", name = "Knob 03_4" },
{ pattern = "b0 10 xx", name = "Knob 04" },
{ pattern = "b1 10 xx", name = "Knob 04_2" },
{ pattern = "b2 10 xx", name = "Knob 04_3" },
{ pattern = "b3 10 xx", name = "Knob 04_4" },
{ pattern = "b0 11 xx", name = "Knob 05" },
{ pattern = "b1 11 xx", name = "Knob 05_2" },
{ pattern = "b2 11 xx", name = "Knob 05_3" },
{ pattern = "b3 11 xx", name = "Knob 05_4" },
{ pattern = "b0 12 xx", name = "Knob 06" },
{ pattern = "b1 12 xx", name = "Knob 06_2" },
{ pattern = "b2 12 xx", name = "Knob 06_3" },
{ pattern = "b3 12 xx", name = "Knob 06_4" },
{ pattern = "b0 13 xx", name = "Knob 07" },
{ pattern = "b1 13 xx", name = "Knob 07_2" },
{ pattern = "b2 13 xx", name = "Knob 07_3" },
{ pattern = "b3 13 xx", name = "Knob 07_4" },
{ pattern = "b0 14 xx", name = "Knob 08" },
{ pattern = "b1 14 xx", name = "Knob 08_2" },
{ pattern = "b2 14 xx", name = "Knob 08_3" },
{ pattern = "b3 14 xx", name = "Knob 08_4" },
{ pattern = "b0 15 xx", name = "Knob 09" },
{ pattern = "b1 15 xx", name = "Knob 09_2" },
{ pattern = "b2 15 xx", name = "Knob 09_3" },
{ pattern = "b3 15 xx", name = "Knob 09_4" },
{ pattern = "b0 16 xx", name = "Knob 10" },
{ pattern = "b1 16 xx", name = "Knob 10_2" },
{ pattern = "b2 16 xx", name = "Knob 10_3" },
{ pattern = "b3 16 xx", name = "Knob 10_4" },
{ pattern = "b0 17 xx", name = "Knob 11" },
{ pattern = "b1 17 xx", name = "Knob 11_2" },
{ pattern = "b2 17 xx", name = "Knob 11_3" },
{ pattern = "b3 17 xx", name = "Knob 11_4" },
{ pattern = "b0 18 xx", name = "Knob 12" },
{ pattern = "b1 18 xx", name = "Knob 12_2" },
{ pattern = "b2 18 xx", name = "Knob 12_3" },
{ pattern = "b3 18 xx", name = "Knob 12_4" },
{ pattern = "b0 19 xx", name = "Knob 13" },
{ pattern = "b1 19 xx", name = "Knob 13_2" },
{ pattern = "b2 19 xx", name = "Knob 13_3" },
{ pattern = "b3 19 xx", name = "Knob 13_4" },
{ pattern = "b0 1A xx", name = "Knob 14" },
{ pattern = "b1 1A xx", name = "Knob 14_2" },
{ pattern = "b2 1A xx", name = "Knob 14_3" },
{ pattern = "b3 1A xx", name = "Knob 14_4" },
{ pattern = "b0 1B xx", name = "Knob 15" },
{ pattern = "b1 1B xx", name = "Knob 15_2" },
{ pattern = "b2 1B xx", name = "Knob 15_3" },
{ pattern = "b3 1B xx", name = "Knob 15_4" },
{ pattern = "b0 1C xx", name = "Knob 16" },
{ pattern = "b1 1C xx", name = "Knob 16_2" },
{ pattern = "b2 1C xx", name = "Knob 16_3" },
{ pattern = "b3 1C xx", name = "Knob 16_4" },
{ pattern = "b0 1D xx", name = "Knob 17" },
{ pattern = "b1 1D xx", name = "Knob 17_2" },
{ pattern = "b2 1D xx", name = "Knob 17_3" },
{ pattern = "b3 1D xx", name = "Knob 17_4" },
{ pattern = "b0 1E xx", name = "Knob 18" },
{ pattern = "b1 1E xx", name = "Knob 18_2" },
{ pattern = "b2 1E xx", name = "Knob 18_3" },
{ pattern = "b3 1E xx", name = "Knob 18_4" },
{ pattern = "b0 1F xx", name = "Knob 19" },
{ pattern = "b1 1F xx", name = "Knob 19_2" },
{ pattern = "b2 1F xx", name = "Knob 19_3" },
{ pattern = "b3 1F xx", name = "Knob 19_4" },
{ pattern = "b0 20 xx", name = "Knob 20" },
{ pattern = "b1 20 xx", name = "Knob 20_2" },
{ pattern = "b2 20 xx", name = "Knob 20_3" },
{ pattern = "b3 20 xx", name = "Knob 20_4" },
{ pattern = "b0 21 xx", name = "Knob 21" },
{ pattern = "b1 21 xx", name = "Knob 21_2" },
{ pattern = "b2 21 xx", name = "Knob 21_3" },
{ pattern = "b3 21 xx", name = "Knob 21_4" },
{ pattern = "b0 22 xx", name = "Knob 22" },
{ pattern = "b1 22 xx", name = "Knob 22_2" },
{ pattern = "b2 22 xx", name = "Knob 22_3" },
{ pattern = "b3 22 xx", name = "Knob 22_4" },
{ pattern = "b0 23 xx", name = "Knob 23" },
{ pattern = "b1 23 xx", name = "Knob 23_2" },
{ pattern = "b2 23 xx", name = "Knob 23_3" },
{ pattern = "b3 23 xx", name = "Knob 23_4" },
{ pattern = "b0 24 xx", name = "Knob 24" },
{ pattern = "b1 24 xx", name = "Knob 24_2" },
{ pattern = "b2 24 xx", name = "Knob 24_3" },
{ pattern = "b3 24 xx", name = "Knob 24_4" },
{ pattern = "b0 25 xx", name = "Fader 1" },
{ pattern = "b1 25 xx", name = "Fader 1_2" },
{ pattern = "b2 25 xx", name = "Fader 1_3" },
{ pattern = "b3 25 xx", name = "Fader 1_4" },
{ pattern = "b0 26 xx", name = "Fader 2" },
{ pattern = "b1 26 xx", name = "Fader 2_2" },
{ pattern = "b2 26 xx", name = "Fader 2_3" },
{ pattern = "b3 26 xx", name = "Fader 2_4" },
{ pattern = "b0 27 xx", name = "Fader 3" },
{ pattern = "b1 27 xx", name = "Fader 3_2" },
{ pattern = "b2 27 xx", name = "Fader 3_3" },
{ pattern = "b3 27 xx", name = "Fader 3_4" },
{ pattern = "b0 28 xx", name = "Fader 4" },
{ pattern = "b1 28 xx", name = "Fader 4_2" },
{ pattern = "b2 28 xx", name = "Fader 4_3" },
{ pattern = "b3 28 xx", name = "Fader 4_4" },
{ pattern = "b0 29 xx", name = "Fader 5" },
{ pattern = "b1 29 xx", name = "Fader 5_2" },
{ pattern = "b2 29 xx", name = "Fader 5_3" },
{ pattern = "b3 29 xx", name = "Fader 5_4" },
{ pattern = "b0 2A xx", name = "Fader 6" },
{ pattern = "b1 2A xx", name = "Fader 6_2" },
{ pattern = "b2 2A xx", name = "Fader 6_3" },
{ pattern = "b3 2A xx", name = "Fader 6_4" },
{ pattern = "b0 2B xx", name = "Fader 7" },
{ pattern = "b1 2B xx", name = "Fader 7_2" },
{ pattern = "b2 2B xx", name = "Fader 7_3" },
{ pattern = "b3 2B xx", name = "Fader 7_4" },
{ pattern = "b0 2C xx", name = "Fader 8" },
{ pattern = "b1 2C xx", name = "Fader 8_2" },
{ pattern = "b2 2C xx", name = "Fader 8_3" },
{ pattern = "b3 2C xx", name = "Fader 8_4" },
{ pattern = "b0 2D ?<???x>", name = "Button 01" },
{ pattern = "b1 2D ?<???x>", name = "Button 01_2" },
{ pattern = "b2 2D ?<???x>", name = "Button 01_3" },
{ pattern = "b3 2D ?<???x>", name = "Button 01_4" },
{ pattern = "b0 2E ?<???x>", name = "Button 02" },
{ pattern = "b1 2E ?<???x>", name = "Button 02_2" },
{ pattern = "b2 2E ?<???x>", name = "Button 02_3" },
{ pattern = "b3 2E ?<???x>", name = "Button 02_4" },
{ pattern = "b0 2F ?<???x>", name = "Button 03" },
{ pattern = "b1 2F ?<???x>", name = "Button 03_2" },
{ pattern = "b2 2F ?<???x>", name = "Button 03_3" },
{ pattern = "b3 2F ?<???x>", name = "Button 03_4" },
{ pattern = "b0 30 ?<???x>", name = "Button 04" },
{ pattern = "b1 30 ?<???x>", name = "Button 04_2" },
{ pattern = "b2 30 ?<???x>", name = "Button 04_3" },
{ pattern = "b3 30 ?<???x>", name = "Button 04_4" },
{ pattern = "b0 31 ?<???x>", name = "Button 05" },
{ pattern = "b1 31 ?<???x>", name = "Button 05_2" },
{ pattern = "b2 31 ?<???x>", name = "Button 05_3" },
{ pattern = "b3 31 ?<???x>", name = "Button 05_4" },
{ pattern = "b0 32 ?<???x>", name = "Button 06" },
{ pattern = "b1 32 ?<???x>", name = "Button 06_2" },
{ pattern = "b2 32 ?<???x>", name = "Button 06_3" },
{ pattern = "b3 32 ?<???x>", name = "Button 06_4" },
{ pattern = "b0 33 ?<???x>", name = "Button 07" },
{ pattern = "b1 33 ?<???x>", name = "Button 07_2" },
{ pattern = "b2 33 ?<???x>", name = "Button 07_3" },
{ pattern = "b3 33 ?<???x>", name = "Button 07_4" },
{ pattern = "b0 34 ?<???x>", name = "Button 08" },
{ pattern = "b1 34 ?<???x>", name = "Button 08_2" },
{ pattern = "b2 34 ?<???x>", name = "Button 08_3" },
{ pattern = "b3 34 ?<???x>", name = "Button 08_4" },
{ pattern = "b0 35 ?<???x>", name = "Button 09" },
{ pattern = "b1 35 ?<???x>", name = "Button 09_2" },
{ pattern = "b2 35 ?<???x>", name = "Button 09_3" },
{ pattern = "b3 35 ?<???x>", name = "Button 09_4" },
{ pattern = "b0 36 ?<???x>", name = "Button 10" },
{ pattern = "b1 36 ?<???x>", name = "Button 10_2" },
{ pattern = "b2 36 ?<???x>", name = "Button 10_3" },
{ pattern = "b3 36 ?<???x>", name = "Button 10_4" },
{ pattern = "b0 37 ?<???x>", name = "Button 11" },
{ pattern = "b1 37 ?<???x>", name = "Button 11_2" },
{ pattern = "b2 37 ?<???x>", name = "Button 11_3" },
{ pattern = "b3 37 ?<???x>", name = "Button 11_4" },
{ pattern = "b0 38 ?<???x>", name = "Button 12" },
{ pattern = "b1 38 ?<???x>", name = "Button 12_2" },
{ pattern = "b2 38 ?<???x>", name = "Button 12_3" },
{ pattern = "b3 38 ?<???x>", name = "Button 12_4" },
{ pattern = "b0 39 ?<???x>", name = "Button 13" },
{ pattern = "b1 39 ?<???x>", name = "Button 13_2" },
{ pattern = "b2 39 ?<???x>", name = "Button 13_3" },
{ pattern = "b3 39 ?<???x>", name = "Button 13_4" },
{ pattern = "b0 3A ?<???x>", name = "Button 14" },
{ pattern = "b1 3A ?<???x>", name = "Button 14_2" },
{ pattern = "b2 3A ?<???x>", name = "Button 14_3" },
{ pattern = "b3 3A ?<???x>", name = "Button 14_4" },
{ pattern = "b0 3B ?<???x>", name = "Button 15" },
{ pattern = "b1 3B ?<???x>", name = "Button 15_2" },
{ pattern = "b2 3B ?<???x>", name = "Button 15_3" },
{ pattern = "b3 3B ?<???x>", name = "Button 15_4" },
{ pattern = "b0 3C ?<???x>", name = "Button 16" },
{ pattern = "b1 3C ?<???x>", name = "Button 16_2" },
{ pattern = "b2 3C ?<???x>", name = "Button 16_3" },
{ pattern = "b3 3C ?<???x>", name = "Button 16_4" },
{ pattern = "b0 46 ?<???x>", name = "Button 17" },
{ pattern = "b1 46 ?<???x>", name = "Button 17_2" },
{ pattern = "b2 46 ?<???x>", name = "Button 17_3" },
{ pattern = "b3 46 ?<???x>", name = "Button 17_4" },
{ pattern = "b0 47 ?<???x>", name = "Button 18" },
{ pattern = "b1 47 ?<???x>", name = "Button 18_2" },
{ pattern = "b2 47 ?<???x>", name = "Button 18_3" },
{ pattern = "b3 47 ?<???x>", name = "Button 18_4" },
{ pattern = "b0 48 ?<???x>", name = "Button 19" },
{ pattern = "b1 48 ?<???x>", name = "Button 19_2" },
{ pattern = "b2 48 ?<???x>", name = "Button 19_3" },
{ pattern = "b3 48 ?<???x>", name = "Button 19_4" },
{ pattern = "b0 49 ?<???x>", name = "Button 20" },
{ pattern = "b1 49 ?<???x>", name = "Button 20_2" },
{ pattern = "b2 49 ?<???x>", name = "Button 20_3" },
{ pattern = "b3 49 ?<???x>", name = "Button 20_4" },
{ pattern = "b0 4A ?<???x>", name = "Button 21" },
{ pattern = "b1 4A ?<???x>", name = "Button 21_2" },
{ pattern = "b2 4A ?<???x>", name = "Button 21_3" },
{ pattern = "b3 4A ?<???x>", name = "Button 21_4" },
{ pattern = "b0 4B ?<???x>", name = "Button 22" },
{ pattern = "b1 4B ?<???x>", name = "Button 22_2" },
{ pattern = "b2 4B ?<???x>", name = "Button 22_3" },
{ pattern = "b3 4B ?<???x>", name = "Button 22_4" },
{ pattern = "b0 4C ?<???x>", name = "Button 23" },
{ pattern = "b1 4C ?<???x>", name = "Button 23_2" },
{ pattern = "b2 4C ?<???x>", name = "Button 23_3" },
{ pattern = "b3 4C ?<???x>", name = "Button 23_4" },
{ pattern = "b0 4D ?<???x>", name = "Button 24" },
{ pattern = "b1 4D ?<???x>", name = "Button 24_2" },
{ pattern = "b2 4D ?<???x>", name = "Button 24_3" },
{ pattern = "b3 4D ?<???x>", name = "Button 24_4" }
}
remote.define_auto_inputs(inputs)
local outputs = {
{ name = "Button 01", pattern = "b? 2D xx", x = "015 * value" },
{ name = "Button 02", pattern = "b? 2E xx", x = "015 * value" },
{ name = "Button 03", pattern = "b? 2F xx", x = "015 * value" },
{ name = "Button 04", pattern = "b? 30 xx", x = "015 * value" },
{ name = "Button 05", pattern = "b? 31 xx", x = "015 * value" },
{ name = "Button 06", pattern = "b? 32 xx", x = "015 * value" },
{ name = "Button 07", pattern = "b? 33 xx", x = "015 * value" },
{ name = "Button 08", pattern = "b? 34 xx", x = "015 * value" },
{ name = "Button 09", pattern = "b? 35 xx", x = "060 * value" },
{ name = "Button 10", pattern = "b? 36 xx", x = "060 * value" },
{ name = "Button 11", pattern = "b? 37 xx", x = "060 * value" },
{ name = "Button 12", pattern = "b? 38 xx", x = "060 * value" },
{ name = "Button 13", pattern = "b? 39 xx", x = "060 * value" },
{ name = "Button 14", pattern = "b? 3A xx", x = "060 * value" },
{ name = "Button 15", pattern = "b? 3B xx", x = "060 * value" },
{ name = "Button 16", pattern = "b? 3C xx", x = "060 * value" },
-- { name = "Button 17", pattern = "b? 46 xx", x = "127 * value" },
-- { name = "Button 18", pattern = "b? 47 xx", x = "127 * value" },
-- { name = "Button 19", pattern = "b? 48 xx", x = "127 * value" },
-- { name = "Button 20", pattern = "b? 49 xx", x = "127 * value" },
{ name = "Button 21", pattern = "b? 4A xx", x = "127 * value" },
{ name = "Button 22", pattern = "b? 4B xx", x = "127 * value" },
{ name = "Button 23", pattern = "b? 4C xx", x = "127 * value" },
{ name = "Button 24", pattern = "b? 4D xx", x = "127 * value" }
}
remote.define_auto_outputs(outputs)
end